Skip to content

Commit f96aefd

Browse files
committed
feat!: Dropped support for Node 20.
Signed-off-by: Paolo Insogna <paolo@cowtech.it>
1 parent 644c495 commit f96aefd

File tree

5 files changed

+15
-32
lines changed

5 files changed

+15
-32
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
fail-fast: false
88
matrix:
99
os: [ubuntu-latest, windows-latest]
10-
node-version: [22, 23]
10+
node-version: [22, 24, 25]
1111
runs-on: ${{ matrix.os }}
1212
steps:
1313
- name: Checkout

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Cronometro uses [worker_threads](https://nodejs.org/dist/latest-v12.x/docs/api/w
1515

1616
### Supported Node versions
1717

18-
Only Node 12.x and above are supported.
18+
Only Node 22.x and above are supported.
1919

2020
This package only supports to be directly imported in a ESM context.
2121

package.json

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,12 @@
2727
"exports": "./dist/index.js",
2828
"types": "./dist/index.d.ts",
2929
"scripts": {
30-
"build": "tsc -p .",
31-
"postbuild": "npm run lint",
30+
"build": "rm -rf dist && tsc -p tsconfig.json && npm run lint",
3231
"format": "prettier -w src test",
3332
"lint": "eslint --cache",
34-
"typecheck": "tsc -p . --noEmit",
35-
"test": "c8 -c test/config/c8-local.json node --env-file=test/config/env --test test/*.test.ts",
36-
"test:ci": "c8 -c test/config/c8-ci.json node --env-file=test/config/env --test test/*.test.ts",
37-
"ci": "npm run build && npm run test:ci",
33+
"test": "c8 -c test/config/c8-local.json node --test --test-reporter=cleaner-spec-reporter test/*.test.ts",
34+
"test:ci": "c8 -c test/config/c8-ci.json node --test --test-reporter=tap test/*.test.ts",
35+
"ci": "npm run build",
3836
"prepublishOnly": "npm run ci",
3937
"postpublish": "git push origin && git push origin -f --tags"
4038
},
@@ -44,17 +42,16 @@
4442
"table": "^6.9.0"
4543
},
4644
"devDependencies": {
47-
"@cowtech/eslint-config": "10.4.0",
45+
"@cowtech/eslint-config": "^10.4.0",
46+
"@cowtech/typescript-config": "^0.2.1",
4847
"@types/node": "^22.10.2",
4948
"c8": "^10.1.3",
5049
"cleaner-spec-reporter": "^0.3.1",
51-
"cross-env": "^7.0.3",
5250
"eslint": "^9.17.0",
5351
"prettier": "^3.4.2",
54-
"proxyquire": "^2.1.3",
5552
"typescript": "^5.7.2"
5653
},
5754
"engines": {
58-
"node": ">= 22.6.0"
55+
"node": ">= 22.21.0"
5956
}
6057
}

test/config/env

Lines changed: 0 additions & 1 deletion
This file was deleted.

tsconfig.json

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
11
{
2+
"extends": "@cowtech/typescript-config",
23
"compilerOptions": {
3-
"target": "ESNext",
4-
"module": "NodeNext",
5-
"moduleResolution": "NodeNext",
6-
"jsx": "preserve",
7-
"declaration": true,
8-
"outDir": "dist",
9-
"allowJs": false,
10-
"allowSyntheticDefaultImports": true,
11-
"esModuleInterop": true,
12-
"strict": true,
13-
"skipLibCheck": true,
14-
"noImplicitAny": true,
15-
"noUnusedLocals": true,
16-
"noUnusedParameters": true,
17-
"strictNullChecks": true,
18-
"useUnknownInCatchVariables": false,
19-
"allowImportingTsExtensions": true,
20-
"rewriteRelativeImportExtensions": true
4+
"outDir": "./dist",
5+
"rootDir": "./src",
6+
"declaration": true
217
},
22-
"include": ["src/*.ts"]
8+
"include": ["src/*.ts"],
9+
"exclude": ["node_modules", "dist"]
2310
}

0 commit comments

Comments
 (0)