Skip to content

Commit 6928f25

Browse files
committed
feat(all): Upgrade Node.js and drop support for EoL versions
1 parent f528a3f commit 6928f25

File tree

12 files changed

+122
-18
lines changed

12 files changed

+122
-18
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
node: [18, 19, 20, 21]
18+
node:
19+
- 20 # Maintenance LTS
20+
- 22 # Maintenance LTS
21+
- 24 # Active LTS
22+
- 25 # Current
1923
steps:
2024
- uses: actions/checkout@v4
2125
- uses: actions/setup-node@v4

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
21.6.2
1+
25.2.1

examples/jest/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
"name": "@examples/jest",
33
"private": true,
44
"scripts": {
5+
"check": "yarn compile && yarn test",
56
"compile": "tsc",
67
"test": "jest"
78
},
89
"devDependencies": {
910
"@assertive-ts/core": "workspace:^",
1011
"@examples/symbol-plugin": "workspace:^",
1112
"@types/jest": "^29.5.12",
12-
"@types/node": "^20.11.19",
13+
"@types/node": "^24.10.1",
1314
"jest": "^29.7.0",
1415
"ts-jest": "^29.1.2",
1516
"ts-node": "^10.9.2",

examples/mocha/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
"name": "@examples/mocha",
33
"private": true,
44
"scripts": {
5+
"check": "yarn compile && yarn test --forbid-only",
56
"compile": "tsc",
67
"test": "mocha"
78
},
89
"devDependencies": {
910
"@assertive-ts/core": "workspace:^",
1011
"@examples/symbol-plugin": "workspace:^",
1112
"@types/mocha": "^10.0.6",
12-
"@types/node": "^20.11.19",
13+
"@types/node": "^24.10.1",
1314
"mocha": "^10.3.0",
1415
"ts-node": "^10.9.2",
1516
"typescript": "^5.4.2"

examples/mocha/test/hooks.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
/* eslint-disable react-hooks/rules-of-hooks */
22
import { usePlugin } from "@assertive-ts/core";
33
import { SymbolPlugin } from "@examples/symbol-plugin";
4-
import { RootHookObject } from "mocha";
54

6-
export function mochaHooks(): RootHookObject {
5+
export function mochaHooks(): Mocha.RootHookObject {
76
return {
87
beforeAll() {
98
usePlugin(SymbolPlugin);

examples/symbolPlugin/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"main": "./dist/main.js",
55
"types": "./dist/main.d.ts",
66
"scripts": {
7+
"check": "yarn compile",
78
"build": "tsc -p tsconfig.prod.json",
89
"compile": "tsc"
910
},

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author": "Stack Builders <[email protected]>",
77
"license": "MIT",
88
"engines": {
9-
"node": ">=18"
9+
"node": ">=20"
1010
},
1111
"packageManager": "[email protected]",
1212
"workspaces": [
@@ -15,6 +15,7 @@
1515
],
1616
"scripts": {
1717
"check": "turbo check && yarn lint",
18+
"clean": "rimraf **/.turbo/ **/build/ **/dist/ **/node_modules/",
1819
"build": "turbo run build",
1920
"compile": "turbo run compile",
2021
"docs": "turbo docs",
@@ -33,6 +34,7 @@
3334
"eslint-plugin-react": "^7.34.1",
3435
"eslint-plugin-react-hooks": "^4.6.0",
3536
"eslint-plugin-sonarjs": "^0.24.0",
37+
"rimraf": "^6.1.2",
3638
"turbo": "^1.12.4",
3739
"typescript": "^5.4.2"
3840
}

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
},
3838
"devDependencies": {
3939
"@types/mocha": "^10.0.6",
40-
"@types/node": "^20.11.19",
40+
"@types/node": "^24.10.1",
4141
"@types/sinon": "^17.0.3",
4242
"all-contributors-cli": "^6.26.1",
4343
"mocha": "^10.3.0",

packages/dom/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"@testing-library/react": "^16.0.0",
4545
"@types/jsdom-global": "^3",
4646
"@types/mocha": "^10.0.6",
47-
"@types/node": "^20.11.19",
47+
"@types/node": "^24.10.1",
4848
"@types/react": "^18.3.3",
4949
"@types/react-dom": "^18.3.0",
5050
"@types/react-test-renderer": "^18",

packages/native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"@assertive-ts/core": "workspace:^",
4343
"@testing-library/react-native": "^12.9.0",
4444
"@types/mocha": "^10.0.6",
45-
"@types/node": "^20.11.19",
45+
"@types/node": "^24.10.1",
4646
"@types/react": "^18.2.70",
4747
"@types/react-test-renderer": "^18.0.7",
4848
"@types/sinon": "^17.0.3",

0 commit comments

Comments
 (0)