Skip to content

Commit

Permalink
feat: add TypeScript v5.1 support
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Aug 4, 2023
1 parent b6bac40 commit 3d0b582
Show file tree
Hide file tree
Showing 23 changed files with 3,076 additions and 2,767 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"extends": "./node_modules/@wessberg/ts-config/.eslintrc.json",
"plugins": ["deprecation"],
"rules": {
"deprecation/deprecation": ["error"]
"deprecation/deprecation": ["error"],
"@typescript-eslint/no-unnecessary-type-assertion": "off"
}
}
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
node: [16.15.1, 17, 18, 19]
node: [16.15.1, 17, 18, 19, 20]

steps:
- name: Checkout code
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ so that it works most efficiently.

## Backers

| <a href="https://usebubbles.com"><img alt="Bubbles" src="https://uploads-ssl.webflow.com/5d682047c28b217055606673/5e5360be16879c1d0dca6514_icon-thin-128x128%402x.png" height="70" /></a> | <a href="https://www.xerox.com"><img alt="Xerox" src="https://avatars.githubusercontent.com/u/9158512?s=200&v=4" height="70" /></a> | <a href="https://changelog.me"><img alt="Trent Raymond" src="https://avatars.githubusercontent.com/u/1509616?v=4" height="70" /></a> | <a href="https://scrubtheweb.com"><img alt="scrubtheweb" src="https://avatars.githubusercontent.com/u/41668218?v=4" height="70" /></a> | <a href="https://github.com/hjoelh"><img alt="Joel" src="https://avatars.githubusercontent.com/u/68335961?v=4" height="70" /></a> |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| [Bubbles](https://usebubbles.com)<br><strong>Twitter</strong>: [@usebubbles](https://twitter.com/usebubbles) | [Xerox](https://www.xerox.com) | [Trent Raymond](https://changelog.me) | [scrubtheweb](https://scrubtheweb.com) | [Joel](https://github.com/hjoelh) |
| <a href="https://changelog.me"><img alt="Trent Raymond" src="https://avatars.githubusercontent.com/u/1509616?v=4" height="70" /></a> | <a href="https://scrubtheweb.com/computers/programming/1"><img alt="scrubtheweb" src="https://avatars.githubusercontent.com/u/41668218?v=4" height="70" /></a> |
| -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Trent Raymond](https://changelog.me) | [scrubtheweb](https://scrubtheweb.com/computers/programming/1) |

### Patreon

Expand Down
80 changes: 38 additions & 42 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"clean": "rimraf dist",
"lint": "tsc --noEmit && eslint \"src/**/*.ts\" --color",
"prettier": "prettier --write \"{src,test,documentation}/**/*.{js,ts,json,html,xml,css,md}\"",
"test": "ava",
"test": "cross-env NODE_NO_WARNINGS=1 FORCE_COLOR=3 NODE_OPTIONS=\"--loader=tsx --max_old_space_size=6144\" ava",
"prebuild": "pnpm run clean",
"build": "pnpm run prebuild && pnpm run rollup",
"prewatch": "pnpm run clean",
Expand All @@ -19,8 +19,8 @@
"preversion": "pnpm run lint && pnpm run build",
"version": "pnpm run preversion && pnpm run generate:all && git add .",
"release": "np --no-cleanup --no-yarn",
"update:check": "pnpx npm-check-updates -x typescript-*,ava --dep dev,prod",
"update:commit": "pnpx npm-check-updates -u -x typescript-*,ava --dep dev,prod && pnpm update && pnpm install"
"update:check": "pnpx npm-check-updates -x typescript-* --dep dev,prod",
"update:commit": "pnpx npm-check-updates -u -x typescript-* --dep dev,prod && pnpm update && pnpm install"
},
"keywords": [
"DI",
Expand Down Expand Up @@ -53,34 +53,36 @@
],
"license": "MIT",
"devDependencies": {
"@types/node": "^18.11.18",
"@types/prettier": "^2.7.2",
"@types/semver": "^7.3.13",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"eslint-plugin-deprecation": "1.3.3",
"@wessberg/ts-config": "^3.1.0",
"@types/node": "^20.4.7",
"@types/prettier": "^2.7.3",
"@types/semver": "^7.5.0",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"eslint-plugin-deprecation": "1.5.0",
"@wessberg/ts-config": "^4.0.0",
"@wessberg/prettier-config": "^1.0.0",
"rollup-plugin-ts": "^3.2.0",
"semver": "^7.3.8",
"ava": "3.15.0",
"eslint": "^8.32.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsdoc": "^39.6.7",
"@prettier/sync": "0.3.0",
"rollup-plugin-ts": "^3.4.1",
"semver": "^7.5.4",
"ava": "^5.3.1",
"cross-env": "^7.0.3",
"eslint": "^8.46.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-jsdoc": "^46.4.5",
"husky": "^8.0.3",
"np": "^7.6.3",
"pnpm": "^7.25.1",
"prettier": "^2.8.3",
"np": "^8.0.4",
"pnpm": "^8.6.11",
"prettier": "^3.0.1",
"pretty-quick": "^3.1.3",
"rimraf": "^4.1.1",
"rollup": "^3.10.1",
"rimraf": "^5.0.1",
"rollup": "^3.27.1",
"sandhog": "^2.0.2",
"standard-changelog": "^2.0.27",
"ts-node": "^10.9.1",
"npm-check-updates": "^16.6.2",
"@esbuild-kit/esm-loader": "^2.5.4",
"typescript": "^4.9.4",
"standard-changelog": "^3.0.0",
"tsx": "^3.12.7",
"npm-check-updates": "^16.10.17",
"@esbuild-kit/esm-loader": "^2.5.5",
"typescript": "^5.1.6",
"typescript-3-4-1": "npm:typescript@3.4.1",
"typescript-3-5-1": "npm:typescript@3.5.1",
"typescript-3-6-2": "npm:typescript@3.6.2",
Expand All @@ -95,18 +97,20 @@
"typescript-4-5-4": "npm:typescript@4.5.4",
"typescript-4-6-4": "npm:typescript@4.6.4",
"typescript-4-7-2": "npm:typescript@4.7.2",
"typescript-4-8-2": "npm:typescript@4.8.2"
"typescript-4-8-2": "npm:typescript@4.8.2",
"typescript-4-9-4": "npm:typescript@4.9.4",
"typescript-5-0-4": "npm:typescript@5.0.4"
},
"dependencies": {
"crosspath": "^2.0.0",
"helpertypes": "^0.0.19",
"pirates": "^4.0.5",
"get-tsconfig": "4.3.0",
"pirates": "^4.0.6",
"get-tsconfig": "^4.6.2",
"ts-evaluator": "^1.1.0",
"compatfactory": "^2.0.9"
"compatfactory": "^3.0.0"
},
"peerDependencies": {
"typescript": ">=3.x || >= 4.x"
"typescript": ">=3.x || >= 4.x || >= 5.x"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -139,21 +143,13 @@
"prettier": "@wessberg/prettier-config",
"ava": {
"files": [
"test/**/**.test.ts"
"test/**/*.test.ts"
],
"verbose": true,
"timeout": "400s",
"nonSemVerExperiments": {
"configurableModuleFormat": true
},
"concurrency": 1,
"extensions": {
"ts": "module"
},
"nodeArguments": [
"--loader=ts-node/esm"
],
"environmentVariables": {
"FORCE_COLOR": "3"
}
}
}

0 comments on commit 3d0b582

Please sign in to comment.