Skip to content

Commit 592f6de

Browse files
committed
fix!: update dependencies, drop node 20 and ts 5.8
1 parent 2ab3a13 commit 592f6de

6 files changed

Lines changed: 26 additions & 26 deletions

File tree

‎.github/workflows/nodejs.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ jobs:
1717
test:
1818
uses: voxpelli/ghatemplates/.github/workflows/test.yml@main
1919
with:
20-
node-versions: '20,22,24'
20+
node-versions: '22,24'
2121
os: 'ubuntu-latest'

‎.knip.jsonc‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"$schema": "https://unpkg.com/knip@5/schema.json",
2+
"$schema": "https://unpkg.com/knip@6/schema.json",
33
"entry": [
4-
"index.d.ts",
4+
"test/**/*.js",
55
"typetests/**/*.tst.ts"
66
]
77
}

‎lib/advanced-types.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// TODO: Replace with proper types or remove file
2-
import {} from 'node:fs/promises';
2+
export type Foo = true;

‎package.json‎

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"author": "Pelle Wessman <pelle@kodfabrik.se> (http://kodfabrik.se/)",
1212
"license": "MIT",
1313
"engines": {
14-
"node": "^20.19.0 || ^22.13.0 || >=24",
15-
"typescript": ">=5.8"
14+
"node": "^22.22.2 || ^24.15.0 || >=26.0.0",
15+
"typescript": ">=5.9"
1616
},
1717
"type": "module",
1818
"exports": "./index.js",
@@ -26,39 +26,39 @@
2626
"lib/**/*.d.ts.map"
2727
],
2828
"scripts": {
29+
"build": "run-s build:*",
2930
"build:0": "run-s clean",
3031
"build:1-declaration": "tsc -p declaration.tsconfig.json",
31-
"build": "run-s build:*",
32-
"check-type-tests": "run-s build && tstyche --target \"$(node -p \"require('./package.json').engines.typescript\")\" --reporters list,summary && run-s clean",
32+
"check": "run-s clean && run-p check:* --continue-on-error && run-s check-type-tests",
3333
"check:installed-check": "installed-check -i tstyche",
3434
"check:knip": "knip",
3535
"check:lint": "eslint",
3636
"check:tsc": "tsc",
3737
"check:type-coverage": "type-coverage --detail --strict --at-least 99 --ignore-files 'test/*'",
38-
"check": "run-s clean && run-p check:* --continue-on-error && run-s check-type-tests",
39-
"clean:declarations-top": "rm -f $(find . -maxdepth 1 -type f -name '*.d.ts*' ! -name 'index.d.ts')",
40-
"clean:declarations-lib": "rm -f $(find lib -type f -name '*.d.ts*' ! -name '*-types.d.ts' 2>/dev/null || true)",
38+
"check-type-tests": "run-s build && tstyche --target \"$(node -p \"require('./package.json').engines.typescript\")\" --reporters list,summary && run-s clean",
4139
"clean": "run-p clean:*",
42-
"husky-enable": "husky",
40+
"clean:declarations-lib": "rm -f $(find lib -type f -name '*.d.ts*' ! -name '*-types.d.ts' 2>/dev/null || true)",
41+
"clean:declarations-top": "rm -f $(find . -maxdepth 1 -type f -name '*.d.ts*' ! -name 'index.d.ts')",
4342
"husky-disable": "git config --unset core.hooksPath",
43+
"husky-enable": "husky",
4444
"prepublishOnly": "run-s build",
45+
"test": "run-s check test:*",
4546
"test:node": "c8 --reporter=lcov --reporter=text node --test",
46-
"test-ci": "run-s test:*",
47-
"test": "run-s check test:*"
47+
"test-ci": "run-s test:*"
4848
},
4949
"devDependencies": {
50-
"@types/node": "^20.19.37",
51-
"@voxpelli/eslint-config": "^23.0.0",
52-
"@voxpelli/tsconfig": "^16.1.0",
53-
"@voxpelli/typed-utils": "^4.0.0",
54-
"c8": "^11.0.0",
55-
"eslint": "^9.39.4",
50+
"@types/node": "^22.20.1",
51+
"@voxpelli/eslint-config": "^25.1.0",
52+
"@voxpelli/tsconfig": "^16.2.1",
53+
"@voxpelli/typed-utils": "^5.0.0",
54+
"c8": "^12.0.0",
55+
"eslint": "^9.39.5",
5656
"husky": "^9.1.7",
5757
"installed-check": "^10.0.1",
58-
"knip": "^5.86.0",
59-
"npm-run-all2": "^8.0.4",
60-
"tstyche": "^6.2.0",
61-
"type-coverage": "^2.29.7",
62-
"typescript": "~5.9.3"
58+
"knip": "^6.29.0",
59+
"npm-run-all2": "^9.0.2",
60+
"tstyche": "^7.2.2",
61+
"type-coverage": "^2.30.1",
62+
"typescript": "~6.0.2"
6363
}
6464
}

‎tsconfig.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@voxpelli/tsconfig/node20.json",
2+
"extends": "@voxpelli/tsconfig/node22.json",
33
"files": [
44
"index.js"
55
],
File renamed without changes.

0 commit comments

Comments
 (0)