Skip to content

Commit 73ed586

Browse files
committed
feat: add TypeScript v5.6 support
1 parent e7aac22 commit 73ed586

File tree

106 files changed

+2498
-4779
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+2498
-4779
lines changed

.eslintrc.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [windows-latest, macos-latest, ubuntu-latest]
14-
node: [16.15.1, 18, 20]
14+
node: [21, 22]
1515

1616
steps:
1717
- name: Checkout code

eslint.config.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import shared from "@wessberg/ts-config/eslint.config.js";
2+
3+
export default [
4+
...shared,
5+
{
6+
rules: {
7+
"@typescript-eslint/no-unsafe-assignment": "off",
8+
"@typescript-eslint/no-unsafe-return": "off",
9+
"@typescript-eslint/no-unsafe-argument": "off",
10+
"@typescript-eslint/no-unsafe-call": "off",
11+
"@typescript-eslint/no-unsafe-member-access": "off",
12+
"@typescript-eslint/require-await": "off",
13+
"@typescript-eslint/no-unnecessary-condition": "off"
14+
}
15+
}
16+
];

package.json

Lines changed: 47 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@
99
"clean": "rimraf dist",
1010
"lint": "tsc --noEmit && eslint \"{src,test}/**/*.ts\" --color",
1111
"prettier": "prettier --write \"{src,test,documentation}/**/*.{js,ts,json,html,xml,css,md}\"",
12-
"test": "cross-env NODE_NO_WARNINGS=1 FORCE_COLOR=3 NODE_OPTIONS=\"--loader=tsx --max_old_space_size=6144\" ava",
12+
"test": "node --import tsx --test \"./test/**/*.test.ts\"",
1313
"prebuild": "pnpm run clean",
14-
"build": "pnpm run prebuild && pnpm run rollup",
15-
"rollup": "rollup -c rollup.config.mjs",
14+
"build": "tsup \"src/index.ts\" --sourcemap --dts --format esm,cjs",
1615
"preversion": "pnpm run lint && pnpm run build",
1716
"version": "pnpm run generate:all && git add .",
1817
"release": "np --no-cleanup --no-yarn --no-tests",
19-
"update:check": "pnpx npm-check-updates -x typescript-*,ava --dep dev,prod",
20-
"update:commit": "pnpx npm-check-updates -u -x typescript-*,ava --dep dev,prod && pnpm update && pnpm install"
18+
"update:check": "pnpx npm-check-updates -x typescript-* --dep dev,prod",
19+
"update:commit": "pnpx npm-check-updates -u -x typescript-* --dep dev,prod && pnpm update && pnpm install"
2120
},
2221
"keywords": [
2322
"typescript",
@@ -43,37 +42,33 @@
4342
],
4443
"license": "MIT",
4544
"devDependencies": {
46-
"@types/jsdom": "^21.1.1",
47-
"@types/node": "^20.4.7",
48-
"@types/object-path": "^0.11.1",
49-
"@types/semver": "^7.5.0",
50-
"@typescript-eslint/eslint-plugin": "^6.2.1",
51-
"@typescript-eslint/parser": "^6.2.1",
52-
"@wessberg/ts-config": "^4.0.0",
45+
"@eslint/js": "^9.12.0",
46+
"@types/jsdom": "^21.1.7",
47+
"@types/node": "^22.7.5",
48+
"@types/object-path": "^0.11.4",
49+
"@types/semver": "^7.5.8",
5350
"@wessberg/prettier-config": "^1.0.0",
54-
"rollup-plugin-ts": "3.4.2",
55-
"ava": "^5.3.1",
56-
"cross-env": "^7.0.3",
57-
"eslint": "^8.46.0",
58-
"eslint-config-prettier": "^8.10.0",
59-
"eslint-plugin-import": "^2.28.0",
60-
"eslint-plugin-jsdoc": "^46.4.5",
51+
"@wessberg/ts-config": "^5.0.18",
52+
"eslint": "^9.12.0",
53+
"eslint-config-prettier": "^9.1.0",
54+
"eslint-plugin-jsdoc": "^50.3.1",
55+
"eslint-plugin-prettier": "^5.2.1",
6156
"helpertypes": "^0.0.19",
62-
"husky": "^8.0.3",
63-
"memfs": "^4.2.0",
64-
"np": "8.0.4",
65-
"npm-check-updates": "^16.10.17",
66-
"pnpm": "^8.6.11",
67-
"prettier": "^3.0.1",
68-
"lint-staged": "^13.2.3",
69-
"rimraf": "^5.0.1",
70-
"rollup": "^3.27.2",
57+
"husky": "^9.1.6",
58+
"jsdom": "^25.0.1",
59+
"lint-staged": "^15.2.10",
60+
"memfs": "^4.13.0",
61+
"np": "10.0.7",
62+
"npm-check-updates": "^17.1.3",
63+
"pnpm": "^9.12.1",
64+
"prettier": "^3.3.3",
65+
"rimraf": "^6.0.1",
7166
"sandhog": "^2.0.2",
72-
"semver": "7.5.4",
73-
"jsdom": "^22.1.0",
74-
"standard-changelog": "^3.0.0",
75-
"tsx": "^3.12.7",
76-
"typescript": "^5.1.6",
67+
"semver": "7.6.3",
68+
"standard-changelog": "^6.0.0",
69+
"tsup": "^8.3.0",
70+
"tsx": "^4.19.1",
71+
"typescript": "^5.6.3",
7772
"typescript-3-4-1": "npm:[email protected]",
7873
"typescript-3-5-1": "npm:[email protected]",
7974
"typescript-3-6-2": "npm:[email protected]",
@@ -90,30 +85,37 @@
9085
"typescript-4-7-2": "npm:[email protected]",
9186
"typescript-4-8-2": "npm:[email protected]",
9287
"typescript-4-9-4": "npm:[email protected]",
93-
"typescript-5-0-4": "npm:[email protected]"
88+
"typescript-5-0-4": "npm:[email protected]",
89+
"typescript-5-1-6": "npm:[email protected]",
90+
"typescript-5-2-2": "npm:[email protected]",
91+
"typescript-5-3-3": "npm:[email protected]",
92+
"typescript-5-4-5": "npm:[email protected]",
93+
"typescript-5-5-4": "npm:[email protected]",
94+
"typescript-5-6-2": "npm:[email protected]",
95+
"typescript-eslint": "^8.8.1"
9496
},
9597
"dependencies": {
9698
"ansi-colors": "^4.1.3",
97-
"object-path": "^0.11.8",
98-
"crosspath": "^2.0.0"
99+
"crosspath": "^2.0.0",
100+
"object-path": "^0.11.8"
99101
},
100102
"peerDependencies": {
101-
"typescript": ">=3.2.x || >= 4.x || >= 5.x",
102-
"jsdom": ">=14.x || >=15.x || >=16.x || >=17.x || >=18.x || >=19.x || >=20.x || >=21.x || >=22.x"
103+
"jsdom": ">=14.x || >=15.x || >=16.x || >=17.x || >=18.x || >=19.x || >=20.x || >=21.x || >=22.x",
104+
"typescript": ">=3.2.x || >= 4.x || >= 5.x"
103105
},
104106
"peerDependenciesMeta": {
105107
"jsdom": {
106108
"optional": true
107109
}
108110
},
109111
"exports": {
110-
"import": "./dist/esm/index.js",
111-
"require": "./dist/cjs/index.cjs"
112+
"import": "./dist/index.js",
113+
"require": "./dist/index.cjs"
112114
},
113115
"type": "module",
114-
"types": "./dist/esm/index.d.ts",
115-
"main": "./dist/cjs/index.cjs",
116-
"module": "./dist/esm/index.js",
116+
"types": "./dist/index.d.ts",
117+
"main": "./dist/index.cjs",
118+
"module": "./dist/index.js",
117119
"funding": {
118120
"type": "github",
119121
"url": "https://github.com/wessberg/ts-evaluator?sponsor=1"
@@ -126,21 +128,10 @@
126128
"url": "https://github.com/wessberg/ts-evaluator/issues"
127129
},
128130
"engines": {
129-
"node": ">=14.19.0"
131+
"node": ">=18.20.0"
130132
},
131133
"lint-staged": {
132134
"*": "prettier --ignore-unknown --write"
133135
},
134-
"prettier": "@wessberg/prettier-config",
135-
"ava": {
136-
"files": [
137-
"test/**/*.test.ts"
138-
],
139-
"verbose": true,
140-
"timeout": "400s",
141-
"concurrency": 1,
142-
"extensions": {
143-
"ts": "module"
144-
}
145-
}
136+
"prettier": "@wessberg/prettier-config"
146137
}

0 commit comments

Comments
 (0)