Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion acvm-repo/acvm_js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
4 changes: 2 additions & 2 deletions compiler/wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion compiler/wasm/src/noir/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }));
}
59 changes: 30 additions & 29 deletions compiler/wasm/src/noir/file-manager/nodejs-file-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,37 +25,38 @@ export async function readdirRecursive(dir: string): Promise<string[]> {
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,
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions tooling/noir_codegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
}
}
4 changes: 2 additions & 2 deletions tooling/noir_js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
}
}
2 changes: 1 addition & 1 deletion tooling/noir_js_types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
55 changes: 31 additions & 24 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -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

Expand Down Expand Up @@ -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:
Expand All @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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<compat/typescript>":
version: 5.4.2
resolution: "typescript@patch:typescript@npm%3A5.4.2#~builtin<compat/typescript>::version=5.4.2&hash=f3b441"
"typescript@patch:typescript@^5.8.2#~builtin<compat/typescript>":
version: 5.8.2
resolution: "typescript@patch:typescript@npm%3A5.8.2#~builtin<compat/typescript>::version=5.8.2&hash=f3b441"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: c1b669146bca5529873aae60870e243fa8140c85f57ca32c42f898f586d73ce4a6b4f6bb02ae312729e214d7f5859a0c70da3e527a116fdf5ad00c9fc733ecc6
checksum: a58d19ff9811c1764a299dd83ca20ed8020f0ab642906dafc880121b710751227201531fdc99878158205c356ac79679b0b61ac5b42eda0e28bfb180947a258d
languageName: node
linkType: hard

Expand Down Expand Up @@ -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"
Expand Down
Loading