Skip to content

Commit df5ceb3

Browse files
authoredJul 22, 2024··
chore(deps): update typescript (#17699)
1 parent 0cde495 commit df5ceb3

File tree

15 files changed

+532
-885
lines changed

15 files changed

+532
-885
lines changed
 

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@
6767
"lint-staged": "^15.2.7",
6868
"npm-run-all2": "^6.2.2",
6969
"picocolors": "^1.0.1",
70-
"playwright-chromium": "^1.45.1",
70+
"playwright-chromium": "^1.45.2",
7171
"prettier": "3.3.3",
7272
"rimraf": "^5.0.9",
7373
"rollup": "^4.13.0",
7474
"rollup-plugin-esbuild": "^6.1.1",
7575
"simple-git-hooks": "^2.11.1",
7676
"tslib": "^2.6.3",
7777
"tsx": "^4.16.2",
78-
"typescript": "^5.2.2",
78+
"typescript": "^5.5.3",
7979
"typescript-eslint": "^7.16.1",
8080
"vite": "workspace:*",
8181
"vitest": "^2.0.3"

‎packages/create-vite/template-lit-ts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"lit": "^3.1.4"
1313
},
1414
"devDependencies": {
15-
"typescript": "^5.2.2",
15+
"typescript": "^5.5.3",
1616
"vite": "^5.3.4"
1717
}
1818
}

‎packages/create-vite/template-preact-ts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"devDependencies": {
1515
"@preact/preset-vite": "^2.9.0",
16-
"typescript": "^5.2.2",
16+
"typescript": "^5.5.3",
1717
"vite": "^5.3.4"
1818
}
1919
}

‎packages/create-vite/template-qwik-ts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"devDependencies": {
1212
"serve": "^14.2.3",
13-
"typescript": "^5.2.2",
13+
"typescript": "^5.5.3",
1414
"vite": "^5.3.4"
1515
},
1616
"dependencies": {

‎packages/create-vite/template-react-ts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"eslint": "^8.57.0",
2323
"eslint-plugin-react-hooks": "^4.6.2",
2424
"eslint-plugin-react-refresh": "^0.4.8",
25-
"typescript": "^5.2.2",
25+
"typescript": "^5.5.3",
2626
"vite": "^5.3.4"
2727
}
2828
}

‎packages/create-vite/template-solid-ts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"solid-js": "^1.8.18"
1313
},
1414
"devDependencies": {
15-
"typescript": "^5.2.2",
15+
"typescript": "^5.5.3",
1616
"vite": "^5.3.4",
1717
"vite-plugin-solid": "^2.10.2"
1818
}

‎packages/create-vite/template-svelte-ts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"svelte": "^4.2.18",
1616
"svelte-check": "^3.8.4",
1717
"tslib": "^2.6.3",
18-
"typescript": "^5.2.2",
18+
"typescript": "^5.5.3",
1919
"vite": "^5.3.4"
2020
}
2121
}

‎packages/create-vite/template-vanilla-ts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"preview": "vite preview"
1010
},
1111
"devDependencies": {
12-
"typescript": "^5.2.2",
12+
"typescript": "^5.5.3",
1313
"vite": "^5.3.4"
1414
}
1515
}

‎packages/create-vite/template-vue-ts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"devDependencies": {
1515
"@vitejs/plugin-vue": "^5.0.5",
16-
"typescript": "^5.2.2",
16+
"typescript": "^5.5.3",
1717
"vite": "^5.3.4",
1818
"vue-tsc": "^2.0.26"
1919
}

‎packages/vite/rollup.config.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ const nodeConfig = defineConfig({
116116
src: 'require("sugarss")',
117117
replacement: `__require('sugarss')`,
118118
},
119-
'lilconfig/dist/index.js': {
120-
pattern: /: require,/g,
121-
replacement: `: __require,`,
119+
'lilconfig/src/index.js': {
120+
pattern: /: require;/g,
121+
replacement: `: __require;`,
122122
},
123123
// postcss-load-config calls require after register ts-node
124124
'postcss-load-config/src/index.js': {

‎packages/vite/src/node/build.ts

-1
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,6 @@ export function onRollupWarning(
980980
if (
981981
warning.plugin === 'rollup-plugin-dynamic-import-variables' &&
982982
dynamicImportWarningIgnoreList.some((msg) =>
983-
// @ts-expect-error warning is RollupLog
984983
warning.message.includes(msg),
985984
)
986985
) {

‎packages/vite/src/runtime/sourcemap/interceptor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const createExecHandlers = <T extends (...args: any) => any>(
3030
) => {
3131
return ((...args: Parameters<T>) => {
3232
for (const handler of handlers) {
33-
const result = handler(...(args as []))
33+
const result = handler(...args)
3434
if (result) return result
3535
}
3636
return null

‎playground/js-sourcemap/__tests__/js-sourcemap.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ describe.runIf(isBuild)('build tests', () => {
140140
expect(formatSourcemapForSnapshot(JSON.parse(map))).toMatchInlineSnapshot(`
141141
{
142142
"ignoreList": [],
143-
"mappings": ";w+BAAA,OAAO,2BAAuB,EAAC,wBAE/B,QAAQ,IAAI,uBAAuB",
143+
"mappings": ";63BAAA,OAAO,2BAAuB,EAAC,wBAE/B,QAAQ,IAAI,uBAAuB",
144144
"sources": [
145145
"../../after-preload-dynamic.js",
146146
],

‎playground/test-utils.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ export async function withRetry(
249249
}
250250

251251
export const expectWithRetry = <T>(getActual: () => Promise<T>) => {
252-
type A = Assertion<T>
253252
return new Proxy(
254253
{},
255254
{
@@ -262,9 +261,9 @@ export const expectWithRetry = <T>(getActual: () => Promise<T>) => {
262261
}
263262
},
264263
},
265-
) as {
266-
[K in keyof A]: (...params: Parameters<A[K]>) => Promise<ReturnType<A[K]>>
267-
}
264+
) as Assertion<T>['resolves']
265+
// NOTE: `Assertion<T>['resolves']` has the special "promisify all assertion property functions"
266+
// behaviour that we're lending here, which is the same as `PromisifyAssertion<T>` if Vitest exposes it
268267
}
269268

270269
type UntilBrowserLogAfterCallback = (logs: string[]) => PromiseLike<void> | void

0 commit comments

Comments
 (0)
Please sign in to comment.