Skip to content

Commit 41c48cb

Browse files
authored
chore: use node 22 by default (#237)
- bump to nodejs 22.6.0 - adjust tsconfigs to reflect that `dom` is no longer required - add some missing `devDependencies` to allow running `yarn test` / `yarn build` in package directories correctly
1 parent 9209a3f commit 41c48cb

File tree

11 files changed

+24
-21
lines changed

11 files changed

+24
-21
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.16.0
1+
22.6.0

integration-tests/typescript-axios/tsconfig.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
"compilerOptions": {
44
"outDir": "./dist",
55
"rootDir": "./src",
6-
// TODO: currently @types/node doesn't include global fetch types
7-
"lib": ["es2022", "dom"],
8-
"types": ["@types/node"],
96
"noUnusedLocals": true
10-
117
}
128
}

integration-tests/typescript-fetch/tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"compilerOptions": {
44
"outDir": "./dist",
55
"rootDir": "./src",
6-
// TODO: currently @types/node doesn't include global fetch types
7-
"lib": ["es2022", "dom"],
8-
"types": ["@types/node"],
96
"noUnusedLocals": true
107
}
118
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@biomejs/biome": "1.8.3",
3939
"@swc/core": "^1.7.11",
4040
"@swc/jest": "^0.2.36",
41-
"@tsconfig/node20": "^20.1.4",
41+
"@tsconfig/node22": "^22.0.0",
4242
"@tsconfig/strictest": "^2.0.5",
4343
"@types/node": "^22.4.0",
4444
"husky": "^9.1.4",
@@ -65,7 +65,7 @@
6565
]
6666
},
6767
"engines": {
68-
"node": ">=20 <22"
68+
"node": ">=20 <23"
6969
},
7070
"packageManager": "yarn@4.4.0"
7171
}

packages/typescript-axios-runtime/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
},
3737
"devDependencies": {
3838
"@types/qs": "^6.9.15",
39-
"axios": "^1.7.4"
39+
"axios": "^1.7.4",
40+
"jest": "^30.0.0-alpha.6",
41+
"typescript": "~5.5.4"
4042
},
4143
"files": [
4244
"src",

packages/typescript-axios-runtime/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"outDir": "./dist",
5-
"rootDir": "./src",
6-
"lib": ["dom"]
5+
"rootDir": "./src"
76
},
87
"include": ["src/**/*"]
98
}

packages/typescript-fetch-runtime/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
},
4747
"devDependencies": {
4848
"@types/qs": "^6.9.15",
49+
"jest": "^30.0.0-alpha.6",
50+
"typescript": "~5.5.4",
4951
"zod": "^3.23.8"
5052
},
5153
"files": [

packages/typescript-fetch-runtime/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"outDir": "./dist",
5-
"rootDir": "./src",
6-
"lib": ["dom"]
5+
"rootDir": "./src"
76
},
87
"include": ["src/**/*"]
98
}

packages/typescript-koa-runtime/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@
5858
"@types/koa": "^2.15.0",
5959
"@types/koa__cors": "^5.0.0",
6060
"@types/koa__router": "^12.0.4",
61+
"jest": "^30.0.0-alpha.6",
6162
"koa": "^2.15.3",
6263
"koa-body": "^6.0.1",
64+
"typescript": "~5.5.4",
6365
"zod": "^3.23.8"
6466
},
6567
"files": [

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": ["@tsconfig/strictest/tsconfig", "@tsconfig/node20/tsconfig"],
2+
"extends": ["@tsconfig/strictest/tsconfig", "@tsconfig/node22/tsconfig"],
33
"compilerOptions": {
44
"declaration": true,
55
"sourceMap": true,

0 commit comments

Comments
 (0)