chore(deps): update typescript (#17699)

This commit is contained in:
Bjorn Lu 2024-07-22 11:48:47 +08:00 committed by GitHub
parent 0cde495ebe
commit df5ceb35b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
15 changed files with 532 additions and 885 deletions

View File

@ -67,7 +67,7 @@
"lint-staged": "^15.2.7",
"npm-run-all2": "^6.2.2",
"picocolors": "^1.0.1",
"playwright-chromium": "^1.45.1",
"playwright-chromium": "^1.45.2",
"prettier": "3.3.3",
"rimraf": "^5.0.9",
"rollup": "^4.13.0",
@ -75,7 +75,7 @@
"simple-git-hooks": "^2.11.1",
"tslib": "^2.6.3",
"tsx": "^4.16.2",
"typescript": "^5.2.2",
"typescript": "^5.5.3",
"typescript-eslint": "^7.16.1",
"vite": "workspace:*",
"vitest": "^2.0.3"

View File

@ -12,7 +12,7 @@
"lit": "^3.1.4"
},
"devDependencies": {
"typescript": "^5.2.2",
"typescript": "^5.5.3",
"vite": "^5.3.4"
}
}

View File

@ -13,7 +13,7 @@
},
"devDependencies": {
"@preact/preset-vite": "^2.9.0",
"typescript": "^5.2.2",
"typescript": "^5.5.3",
"vite": "^5.3.4"
}
}

View File

@ -10,7 +10,7 @@
},
"devDependencies": {
"serve": "^14.2.3",
"typescript": "^5.2.2",
"typescript": "^5.5.3",
"vite": "^5.3.4"
},
"dependencies": {

View File

@ -22,7 +22,7 @@
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.8",
"typescript": "^5.2.2",
"typescript": "^5.5.3",
"vite": "^5.3.4"
}
}

View File

@ -12,7 +12,7 @@
"solid-js": "^1.8.18"
},
"devDependencies": {
"typescript": "^5.2.2",
"typescript": "^5.5.3",
"vite": "^5.3.4",
"vite-plugin-solid": "^2.10.2"
}

View File

@ -15,7 +15,7 @@
"svelte": "^4.2.18",
"svelte-check": "^3.8.4",
"tslib": "^2.6.3",
"typescript": "^5.2.2",
"typescript": "^5.5.3",
"vite": "^5.3.4"
}
}

View File

@ -9,7 +9,7 @@
"preview": "vite preview"
},
"devDependencies": {
"typescript": "^5.2.2",
"typescript": "^5.5.3",
"vite": "^5.3.4"
}
}

View File

@ -13,7 +13,7 @@
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.5",
"typescript": "^5.2.2",
"typescript": "^5.5.3",
"vite": "^5.3.4",
"vue-tsc": "^2.0.26"
}

View File

@ -116,9 +116,9 @@ const nodeConfig = defineConfig({
src: 'require("sugarss")',
replacement: `__require('sugarss')`,
},
'lilconfig/dist/index.js': {
pattern: /: require,/g,
replacement: `: __require,`,
'lilconfig/src/index.js': {
pattern: /: require;/g,
replacement: `: __require;`,
},
// postcss-load-config calls require after register ts-node
'postcss-load-config/src/index.js': {

View File

@ -980,7 +980,6 @@ export function onRollupWarning(
if (
warning.plugin === 'rollup-plugin-dynamic-import-variables' &&
dynamicImportWarningIgnoreList.some((msg) =>
// @ts-expect-error warning is RollupLog
warning.message.includes(msg),
)
) {

View File

@ -30,7 +30,7 @@ const createExecHandlers = <T extends (...args: any) => any>(
) => {
return ((...args: Parameters<T>) => {
for (const handler of handlers) {
const result = handler(...(args as []))
const result = handler(...args)
if (result) return result
}
return null

View File

@ -140,7 +140,7 @@ describe.runIf(isBuild)('build tests', () => {
expect(formatSourcemapForSnapshot(JSON.parse(map))).toMatchInlineSnapshot(`
{
"ignoreList": [],
"mappings": ";w+BAAA,OAAO,2BAAuB,EAAC,wBAE/B,QAAQ,IAAI,uBAAuB",
"mappings": ";63BAAA,OAAO,2BAAuB,EAAC,wBAE/B,QAAQ,IAAI,uBAAuB",
"sources": [
"../../after-preload-dynamic.js",
],

View File

@ -249,7 +249,6 @@ export async function withRetry(
}
export const expectWithRetry = <T>(getActual: () => Promise<T>) => {
type A = Assertion<T>
return new Proxy(
{},
{
@ -262,9 +261,9 @@ export const expectWithRetry = <T>(getActual: () => Promise<T>) => {
}
},
},
) as {
[K in keyof A]: (...params: Parameters<A[K]>) => Promise<ReturnType<A[K]>>
}
) as Assertion<T>['resolves']
// NOTE: `Assertion<T>['resolves']` has the special "promisify all assertion property functions"
// behaviour that we're lending here, which is the same as `PromisifyAssertion<T>` if Vitest exposes it
}
type UntilBrowserLogAfterCallback = (logs: string[]) => PromiseLike<void> | void

File diff suppressed because it is too large Load Diff