Skip to content

Commit

Permalink
chore(deps): update typescript to v5.6 (#8145)
Browse files Browse the repository at this point in the history
* chore(deps): update ts 5.6

* chore: upgrade the api-extractor

* chore: use ^5.6.3
  • Loading branch information
SoonIter authored Oct 17, 2024
1 parent 1626c72 commit fc0751c
Show file tree
Hide file tree
Showing 18 changed files with 462 additions and 747 deletions.
9 changes: 9 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,15 @@
"matchPackagePrefixes": [
"@playwright/test"
]
},
{
"groupName": "typescript",
"matchManagers": [
"npm"
],
"matchPackageNames": [
"typescript"
]
}
]
}
12 changes: 9 additions & 3 deletions api-extractor.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,22 @@
*/
"enabled": true,

/**
* DEFAULT VALUE: "[ "complete" ]"
*/
"reportVariants": ["complete"],

/**
* The filename for the API report files. It will be combined with "reportFolder" or "reportTempFolder" to produce
* a full file path.
*
* The file extension should be ".api.md", and the string should not contain a path separator such as "\" or "/".
* API Extractor will automatically append an appropriate file extension such as .api.md
*
* SUPPORTED TOKENS: <packageName>, <unscopedPackageName>
* DEFAULT VALUE: "<unscopedPackageName>.api.md"
* DEFAULT VALUE: "<unscopedPackageName>"
*/
"reportFileName": "api.md",
"reportFileName": "<unscopedPackageName>",

/**
* Specifies the folder where the API report file is written. The file name portion is determined by
Expand All @@ -165,7 +171,7 @@
* prepend a folder token such as "<projectFolder>".
*
* SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>
* DEFAULT VALUE: "<projectFolder>/temp/"
* DEFAULT VALUE: "<projectFolder>/etc/"
*/
"reportFolder": "<projectFolder>/etc/",

Expand Down
2 changes: 1 addition & 1 deletion crates/node_binding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"repository": "web-infra-dev/rspack",
"devDependencies": {
"@napi-rs/cli": "3.0.0-alpha.45",
"typescript": "5.0.2"
"typescript": "^5.6.3"
},
"napi": {
"binaryName": "rspack"
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"x": "zx x.mjs",
"dev": "pnpm --filter @rspack/cli run dev",
"clean": "pnpm --filter @rspack/cli run clean",
"check-dependency-version": "check-dependency-version-consistency . --ignore-dep typescript --ignore-dep @napi-rs/cli --ignore-dep chalk --ignore-package webpack-test --ignore-package webpack-examples --ignore-package plugin-test",
"check-dependency-version": "check-dependency-version-consistency . --ignore-dep @napi-rs/cli --ignore-dep chalk --ignore-package webpack-test --ignore-package webpack-examples --ignore-package plugin-test",
"build:js": "pnpm --filter \"@rspack/core\" build:force && pnpm --filter \"@rspack/*\" --filter \"create-rspack\" --filter \"!@rspack/core\" build",
"build:cli:debug": "npm run build:binding:debug && npm run build:js",
"build:cli:release": "npm run build:binding:release && npm run build:js",
Expand Down Expand Up @@ -55,8 +55,8 @@
"devDependencies": {
"@biomejs/biome": "1.8.0",
"@jest/reporters": "29.7.0",
"@microsoft/api-extractor": "^7.43.1",
"@microsoft/api-extractor-model": "^7.28.14",
"@microsoft/api-extractor": "7.47.10",
"@microsoft/api-extractor-model": "7.29.8",
"@rspack/cli": "workspace:*",
"@taplo/cli": "^0.7.0",
"@types/is-ci": "^3.0.4",
Expand All @@ -76,7 +76,7 @@
"prettier-2": "npm:[email protected]",
"rimraf": "3.0.2",
"ts-jest": "29.1.2",
"typescript": "5.0.2",
"typescript": "^5.6.3",
"webpack": "^5.94.0",
"webpack-cli": "5.1.4",
"zx": "7.2.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/create-rspack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"devDependencies": {
"@rslib/core": "0.0.12",
"typescript": "5.0.2"
"typescript": "^5.6.3"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-rspack/template-react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"cross-env": "^7.0.3",
"react-refresh": "^0.14.0",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
"typescript": "^5.6.3"
}
}
2 changes: 1 addition & 1 deletion packages/create-rspack/template-vanilla-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"@rspack/cli": "workspace:*",
"@rspack/core": "workspace:*",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
"typescript": "^5.6.3"
}
}
2 changes: 1 addition & 1 deletion packages/create-rspack/template-vue-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@rspack/core": "workspace:*",
"cross-env": "^7.0.3",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"typescript": "^5.6.3",
"vue-loader": "^17.3.1"
}
}
2 changes: 1 addition & 1 deletion packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-refresh": "^0.14.0",
"typescript": "5.0.2",
"typescript": "^5.6.3",
"tailwindcss": "^3.3.0",
"vue": "^3.4.21",
"vue-loader": "^17.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/rspack-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"execa": "^5.0.0",
"internal-ip": "6.2.0",
"ts-node": "^10.9.2",
"typescript": "5.0.2"
"typescript": "^5.6.3"
},
"peerDependencies": {
"@rspack/core": "^1.0.0-alpha || ^1.x"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
```ts

/// <reference types="../jest.d.ts" />
/// <reference types="jest" />
/// <reference types="node" />

import type { Compiler } from '@rspack/core';
import type { Compiler as Compiler_2 } from 'webpack';
import type { Configuration } from 'webpack';
Expand Down
2 changes: 1 addition & 1 deletion packages/rspack-test-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"source-map-loader": "^5.0.0",
"style-loader": "^4.0.0",
"terser": "5.27.2",
"typescript": "5.0.2",
"typescript": "^5.6.3",
"wast-loader": "^1.12.1"
},
"peerDependencies": {
Expand Down
Loading

2 comments on commit fc0751c

@rspack-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Benchmark detail: Open

Name Base (2024-10-17 1626c72) Current Change
10000_development-mode + exec 2.18 s ± 39 ms 2.17 s ± 23 ms -0.16 %
10000_development-mode_hmr + exec 670 ms ± 28 ms 664 ms ± 17 ms -0.94 %
10000_production-mode + exec 2.69 s ± 39 ms 2.73 s ± 52 ms +1.24 %
arco-pro_development-mode + exec 1.82 s ± 80 ms 1.83 s ± 89 ms +0.43 %
arco-pro_development-mode_hmr + exec 426 ms ± 1.4 ms 427 ms ± 1.5 ms +0.15 %
arco-pro_production-mode + exec 3.32 s ± 57 ms 3.3 s ± 82 ms -0.67 %
arco-pro_production-mode_generate-package-json-webpack-plugin + exec 3.33 s ± 92 ms 3.36 s ± 77 ms +0.93 %
threejs_development-mode_10x + exec 1.6 s ± 16 ms 1.61 s ± 19 ms +0.28 %
threejs_development-mode_10x_hmr + exec 760 ms ± 21 ms 762 ms ± 17 ms +0.31 %
threejs_production-mode_10x + exec 4.97 s ± 24 ms 4.98 s ± 21 ms +0.23 %

@rspack-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Ran ecosystem CI: Open

suite result
modernjs ❌ failure
_selftest ✅ success
rspress ✅ success
rslib ✅ success
rsbuild ✅ success
examples ✅ success
devserver ✅ success

Please sign in to comment.