Skip to content

Commit 2896c57

Browse files
authored
chore: bump typescript version (#7671)
1 parent 17e7518 commit 2896c57

File tree

10 files changed

+72
-64
lines changed

10 files changed

+72
-64
lines changed

acvm-repo/acvm_js/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@
4747
"mocha": "^10.2.0",
4848
"prettier": "3.2.5",
4949
"ts-node": "^10.9.1",
50-
"typescript": "^5.4.2"
50+
"typescript": "^5.8.2"
5151
}
5252
}

compiler/wasm/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"@types/chai": "^4",
4949
"@types/mocha": "^10.0.6",
5050
"@types/mocha-each": "^2",
51-
"@types/node": "^20.10.5",
51+
"@types/node": "^22.13.10",
5252
"@types/pako": "^2",
5353
"@types/path-browserify": "^1",
5454
"@types/readable-stream": "^4",
@@ -75,7 +75,7 @@
7575
"sinon": "^19.0.2",
7676
"ts-loader": "^9.5.2",
7777
"ts-node": "^10.9.1",
78-
"typescript": "^5.4.2",
78+
"typescript": "^5.8.2",
7979
"unzipit": "^1.4.3",
8080
"url": "^0.11.4",
8181
"webpack": "^5.98.0",

compiler/wasm/src/noir/debug.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ import { inflate } from 'pako';
55
* @param debugSymbols - The base64 encoded debug symbols
66
*/
77
export function inflateDebugSymbols(debugSymbols: string) {
8-
return JSON.parse(inflate(Buffer.from(debugSymbols, 'base64'), { to: 'string', raw: true }));
8+
return JSON.parse(inflate(Uint8Array.from(Buffer.from(debugSymbols, 'base64')), { to: 'string', raw: true }));
99
}

compiler/wasm/src/noir/file-manager/nodejs-file-manager.ts

