diff --git a/libs/base/shims.d.ts b/libs/base/shims.d.ts index d54c32f0..6cc66c9e 100644 --- a/libs/base/shims.d.ts +++ b/libs/base/shims.d.ts @@ -87,6 +87,12 @@ declare interface Buffer { */ //% shim=BufferMethods::write write(dstOffset: int32, src: Buffer): void; + + /** + * Compute k-bit FNV-1 non-cryptographic hash of the buffer. + */ + //% shim=BufferMethods::hash + hash(bits: int32): uint32; } declare namespace control { @@ -94,14 +100,14 @@ declare namespace control { * Create a new zero-initialized buffer. * @param size number of bytes in the buffer */ - //% shim=control::createBuffer + //% deprecated=1 shim=control::createBuffer function createBuffer(size: int32): Buffer; /** * Create a new buffer with UTF8-encoded string * @param str the string to put in the buffer */ - //% shim=control::createBufferFromUTF8 + //% deprecated=1 shim=control::createBufferFromUTF8 function createBufferFromUTF8(str: string): Buffer; } declare namespace loops { diff --git a/package.json b/package.json index 13f79254..cc48a211 100644 --- a/package.json +++ b/package.json @@ -32,21 +32,21 @@ "docs/*/*/*.md" ], "devDependencies": { - "typescript": "2.6.1", "react": "16.8.3", - "semantic-ui-less": "2.2.14", - "@types/bluebird": "2.0.33", - "@types/marked": "0.3.0", - "@types/node": "8.0.53", "webfonts-generator": "^0.4.0", "@types/jquery": "3.2.16", "@types/react": "16.0.25", "@types/react-dom": "16.0.3", - "@types/web-bluetooth": "0.0.4" + "@types/web-bluetooth": "0.0.4", + "@types/bluebird": "^2.0.33", + "@types/marked": "^0.3.0", + "@types/node": "^9.3.0", + "semantic-ui-less": "2.2.14", + "typescript": "^3.7.5" }, "dependencies": { - "pxt-common-packages": "6.18.2", - "pxt-core": "5.32.3" + "pxt-common-packages": "8.1.3", + "pxt-core": "6.2.8" }, "scripts": { "test": "node node_modules/pxt-core/built/pxt.js travis"