diff --git a/acvm-repo/acvm_js/package.json b/acvm-repo/acvm_js/package.json index 5cf44c5eca8..c443a0b7f9a 100644 --- a/acvm-repo/acvm_js/package.json +++ b/acvm-repo/acvm_js/package.json @@ -47,6 +47,6 @@ "mocha": "^10.2.0", "prettier": "3.2.5", "ts-node": "^10.9.1", - "typescript": "^5.4.2" + "typescript": "^5.8.2" } } diff --git a/compiler/wasm/package.json b/compiler/wasm/package.json index f89324da5cc..fdcdd489969 100644 --- a/compiler/wasm/package.json +++ b/compiler/wasm/package.json @@ -48,7 +48,7 @@ "@types/chai": "^4", "@types/mocha": "^10.0.6", "@types/mocha-each": "^2", - "@types/node": "^20.10.5", + "@types/node": "^22.13.10", "@types/pako": "^2", "@types/path-browserify": "^1", "@types/readable-stream": "^4", @@ -75,7 +75,7 @@ "sinon": "^17.0.1", "ts-loader": "^9.5.1", "ts-node": "^10.9.1", - "typescript": "^5.4.2", + "typescript": "^5.8.2", "unzipit": "^1.4.3", "url": "^0.11.3", "webpack": "^5.90.1", diff --git a/compiler/wasm/src/noir/debug.ts b/compiler/wasm/src/noir/debug.ts index 1a4ccfe95ec..d6d01c9e99c 100644 --- a/compiler/wasm/src/noir/debug.ts +++ b/compiler/wasm/src/noir/debug.ts @@ -5,5 +5,5 @@ import { inflate } from 'pako'; * @param debugSymbols - The base64 encoded debug symbols */ export function inflateDebugSymbols(debugSymbols: string) { - return JSON.parse(inflate(Buffer.from(debugSymbols, 'base64'), { to: 'string', raw: true })); + return JSON.parse(inflate(Uint8Array.from(Buffer.from(debugSymbols, 'base64')), { to: 'string', raw: true })); } diff --git a/compiler/wasm/src/noir/file-manager/nodejs-file-manager.ts b/compiler/wasm/src/noir/file-manager/nodejs-file-manager.ts index 195eea8a70d..e20744f67e3 100644 --- a/compiler/wasm/src/noir/file-manager/nodejs-file-manager.ts +++ b/compiler/wasm/src/noir/file-manager/nodejs-file-manager.ts @@ -25,37 +25,38 @@ export async function readdirRecursive(dir: string): Promise { export function createNodejsFileManager(dataDir: string): FileManager { return new FileManager( { - ...fs, - ...{ - // ExistsSync is not available in the fs/promises module - existsSync, - // This is added here because the node types are not compatible with the FileSystem type for mkdir - // Typescripts tries to use a different variant of the function that is not the one that has the optional options. - mkdir: async ( - dir: string, - opts?: { - /** - * Traverse child directories - */ - recursive: boolean; - }, - ) => { - await fs.mkdir(dir, opts); + // ExistsSync is not available in the fs/promises module + existsSync, + // This is added here because the node types are not compatible with the FileSystem type for mkdir + // Typescripts tries to use a different variant of the function that is not the one that has the optional options. + mkdir: async ( + dir: string, + opts?: { + /** + * Traverse child directories + */ + recursive: boolean; }, - readdir: async ( - dir: string, - options?: { - /** - * Traverse child directories - */ - recursive: boolean; - }, - ) => { - if (options?.recursive) { - return readdirRecursive(dir); - } - return (await fs.readdir(dir)).map((handles) => handles.toString()); + ) => { + await fs.mkdir(dir, opts); + }, + + writeFile: fs.writeFile, + readFile: fs.readFile, + rename: fs.rename, + readdir: async ( + dir: string, + options?: { + /** + * Traverse child directories + */ + recursive: boolean; }, + ) => { + if (options?.recursive) { + return readdirRecursive(dir); + } + return (await fs.readdir(dir)).map((handles) => handles.toString()); }, }, dataDir, diff --git a/docs/package.json b/docs/package.json index 9a9a27d02cb..77385c06fd0 100644 --- a/docs/package.json +++ b/docs/package.json @@ -45,7 +45,7 @@ "typedoc-plugin-frontmatter": "^0.0.2", "typedoc-plugin-markdown": "4.0.0-next.25", "typedoc-plugin-merge-modules": "^5.1.0", - "typescript": "^5.4.2" + "typescript": "^5.8.2" }, "browserslist": { "production": [ diff --git a/package.json b/package.json index 5bff302da47..e3a034a5243 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "mocha": "^10.2.0", "prettier": "3.2.5", "ts-node": "^10.9.1", - "typescript": "^5.4.2" + "typescript": "^5.8.2" }, "resolutions": { "@types/estree": "1.0.6" diff --git a/tooling/noir_codegen/package.json b/tooling/noir_codegen/package.json index aaed67cef05..58653dbc3ef 100644 --- a/tooling/noir_codegen/package.json +++ b/tooling/noir_codegen/package.json @@ -49,7 +49,7 @@ "@noir-lang/noir_js": "workspace:*", "@types/chai": "^4", "@types/mocha": "^10.0.1", - "@types/node": "^20.6.2", + "@types/node": "^22.13.10", "@types/prettier": "^3", "chai": "^4.4.1", "eslint": "^9.22.0", @@ -58,6 +58,6 @@ "prettier": "3.2.5", "ts-node": "^10.9.1", "tsx": "^4.6.2", - "typescript": "^5.4.2" + "typescript": "^5.8.2" } } diff --git a/tooling/noir_js/package.json b/tooling/noir_js/package.json index b7321c441bf..00d05e40e67 100644 --- a/tooling/noir_js/package.json +++ b/tooling/noir_js/package.json @@ -51,7 +51,7 @@ "devDependencies": { "@types/chai": "^4", "@types/mocha": "^10.0.1", - "@types/node": "^20.6.2", + "@types/node": "^22.13.10", "@types/prettier": "^3", "chai": "^4.4.1", "eslint": "^9.22.0", @@ -61,6 +61,6 @@ "ts-node": "^10.9.1", "tsc-multi": "^1.1.0", "tsx": "^4.6.2", - "typescript": "^5.4.2" + "typescript": "^5.8.2" } } diff --git a/tooling/noir_js_types/package.json b/tooling/noir_js_types/package.json index 04b83aef337..d6b19a805fa 100644 --- a/tooling/noir_js_types/package.json +++ b/tooling/noir_js_types/package.json @@ -43,6 +43,6 @@ "eslint": "^9.22.0", "eslint-plugin-prettier": "^5.2.3", "prettier": "3.2.5", - "typescript": "^5.4.2" + "typescript": "^5.8.2" } } diff --git a/yarn.lock b/yarn.lock index 4f978fc13ce..a9cf04f0b2d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5833,7 +5833,7 @@ __metadata: mocha: ^10.2.0 prettier: 3.2.5 ts-node: ^10.9.1 - typescript: ^5.4.2 + typescript: ^5.8.2 languageName: unknown linkType: soft @@ -5845,7 +5845,7 @@ __metadata: "@noir-lang/types": "workspace:*" "@types/chai": ^4 "@types/mocha": ^10.0.1 - "@types/node": ^20.6.2 + "@types/node": ^22.13.10 "@types/prettier": ^3 chai: ^4.4.1 eslint: ^9.22.0 @@ -5856,7 +5856,7 @@ __metadata: ts-command-line-args: ^2.5.1 ts-node: ^10.9.1 tsx: ^4.6.2 - typescript: ^5.4.2 + typescript: ^5.8.2 bin: noir-codegen: lib/main.js languageName: unknown @@ -5871,7 +5871,7 @@ __metadata: "@noir-lang/types": "workspace:*" "@types/chai": ^4 "@types/mocha": ^10.0.1 - "@types/node": ^20.6.2 + "@types/node": ^22.13.10 "@types/prettier": ^3 chai: ^4.4.1 eslint: ^9.22.0 @@ -5881,7 +5881,7 @@ __metadata: ts-node: ^10.9.1 tsc-multi: ^1.1.0 tsx: ^4.6.2 - typescript: ^5.4.2 + typescript: ^5.8.2 languageName: unknown linkType: soft @@ -5896,7 +5896,7 @@ __metadata: "@types/chai": ^4 "@types/mocha": ^10.0.6 "@types/mocha-each": ^2 - "@types/node": ^20.10.5 + "@types/node": ^22.13.10 "@types/pako": ^2 "@types/path-browserify": ^1 "@types/readable-stream": ^4 @@ -5924,7 +5924,7 @@ __metadata: sinon: ^17.0.1 ts-loader: ^9.5.1 ts-node: ^10.9.1 - typescript: ^5.4.2 + typescript: ^5.8.2 unzipit: ^1.4.3 url: ^0.11.3 webpack: ^5.90.1 @@ -5960,7 +5960,7 @@ __metadata: mocha: ^10.2.0 prettier: 3.2.5 ts-node: ^10.9.1 - typescript: ^5.4.2 + typescript: ^5.8.2 languageName: unknown linkType: soft @@ -5972,7 +5972,7 @@ __metadata: eslint: ^9.22.0 eslint-plugin-prettier: ^5.2.3 prettier: 3.2.5 - typescript: ^5.4.2 + typescript: ^5.8.2 languageName: unknown linkType: soft @@ -8921,7 +8921,7 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:*, @types/node@npm:^20.6.2": +"@types/node@npm:*": version: 20.10.4 resolution: "@types/node@npm:20.10.4" dependencies: @@ -8944,12 +8944,12 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:^20.10.5": - version: 20.10.5 - resolution: "@types/node@npm:20.10.5" +"@types/node@npm:^22.13.10": + version: 22.13.10 + resolution: "@types/node@npm:22.13.10" dependencies: - undici-types: ~5.26.4 - checksum: e216b679f545a8356960ce985a0e53c3a58fff0eacd855e180b9e223b8db2b5bd07b744a002b8c1f0c37f9194648ab4578533b5c12df2ec10cc02f61d20948d2 + undici-types: ~6.20.0 + checksum: 1cd6b899df728732c60c0defad63e26ca18d87a3b81bd75666fe9aed6cdf9e488433976b22ffcabfdeef9d351cf8ff94853b0686e6708ef62065482ccf5b0a6e languageName: node linkType: hard @@ -13382,7 +13382,7 @@ __metadata: typedoc-plugin-frontmatter: ^0.0.2 typedoc-plugin-markdown: 4.0.0-next.25 typedoc-plugin-merge-modules: ^5.1.0 - typescript: ^5.4.2 + typescript: ^5.8.2 languageName: unknown linkType: soft @@ -25032,23 +25032,23 @@ __metadata: languageName: node linkType: hard -"typescript@npm:^5.4.2": - version: 5.4.2 - resolution: "typescript@npm:5.4.2" +"typescript@npm:^5.8.2": + version: 5.8.2 + resolution: "typescript@npm:5.8.2" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 96d80fde25a09bcb04d399082fb27a808a9e17c2111e43849d2aafbd642d835e4f4ef0de09b0ba795ec2a700be6c4c2c3f62bf4660c05404c948727b5bbfb32a + checksum: 7f9e3d7ac15da6df713e439e785e51facd65d6450d5f51fab3e8d2f2e3f4eb317080d895480b8e305450cdbcb37e17383e8bf521e7395f8b556e2f2a4730ed86 languageName: node linkType: hard -"typescript@patch:typescript@^5.4.2#~builtin": - version: 5.4.2 - resolution: "typescript@patch:typescript@npm%3A5.4.2#~builtin::version=5.4.2&hash=f3b441" +"typescript@patch:typescript@^5.8.2#~builtin": + version: 5.8.2 + resolution: "typescript@patch:typescript@npm%3A5.8.2#~builtin::version=5.8.2&hash=f3b441" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: c1b669146bca5529873aae60870e243fa8140c85f57ca32c42f898f586d73ce4a6b4f6bb02ae312729e214d7f5859a0c70da3e527a116fdf5ad00c9fc733ecc6 + checksum: a58d19ff9811c1764a299dd83ca20ed8020f0ab642906dafc880121b710751227201531fdc99878158205c356ac79679b0b61ac5b42eda0e28bfb180947a258d languageName: node linkType: hard @@ -25097,6 +25097,13 @@ __metadata: languageName: node linkType: hard +"undici-types@npm:~6.20.0": + version: 6.20.0 + resolution: "undici-types@npm:6.20.0" + checksum: b7bc50f012dc6afbcce56c9fd62d7e86b20a62ff21f12b7b5cbf1973b9578d90f22a9c7fe50e638e96905d33893bf2f9f16d98929c4673c2480de05c6c96ea8b + languageName: node + linkType: hard + "undici@npm:^5.14.0": version: 5.28.2 resolution: "undici@npm:5.28.2"