+30-29
Original file line numberDiff line numberDiff line change
@@ -25,37 +25,38 @@ export async function readdirRecursive(dir: string): Promise<string[]> {
2525
export function createNodejsFileManager(dataDir: string): FileManager {
2626
return new FileManager(
2727
{
28-
...fs,
29-
...{
30-
// ExistsSync is not available in the fs/promises module
31-
existsSync,
32-
// This is added here because the node types are not compatible with the FileSystem type for mkdir
33-
// Typescripts tries to use a different variant of the function that is not the one that has the optional options.
34-
mkdir: async (
35-
dir: string,
36-
opts?: {
37-
/**
38-
* Traverse child directories
39-
*/
40-
recursive: boolean;
41-
},
42-
) => {
43-
await fs.mkdir(dir, opts);
28+
// ExistsSync is not available in the fs/promises module
29+
existsSync,
30+
// This is added here because the node types are not compatible with the FileSystem type for mkdir
31+
// Typescripts tries to use a different variant of the function that is not the one that has the optional options.
32+
mkdir: async (
33+
dir: string,
34+
opts?: {
35+
/**
36+
* Traverse child directories
37+
*/
38+
recursive: boolean;
4439
},
45-
readdir: async (
46-
dir: string,
47-
options?: {
48-
/**
49-
* Traverse child directories
50-
*/
51-
recursive: boolean;
52-
},
53-
) => {
54-
if (options?.recursive) {
55-
return readdirRecursive(dir);
56-
}
57-
return (await fs.readdir(dir)).map((handles) => handles.toString());
40+
) => {
41+
await fs.mkdir(dir, opts);
42+
},
43+
44+
writeFile: fs.writeFile,
45+
readFile: fs.readFile,
46+
rename: fs.rename,
47+
readdir: async (
48+
dir: string,
49+
options?: {
50+
/**
51+
* Traverse child directories
52+
*/
53+
recursive: boolean;
5854
},
55+
) => {
56+
if (options?.recursive) {
57+
return readdirRecursive(dir);
58+
}
59+
return (await fs.readdir(dir)).map((handles) => handles.toString());
5960
},
6061
},
6162
dataDir,

docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"typedoc-plugin-frontmatter": "^0.0.2",
4646
"typedoc-plugin-markdown": "4.0.0-next.25",
4747
"typedoc-plugin-merge-modules": "^5.1.0",
48-
"typescript": "^5.4.2"
48+
"typescript": "^5.8.2"
4949
},
5050
"browserslist": {
5151
"production": [

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"mocha": "^10.2.0",
3636
"prettier": "3.2.5",
3737
"ts-node": "^10.9.1",
38-
"typescript": "^5.4.2"
38+
"typescript": "^5.8.2"
3939
},
4040
"resolutions": {
4141
"@types/estree": "1.0.6"

tooling/noir_codegen/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"@noir-lang/noir_js": "workspace:*",
5050
"@types/chai": "^4",
5151
"@types/mocha": "^10.0.1",
52-
"@types/node": "^20.6.2",
52+
"@types/node": "^22.13.10",
5353
"@types/prettier": "^3",
5454
"chai": "^4.4.1",
5555
"eslint": "^9.22.0",
@@ -58,6 +58,6 @@
5858
"prettier": "3.2.5",
5959
"ts-node": "^10.9.1",
6060
"tsx": "^4.6.2",
61-
"typescript": "^5.4.2"
61+
"typescript": "^5.8.2"
6262
}
6363
}

tooling/noir_js/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"devDependencies": {
5252
"@types/chai": "^4",
5353
"@types/mocha": "^10.0.1",
54-
"@types/node": "^20.6.2",
54+
"@types/node": "^22.13.10",
5555
"@types/prettier": "^3",
5656
"chai": "^4.4.1",
5757
"eslint": "^9.22.0",
@@ -61,6 +61,6 @@
6161
"ts-node": "^10.9.1",
6262
"tsc-multi": "^1.1.0",
6363
"tsx": "^4.6.2",
64-
"typescript": "^5.4.2"
64+
"typescript": "^5.8.2"
6565
}
6666
}

tooling/noir_js_types/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@
4343
"eslint": "^9.22.0",
4444
"eslint-plugin-prettier": "^5.2.3",
4545
"prettier": "3.2.5",
46-
"typescript": "^5.4.2"
46+
"typescript": "^5.8.2"
4747
}
4848
}

yarn.lock

+31-24
Original file line numberDiff line numberDiff line change
@@ -5830,7 +5830,7 @@ __metadata:
58305830
mocha: ^10.2.0
58315831
prettier: 3.2.5
58325832
ts-node: ^10.9.1
5833-
typescript: ^5.4.2
5833+
typescript: ^5.8.2
58345834
languageName: unknown
58355835
linkType: soft
58365836

@@ -5842,7 +5842,7 @@ __metadata:
58425842
"@noir-lang/types": "workspace:*"
58435843
"@types/chai": ^4
58445844
"@types/mocha": ^10.0.1
5845-
"@types/node": ^20.6.2
5845+
"@types/node": ^22.13.10
58465846
"@types/prettier": ^3
58475847
chai: ^4.4.1
58485848
eslint: ^9.22.0
@@ -5853,7 +5853,7 @@ __metadata:
58535853
ts-command-line-args: ^2.5.1
58545854
ts-node: ^10.9.1
58555855
tsx: ^4.6.2
5856-
typescript: ^5.4.2
5856+
typescript: ^5.8.2
58575857
bin:
58585858
noir-codegen: lib/main.js
58595859
languageName: unknown
@@ -5868,7 +5868,7 @@ __metadata:
58685868
"@noir-lang/types": "workspace:*"
58695869
"@types/chai": ^4
58705870
"@types/mocha": ^10.0.1
5871-
"@types/node": ^20.6.2
5871+
"@types/node": ^22.13.10
58725872
"@types/prettier": ^3
58735873
chai: ^4.4.1
58745874
eslint: ^9.22.0
@@ -5878,7 +5878,7 @@ __metadata:
58785878
ts-node: ^10.9.1
58795879
tsc-multi: ^1.1.0
58805880
tsx: ^4.6.2
5881-
typescript: ^5.4.2
5881+
typescript: ^5.8.2
58825882
languageName: unknown
58835883
linkType: soft
58845884

@@ -5893,7 +5893,7 @@ __metadata:
58935893
"@types/chai": ^4
58945894
"@types/mocha": ^10.0.6
58955895
"@types/mocha-each": ^2
5896-
"@types/node": ^20.10.5
5896+
"@types/node": ^22.13.10
58975897
"@types/pako": ^2
58985898
"@types/path-browserify": ^1
58995899
"@types/readable-stream": ^4
@@ -5921,7 +5921,7 @@ __metadata:
59215921
sinon: ^19.0.2
59225922
ts-loader: ^9.5.2
59235923
ts-node: ^10.9.1
5924-
typescript: ^5.4.2
5924+
typescript: ^5.8.2
59255925
unzipit: ^1.4.3
59265926
url: ^0.11.4
59275927
webpack: ^5.98.0
@@ -5957,7 +5957,7 @@ __metadata:
59575957
mocha: ^10.2.0
59585958
prettier: 3.2.5
59595959
ts-node: ^10.9.1
5960-
typescript: ^5.4.2
5960+
typescript: ^5.8.2
59615961
languageName: unknown
59625962
linkType: soft
59635963

@@ -5969,7 +5969,7 @@ __metadata:
59695969
eslint: ^9.22.0
59705970
eslint-plugin-prettier: ^5.2.3
59715971
prettier: 3.2.5
5972-
typescript: ^5.4.2
5972+
typescript: ^5.8.2
59735973
languageName: unknown
59745974
linkType: soft
59755975

@@ -8893,7 +8893,7 @@ __metadata:
88938893
languageName: node
88948894
linkType: hard
88958895

8896-
"@types/node@npm:*, @types/node@npm:^20.6.2":
8896+
"@types/node@npm:*":
88978897
version: 20.10.4
88988898
resolution: "@types/node@npm:20.10.4"
88998899
dependencies:
@@ -8916,12 +8916,12 @@ __metadata:
89168916
languageName: node
89178917
linkType: hard
89188918

8919-
"@types/node@npm:^20.10.5":
8920-
version: 20.10.5
8921-
resolution: "@types/node@npm:20.10.5"
8919+
"@types/node@npm:^22.13.10":
8920+
version: 22.13.10
8921+
resolution: "@types/node@npm:22.13.10"
89228922
dependencies:
8923-
undici-types: ~5.26.4
8924-
checksum: e216b679f545a8356960ce985a0e53c3a58fff0eacd855e180b9e223b8db2b5bd07b744a002b8c1f0c37f9194648ab4578533b5c12df2ec10cc02f61d20948d2
8923+
undici-types: ~6.20.0
8924+
checksum: 1cd6b899df728732c60c0defad63e26ca18d87a3b81bd75666fe9aed6cdf9e488433976b22ffcabfdeef9d351cf8ff94853b0686e6708ef62065482ccf5b0a6e
89258925
languageName: node
89268926
linkType: hard
89278927

@@ -13532,7 +13532,7 @@ __metadata:
1353213532
typedoc-plugin-frontmatter: ^0.0.2
1353313533
typedoc-plugin-markdown: 4.0.0-next.25
1353413534
typedoc-plugin-merge-modules: ^5.1.0
13535-
typescript: ^5.4.2
13535+
typescript: ^5.8.2
1353613536
languageName: unknown
1353713537
linkType: soft
1353813538

@@ -25249,23 +25249,23 @@ __metadata:
2524925249
languageName: node
2525025250
linkType: hard
2525125251

25252-
"typescript@npm:^5.4.2":
25253-
version: 5.4.2
25254-
resolution: "typescript@npm:5.4.2"
25252+
"typescript@npm:^5.8.2":
25253+
version: 5.8.2
25254+
resolution: "typescript@npm:5.8.2"
2525525255
bin:
2525625256
tsc: bin/tsc
2525725257
tsserver: bin/tsserver
25258-
checksum: 96d80fde25a09bcb04d399082fb27a808a9e17c2111e43849d2aafbd642d835e4f4ef0de09b0ba795ec2a700be6c4c2c3f62bf4660c05404c948727b5bbfb32a
25258+
checksum: 7f9e3d7ac15da6df713e439e785e51facd65d6450d5f51fab3e8d2f2e3f4eb317080d895480b8e305450cdbcb37e17383e8bf521e7395f8b556e2f2a4730ed86
2525925259
languageName: node
2526025260
linkType: hard
2526125261

25262-
"typescript@patch:typescript@^5.4.2#~builtin<compat/typescript>":
25263-
version: 5.4.2
25264-
resolution: "typescript@patch:typescript@npm%3A5.4.2#~builtin<compat/typescript>::version=5.4.2&hash=f3b441"
25262+
"typescript@patch:typescript@^5.8.2#~builtin<compat/typescript>":
25263+
version: 5.8.2
25264+
resolution: "typescript@patch:typescript@npm%3A5.8.2#~builtin<compat/typescript>::version=5.8.2&hash=f3b441"
2526525265
bin:
2526625266
tsc: bin/tsc
2526725267
tsserver: bin/tsserver
25268-
checksum: c1b669146bca5529873aae60870e243fa8140c85f57ca32c42f898f586d73ce4a6b4f6bb02ae312729e214d7f5859a0c70da3e527a116fdf5ad00c9fc733ecc6
25268+
checksum: a58d19ff9811c1764a299dd83ca20ed8020f0ab642906dafc880121b710751227201531fdc99878158205c356ac79679b0b61ac5b42eda0e28bfb180947a258d
2526925269
languageName: node
2527025270
linkType: hard
2527125271

@@ -25314,6 +25314,13 @@ __metadata:
2531425314
languageName: node
2531525315
linkType: hard
2531625316

25317+
"undici-types@npm:~6.20.0":
25318+
version: 6.20.0
25319+
resolution: "undici-types@npm:6.20.0"
25320+
checksum: b7bc50f012dc6afbcce56c9fd62d7e86b20a62ff21f12b7b5cbf1973b9578d90f22a9c7fe50e638e96905d33893bf2f9f16d98929c4673c2480de05c6c96ea8b
25321+
languageName: node
25322+
linkType: hard
25323+
2531725324
"undici@npm:^5.14.0":
2531825325
version: 5.28.2
2531925326
resolution: "undici@npm:5.28.2"

0 commit comments

Comments
 (0)