From ee3cfac36f76596e929962fcdab4f78fea6be49b Mon Sep 17 00:00:00 2001 From: "voidzero-guard[bot]" <278573678+voidzero-guard[bot]@users.noreply.github.com> Date: Mon, 23 Nov 2026 00:55:35 +0000 Subject: [PATCH 1/3] feat(deps): upgrade upstream dependencies - tsdown: 0.23.4 -> 0.23.5 - @tsdown/css: 0.23.4 -> 0.23.5 - @tsdown/exe: 0.23.4 -> 0.23.5 - lint-staged: 17.6.1 -> 17.6.2 - yuku: 0.19.0 -> 0.25.0 Code changes: - Handle the `yuku-parser` to `yuku` rename in `.github/scripts/upgrade-deps-utils.ts` and `.github/scripts/upgrade-deps.ts`. - Externalize `yuku` and replace the optional native-preview peer with `tsrs` in `packages/core/build.ts` and `packages/core/package.json`. - Add explicit `UserConfig` typing in `packages/prompts/tsdown.config.ts`. - Replace the native-preview DTS case with TypeScript 7.1 tsgo and refresh warnings in `crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/` and `crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_monorepo/snapshots/command_pack_monorepo.md`. Co-Authored-By: Kimi --- .github/scripts/upgrade-deps-utils.ts | 14 +- .github/scripts/upgrade-deps.ts | 12 +- .../command_pack_dts_compat/snapshots.toml | 7 +- .../command_pack_dts_native_preview.md | 37 ---- .../snapshots/command_pack_dts_tsgo.md | 34 ++++ .../command_pack_dts_typescript_7.md | 2 +- .../snapshots/command_pack_monorepo.md | 4 +- packages/core/build.ts | 16 +- packages/core/package.json | 12 +- packages/prompts/tsdown.config.ts | 8 +- pnpm-lock.yaml | 159 +++++++++++++----- pnpm-workspace.yaml | 8 +- 12 files changed, 198 insertions(+), 115 deletions(-) delete mode 100644 crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_native_preview.md create mode 100644 crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_tsgo.md diff --git a/.github/scripts/upgrade-deps-utils.ts b/.github/scripts/upgrade-deps-utils.ts index 8ded25dd22..087df9b321 100644 --- a/.github/scripts/upgrade-deps-utils.ts +++ b/.github/scripts/upgrade-deps-utils.ts @@ -12,10 +12,14 @@ export function getBundledDependencyRanges( const tsdownRequire = createRequire(coreRequire.resolve('tsdown/package.json')); const pluginPath = tsdownRequire.resolve('rolldown-plugin-dts/package.json'); const vitePath = join(root, 'vite/packages/vite/package.json'); + const pluginPackage = JSON.parse(readFileSync(pluginPath, 'utf8')) as { + dependencies?: Record; + }; + const yukuPackage = typeof pluginPackage.dependencies?.yuku === 'string' ? 'yuku' : 'yuku-parser'; // These packages stay external in packages/core/build.ts. Follow their // bundled consumers rather than independently selecting the latest releases. const sources: { path: string; field: DependencyField; names: string[] }[] = [ - { path: pluginPath, field: 'dependencies', names: ['yuku-parser'] }, + { path: pluginPath, field: 'dependencies', names: [yukuPackage] }, { path: vitePath, field: 'dependencies', names: ['postcss'] }, { path: vitePath, field: 'optionalDependencies', names: ['fsevents'] }, ]; @@ -28,10 +32,10 @@ export function getBundledDependencyRanges( if (typeof range !== 'string' || range.trim() === '') { throw new Error(`Missing ${field}.${name} in ${path}; review core's externals`); } - if (name === 'yuku-parser') { - // The AST helpers and codegen are bundled. Pin the runtime parser to - // the exact version resolved by the same plugin so it cannot drift. - const parserPath = createRequire(path).resolve('yuku-parser/package.json'); + if (name === 'yuku' || name === 'yuku-parser') { + // Pin the runtime to the exact version resolved by the same plugin so + // the bundled code and its native bindings cannot drift. + const parserPath = createRequire(path).resolve(`${name}/package.json`); const { version } = JSON.parse(readFileSync(parserPath, 'utf8')) as { version?: unknown }; if (typeof version !== 'string' || version.trim() === '') { throw new Error(`Missing version in ${parserPath}; review core's externals`); diff --git a/.github/scripts/upgrade-deps.ts b/.github/scripts/upgrade-deps.ts index 5c45169e60..8f3a958025 100644 --- a/.github/scripts/upgrade-deps.ts +++ b/.github/scripts/upgrade-deps.ts @@ -541,13 +541,21 @@ function syncBundledDependencies(): void { const ranges = getBundledDependencyRanges(ROOT); const filePath = path.join(ROOT, 'packages/core/package.json'); const pkg = readJsonFile(filePath); + const yukuName = ranges.find(({ name }) => name === 'yuku' || name === 'yuku-parser')?.name; + const previousYukuName = yukuName === 'yuku' ? 'yuku-parser' : 'yuku'; + const previousYukuRange = pkg.dependencies?.[previousYukuName]; + if (yukuName) { + delete pkg.dependencies?.[previousYukuName]; + changes.delete(previousYukuName); + } for (const { name, field, range } of ranges) { - const oldRange = pkg[field]?.[name]; - if (typeof oldRange !== 'string') { + const oldRange = pkg[field]?.[name] ?? (name === yukuName ? previousYukuRange : undefined); + if (typeof oldRange !== 'string' && name !== yukuName) { throw new Error(`Missing ${field}.${name} in ${filePath}`); } // Preserve the original version if synchronization runs again after fixups. recordChange(name, changes.get(name)?.old ?? oldRange, range); + pkg[field] ??= {}; pkg[field][name] = range; } syncCoreVersion(pkg); diff --git a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots.toml b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots.toml index e282c45345..11290645e3 100644 --- a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots.toml +++ b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots.toml @@ -10,14 +10,13 @@ steps = [ ] [[case]] -name = "command_pack_dts_native_preview" +name = "command_pack_dts_tsgo" vp = "global" local-registry = true env = { PACK_DTS_GENERATOR = "tsgo" } -comment = "An explicit tsgo generator uses native-preview with TypeScript 5.9.3. pnpm hoist:false also verifies core declares the optional native-preview peer." +comment = "An explicit tsgo generator uses the declaration emit API in TypeScript 7.1.0-beta." steps = [ - { argv = ["vpt", "json-edit", "package.json", "devDependencies.typescript", "5.9.3"], snapshot = false }, - { argv = ["vpt", "json-edit", "package.json", "devDependencies.@typescript/native-preview", "7.0.0-dev.20260707.2"], snapshot = false }, + { argv = ["vpt", "json-edit", "package.json", "devDependencies.typescript", "7.1.0-beta"], snapshot = false }, { argv = ["vp", "install", "--ignore-scripts"], snapshot = false }, ["vp", "pack"], ["vpt", "print-file", "dist/index.d.mts"], diff --git a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_native_preview.md b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_native_preview.md deleted file mode 100644 index 4041b06a68..0000000000 --- a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_native_preview.md +++ /dev/null @@ -1,37 +0,0 @@ -# command_pack_dts_native_preview - -An explicit tsgo generator uses native-preview with TypeScript 5.9.3. pnpm hoist:false also verifies core declares the optional native-preview peer. - -## `vpt json-edit package.json devDependencies.typescript 5.9.3` - - -## `vpt json-edit package.json devDependencies.@typescript/native-preview 7.0.0-dev.20260707.2` - - -## `vp install --ignore-scripts` - - -## `vp pack` - -``` -VITE+ - The Unified Toolchain for the Web - -ℹ entry: src/index.ts -ℹ tsconfig: tsconfig.json -ℹ Build start -warn: TypeScript 7.0 does not yet have a stable API and is experimental. Some options will be unavailable. -ℹ Emit types with @typescript/native-preview@7.0.0-dev.20260707.2 -ℹ dist/index.mjs kB │ gzip: kB -ℹ dist/index.d.mts kB │ gzip: kB -ℹ 2 files, total: kB -✔ Build complete in -``` - -## `vpt print-file dist/index.d.mts` - -``` -export declare function greet(name: string): { - message: string; - length: number; -}; -``` diff --git a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_tsgo.md b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_tsgo.md new file mode 100644 index 0000000000..5f8e9aced1 --- /dev/null +++ b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_tsgo.md @@ -0,0 +1,34 @@ +# command_pack_dts_tsgo + +An explicit tsgo generator uses the declaration emit API in TypeScript 7.1.0-beta. + +## `vpt json-edit package.json devDependencies.typescript 7.1.0-beta` + + +## `vp install --ignore-scripts` + + +## `vp pack` + +``` +VITE+ - The Unified Toolchain for the Web + +ℹ entry: src/index.ts +ℹ tsconfig: tsconfig.json +ℹ Build start +warn: TypeScript Go is experimental. Some options will be unavailable. +ℹ Emit types with TypeScript Go +ℹ dist/index.mjs kB │ gzip: kB +ℹ dist/index.d.mts kB │ gzip: kB +ℹ 2 files, total: kB +✔ Build complete in +``` + +## `vpt print-file dist/index.d.mts` + +``` +export declare function greet(name: string): { + message: string; + length: number; +}; +``` diff --git a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_typescript_7.md b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_typescript_7.md index 3c79d1a935..031fdb1014 100644 --- a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_typescript_7.md +++ b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_typescript_7.md @@ -13,7 +13,7 @@ VITE+ - The Unified Toolchain for the Web ℹ entry: src/index.ts ℹ tsconfig: tsconfig.json ℹ Build start -warn: TypeScript 7.0 does not yet have a stable API and is experimental. Some options will be unavailable. +warn: The `tsgo` generator on TypeScript 7.0 is deprecated and will be removed in the next minor. Upgrade to TypeScript 7.1 or later. ℹ Emit types with typescript@7.0.2 ℹ dist/index.mjs kB │ gzip: kB ℹ dist/index.d.mts kB │ gzip: kB diff --git a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_monorepo/snapshots/command_pack_monorepo.md b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_monorepo/snapshots/command_pack_monorepo.md index e1a364cf1e..0a71cccff0 100644 --- a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_monorepo/snapshots/command_pack_monorepo.md +++ b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_monorepo/snapshots/command_pack_monorepo.md @@ -106,7 +106,7 @@ should hit cache from sub dir ℹ entry: ./src/sub/index.ts ℹ tsconfig: tsconfig.json ℹ Build start -warn: TypeScript 7.0 does not yet have a stable API and is experimental. Some options will be unavailable. +warn: The `tsgo` generator on TypeScript 7.0 is deprecated and will be removed in the next minor. Upgrade to TypeScript 7.1 or later. ℹ Emit types with typescript@7.0.2 ℹ dist/index.mjs kB │ gzip: kB ℹ dist/index.d.mts kB │ gzip: kB @@ -126,7 +126,7 @@ should hit cache from root after sub dir build ℹ entry: ./src/sub/index.ts ℹ tsconfig: tsconfig.json ℹ Build start -warn: TypeScript 7.0 does not yet have a stable API and is experimental. Some options will be unavailable. +warn: The `tsgo` generator on TypeScript 7.0 is deprecated and will be removed in the next minor. Upgrade to TypeScript 7.1 or later. ℹ Emit types with typescript@7.0.2 ℹ dist/index.mjs kB │ gzip: kB ℹ dist/index.d.mts kB │ gzip: kB diff --git a/packages/core/build.ts b/packages/core/build.ts index 44cc6bb168..07349443a7 100644 --- a/packages/core/build.ts +++ b/packages/core/build.ts @@ -475,16 +475,15 @@ async function bundleTsdown() { // in and they cannot be bundled. Both are core `dependencies`, so they resolve // at runtime and CSS bundling works without users installing anything. // - // `yuku-parser` (used by `rolldown-plugin-dts`) loads native bindings through - // `yuku-core`. Keep it external and declare it as a core dependency so the - // native loader resolves its platform package at runtime. Pin its version - // to the one resolved by the bundled plugin. `yuku-ast` and - // `yuku-codegen` are pure JavaScript in Yuku 0.19 and are bundled into core. + // `yuku` (used by `rolldown-plugin-dts`) loads native bindings through its + // platform packages. Keep it external and declare it as a core dependency so + // the native loader resolves those packages at runtime. Pin its version to + // the one resolved by the bundled plugin. const tsdownExternal = [ ...Object.keys(pkgJson.peerDependencies).filter((name) => !bundledTsdownPackages.has(name)), 'lightningcss', 'postcss', - 'yuku-parser', + 'yuku', ]; const isExternal = (id: string) => tsdownExternal.some((e) => id === e || id.startsWith(`${e}/`)); @@ -757,9 +756,8 @@ async function mergePackageJson() { // Merge peerDependencies from rolldown-plugin-dts, tsdown and vite. The bundled // dts plugin still resolves `vue-tsc`, `@volar/typescript`, - // `@vue/language-core` and `@typescript/native-preview` from core at runtime, - // and its declarations import their types, so isolated installs need them - // declared here. + // `@vue/language-core` and `tsrs` from core at runtime, and its declarations + // import their types, so isolated installs need them declared here. destPkg.peerDependencies = { ...dtsPkg.peerDependencies, ...tsdownPkg.peerDependencies, diff --git a/packages/core/package.json b/packages/core/package.json index cb88732eb0..fa1fecf7aa 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -114,7 +114,7 @@ "@oxc-project/types": "catalog:", "lightningcss": "catalog:", "postcss": "^8.5.32", - "yuku-parser": "0.19.0" + "yuku": "0.25.0" }, "devDependencies": { "@ast-grep/napi": "^0.51.0", @@ -147,7 +147,6 @@ "peerDependencies": { "@arethetypeswrong/core": "^0.18.1", "@types/node": "^20.19.0 || >=22.12.0", - "@typescript/native-preview": "*", "@vitejs/devtools": "^0.7.1 || ^0.8.0", "@volar/typescript": "~2.4.0", "@vue/language-core": "~3.2.0 || ~3.3.0", @@ -160,6 +159,7 @@ "stylus": ">=0.54.8", "sugarss": "^5.0.0", "terser": "^5.16.0", + "tsrs": "*", "tsx": "^4.8.1", "typescript": "^5.0.0 || ^6.0.0 || ^7.0.0", "unplugin-unused": ">=0.5.0", @@ -168,15 +168,15 @@ "yaml": "^2.4.2" }, "peerDependenciesMeta": { - "@typescript/native-preview": { - "optional": true - }, "@volar/typescript": { "optional": true }, "@vue/language-core": { "optional": true }, + "tsrs": { + "optional": true + }, "typescript": { "optional": true }, @@ -241,7 +241,7 @@ "bundledVersions": { "vite": "8.3.8", "rolldown": "1.2.19", - "tsdown": "0.23.4" + "tsdown": "0.23.5" }, "vitePlusVersion": "1.7.0" } diff --git a/packages/prompts/tsdown.config.ts b/packages/prompts/tsdown.config.ts index 6231d8bd2d..2743196618 100644 --- a/packages/prompts/tsdown.config.ts +++ b/packages/prompts/tsdown.config.ts @@ -1,7 +1,9 @@ -import { defineConfig } from 'tsdown'; +import { defineConfig, type UserConfig } from 'tsdown'; -export default defineConfig({ +const config: UserConfig = { deps: { onlyBundle: false, }, -}); +}; + +export default defineConfig(config); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bd98fd9604..f25019eaec 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -204,11 +204,11 @@ catalogs: specifier: ^1.0.0 version: 1.0.1 '@tsdown/css': - specifier: '=0.23.4' - version: 0.23.4 + specifier: '=0.23.5' + version: 0.23.5 '@tsdown/exe': - specifier: '=0.23.4' - version: 0.23.4 + specifier: '=0.23.5' + version: 0.23.5 '@types/cross-spawn': specifier: ^6.0.6 version: 6.0.6 @@ -285,8 +285,8 @@ catalogs: specifier: ^1.33.0 version: 1.33.0 lint-staged: - specifier: ^17.6.1 - version: 17.6.1 + specifier: ^17.6.2 + version: 17.6.2 minimatch: specifier: ^11.0.0 version: 11.0.5 @@ -339,8 +339,8 @@ catalogs: specifier: ^0.2.15 version: 0.2.17 tsdown: - specifier: '=0.23.4' - version: 0.23.4 + specifier: '=0.23.5' + version: 0.23.5 tsrs: specifier: '=7.1.0-beta.tsrs4' version: 7.1.0-beta.tsrs4 @@ -527,7 +527,7 @@ importers: version: 3.3.1 lint-staged: specifier: 'catalog:' - version: 17.6.1 + version: 17.6.2 minimatch: specifier: 'catalog:' version: 11.0.5 @@ -545,7 +545,7 @@ importers: version: 0.2.17 tsdown: specifier: 'catalog:' - version: 0.23.4(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.4)(@tsdown/exe@0.23.4)(@typescript/native-preview@7.0.0-dev.20260707.2)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)) + version: 0.23.5(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.5)(@tsdown/exe@0.23.5)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsrs@7.1.0-beta.tsrs4)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)) validate-npm-package-name: specifier: 'catalog:' version: 8.0.0 @@ -612,6 +612,9 @@ importers: terser: specifier: ^5.16.0 version: 5.51.2 + tsrs: + specifier: '*' + version: 0.0.0 tsx: specifier: ^4.8.1 version: 4.23.15 @@ -627,9 +630,9 @@ importers: yaml: specifier: ^2.4.2 version: 2.9.1 - yuku-parser: - specifier: 0.19.0 - version: 0.19.0 + yuku: + specifier: 0.25.0 + version: 0.25.0 devDependencies: '@ast-grep/napi': specifier: ^0.51.0 @@ -648,10 +651,10 @@ importers: version: 1.0.2 '@tsdown/css': specifier: 'catalog:' - version: 0.23.4(jiti@2.7.0)(postcss-import@16.2.0(postcss@8.5.32))(postcss-modules@9.0.1(postcss@8.5.32))(postcss@8.5.32)(sass-embedded@1.108.1(source-map-js@1.2.2))(sass@1.108.1)(tsdown@0.23.4)(tsx@4.23.15)(yaml@2.9.1) + version: 0.23.5(jiti@2.7.0)(postcss-import@16.2.0(postcss@8.5.32))(postcss-modules@9.0.1(postcss@8.5.32))(postcss@8.5.32)(sass-embedded@1.108.1(source-map-js@1.2.2))(sass@1.108.1)(tsdown@0.23.5)(tsx@4.23.15)(yaml@2.9.1) '@tsdown/exe': specifier: 'catalog:' - version: 0.23.4(tsdown@0.23.4) + version: 0.23.5(tsdown@0.23.5) '@typescript/native-preview': specifier: 'catalog:' version: 7.0.0-dev.20260707.2 @@ -702,7 +705,7 @@ importers: version: 1.2.2 tsdown: specifier: 'catalog:' - version: 0.23.4(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.4)(@tsdown/exe@0.23.4)(@typescript/native-preview@7.0.0-dev.20260707.2)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)) + version: 0.23.5(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.5)(@tsdown/exe@0.23.5)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsrs@0.0.0)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)) typescript: specifier: 'catalog:' version: 7.0.2 @@ -746,7 +749,7 @@ importers: version: 4.1.0 tsdown: specifier: 'catalog:' - version: 0.23.4(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.4)(@tsdown/exe@0.23.4)(@typescript/native-preview@7.0.0-dev.20260707.2)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)) + version: 0.23.5(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.5)(@tsdown/exe@0.23.5)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsrs@0.0.0)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)) packages/tools: devDependencies: @@ -921,7 +924,7 @@ importers: version: 9.6.1 lint-staged: specifier: ^17.6.0 - version: 17.6.1 + version: 17.6.2 oxfmt: specifier: ^0.77.0 version: 0.77.0(vite-plus@packages+cli) @@ -3527,8 +3530,8 @@ packages: '@tootallnate/quickjs-emscripten@0.23.0': resolution: {integrity: sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==} - '@tsdown/css@0.23.4': - resolution: {integrity: sha512-lkEj33E0r7KhmiTQC+UYkOUoe5W50eHsDXoloDkj52OMFxAUfRieF1k4QcOIqMFKd7s0BjFHD8PFElnThVLHGA==} + '@tsdown/css@0.23.5': + resolution: {integrity: sha512-Zcobb3e4RTXcB3WijguGEXEfLJbhDxXq8Vce2PT1MR7E1JwMwwOevSXXAHFWTam5lJRBLyxrImcSQTqeZ2KCvA==} engines: {node: ^22.18.0 || ^24.11.0 || >=26.0.0} peerDependencies: postcss: ^8.4.0 @@ -3536,7 +3539,7 @@ packages: postcss-modules: ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 sass: '*' sass-embedded: '*' - tsdown: 0.23.4 + tsdown: 0.23.5 peerDependenciesMeta: postcss: optional: true @@ -3549,11 +3552,11 @@ packages: sass-embedded: optional: true - '@tsdown/exe@0.23.4': - resolution: {integrity: sha512-rU76qeRlEmDAD3wj03BIfN83GKCpqabe4IOuG09XLopngbwHUsxw14fSJYZqMliep6b/r8zm+tH3hP5361GUNw==} + '@tsdown/exe@0.23.5': + resolution: {integrity: sha512-10u+GOgcfenv4ZJ+2269W+RePRzRfWqi0fIjNd8nSzOhX9bcaSXXlU2q8brjsN5SCAARi7iq0t4vZTZ3V5rDiw==} engines: {node: ^22.18.0 || ^24.11.0 || >=26.0.0} peerDependencies: - tsdown: 0.23.4 + tsdown: 0.23.5 '@tsrs/darwin-arm64@7.1.0-beta.tsrs4': resolution: {integrity: sha512-Be1McQGyHipWIjnkvytZmh7Wi4YVATvTfiEuPX34kfk+W7QCtTdUUHnuLZ7bzwy8LgL9VDCmyvQtWiF3MENxBQ==} @@ -5489,8 +5492,8 @@ packages: resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==} engines: {node: '>=14'} - lint-staged@17.6.1: - resolution: {integrity: sha512-3MXgVN7BERDR/6CXZs2fDHGc+r0+hlvGAa9wqMlVbIS6RVRuaPOnb5SnN6wMXulwfEy9DXVkMVUN/8cUlpPDnw==} + lint-staged@17.6.2: + resolution: {integrity: sha512-c/JaXaXmleubmKUwwp4OAcq55RV9Z3HTUNdqdqPh2srtmP9Of3bcR6o00GoWDUye+9JhMuoYkhYqAVPIOZKcsw==} engines: {node: '>=22.22.1'} hasBin: true @@ -6667,14 +6670,14 @@ packages: peerDependencies: typescript: '>=4.0.0' - tsdown@0.23.4: - resolution: {integrity: sha512-AQQ/2Y7KBnf15GL4Ynjdltc94PkbKRI+arStyrp7inSQkRmTWNiXgfv50ESsjhBEsoVtiSloCAO2VyrqojWIOQ==} + tsdown@0.23.5: + resolution: {integrity: sha512-nD6Dvg2oEPBaU1T/78TkAelU9ycYT7QosVOjDxpKI9I3LSnu7saBvL3u+urLSb4cwioqzqxeqGEjtKwc9TnOpQ==} engines: {node: ^22.18.0 || ^24.11.0 || >=26.0.0} hasBin: true peerDependencies: '@arethetypeswrong/core': ^0.18.1 - '@tsdown/css': 0.23.4 - '@tsdown/exe': 0.23.4 + '@tsdown/css': 0.23.5 + '@tsdown/exe': 0.23.5 '@vitejs/devtools': '*' publint: ^0.3.8 tsx: '*' @@ -7081,18 +7084,22 @@ packages: yuku-ast@0.19.0: resolution: {integrity: sha512-PyCsiScaelhxBGzL8dyeJkLqvRZycoh78R31Vrt/WqYrm0hMFoKwIw/X7Dx5mBKLWAMlV9I9HEyBOHnj2gZVyw==} engines: {node: '>=14.18.0'} + deprecated: 'Yuku is now one package with one core. Use "yuku" instead: https://yuku.fyi/javascript/. Existing installs keep working but get no more fixes.' yuku-codegen@0.19.0: resolution: {integrity: sha512-uymAKHjDuaP4BEpkXC/BSLz4DUEF5oArZ5AuD3888nb2miChjWSgpPdojEJxm3pjpXkgUaCRJQyNAbnMN33wHg==} engines: {node: '>=14.18.0'} + deprecated: 'Yuku is now one package with one core. Use "yuku" instead: https://yuku.fyi/javascript/. Existing installs keep working but get no more fixes.' yuku-core@0.19.0: resolution: {integrity: sha512-kYK9e1XdfirNhkipzW0wmMcSWcVF/CWnuugodfVYRCUwvoBefweL9HzB96OiKEhsx78V5WbUxbJqlizMX869Qg==} engines: {node: '>=14.18.0'} + deprecated: 'Yuku is now one package with one core. Use "yuku" instead: https://yuku.fyi/javascript/. Existing installs keep working but get no more fixes.' yuku-parser@0.19.0: resolution: {integrity: sha512-XrBh9ZiQK5mJVRxZBAvD6LwRyAYrK3MFtH3+onyuxFL5hFD44EC3QOmIC1FjTj6H2MMwq46/NAI+NZxLZPZgxg==} engines: {node: '>=14.18.0'} + deprecated: 'Yuku is now one package with one core. Use "yuku" instead: https://yuku.fyi/javascript/. Existing installs keep working but get no more fixes.' yuku@0.25.0: resolution: {integrity: sha512-iAlHlpPmcjRqUauDkW9xF33b+jsUzTrrv49FfPLBNxEAUWuU7XN8tBUGjBHYPCEF/d3632MhG6GjCZutecA8Ng==} @@ -8982,12 +8989,29 @@ snapshots: '@tootallnate/quickjs-emscripten@0.23.0': {} - '@tsdown/css@0.23.4(jiti@2.7.0)(postcss-import@16.2.0(postcss@8.5.32))(postcss-modules@9.0.1(postcss@8.5.32))(postcss@8.5.32)(sass-embedded@1.108.1(source-map-js@1.2.2))(sass@1.108.1)(tsdown@0.23.4)(tsx@4.23.15)(yaml@2.9.1)': + '@tsdown/css@0.23.5(jiti@2.7.0)(postcss-import@16.2.0(postcss@8.5.32))(postcss-modules@9.0.1(postcss@8.5.32))(postcss@8.5.32)(sass-embedded@1.108.1(source-map-js@1.2.2))(sass@1.108.1)(tsdown@0.23.5)(tsx@4.23.15)': + dependencies: + lightningcss: 1.33.0 + postcss-load-config: 6.0.1(jiti@2.7.0)(postcss@8.5.32)(tsx@4.23.15)(yaml@2.9.1) + rolldown: link:rolldown/packages/rolldown + tsdown: 0.23.5(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.5)(@tsdown/exe@0.23.5)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsrs@0.0.0)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)) + optionalDependencies: + postcss: 8.5.32 + postcss-import: 16.2.0(postcss@8.5.32) + postcss-modules: 9.0.1(postcss@8.5.32) + sass: 1.108.1 + sass-embedded: 1.108.1(source-map-js@1.2.2) + transitivePeerDependencies: + - jiti + - tsx + - yaml + + '@tsdown/css@0.23.5(jiti@2.7.0)(postcss-import@16.2.0(postcss@8.5.32))(postcss-modules@9.0.1(postcss@8.5.32))(postcss@8.5.32)(sass-embedded@1.108.1(source-map-js@1.2.2))(sass@1.108.1)(tsdown@0.23.5)(tsx@4.23.15)(yaml@2.9.1)': dependencies: lightningcss: 1.33.0 postcss-load-config: 6.0.1(jiti@2.7.0)(postcss@8.5.32)(tsx@4.23.15)(yaml@2.9.1) rolldown: link:rolldown/packages/rolldown - tsdown: 0.23.4(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.4)(@tsdown/exe@0.23.4)(@typescript/native-preview@7.0.0-dev.20260707.2)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)) + tsdown: 0.23.5(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.5)(@tsdown/exe@0.23.5)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsrs@7.1.0-beta.tsrs4)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)) optionalDependencies: postcss: 8.5.32 postcss-import: 16.2.0(postcss@8.5.32) @@ -8999,11 +9023,11 @@ snapshots: - tsx - yaml - '@tsdown/exe@0.23.4(tsdown@0.23.4)': + '@tsdown/exe@0.23.5(tsdown@0.23.5)': dependencies: obug: 3.0.0 tinyexec: 1.3.1 - tsdown: 0.23.4(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.4)(@tsdown/exe@0.23.4)(@typescript/native-preview@7.0.0-dev.20260707.2)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)) + tsdown: 0.23.5(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.5)(@tsdown/exe@0.23.5)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsrs@7.1.0-beta.tsrs4)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)) verkit: 0.5.0 '@tsrs/darwin-arm64@7.1.0-beta.tsrs4': @@ -10931,7 +10955,7 @@ snapshots: lilconfig@3.1.3: {} - lint-staged@17.6.1: + lint-staged@17.6.2: dependencies: picomatch: 4.0.7 string-argv: 0.4.0 @@ -11714,6 +11738,23 @@ snapshots: - '@yuku-toolchain/wasm' - oxc-resolver + rolldown-plugin-dts@0.29.0(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(rolldown@rolldown+packages+rolldown)(tsrs@7.1.0-beta.tsrs4)(typescript@7.0.2)(vue-tsc@3.3.12(typescript@7.0.2)): + dependencies: + dts-resolver: 3.0.0(oxc-resolver@11.24.2) + get-tsconfig: 5.0.0-beta.6 + obug: 3.0.0 + rolldown: link:rolldown/packages/rolldown + yuku: 0.25.0 + optionalDependencies: + '@volar/typescript': 2.4.28 + '@vue/language-core': 3.3.12 + tsrs: 7.1.0-beta.tsrs4 + typescript: 7.0.2 + vue-tsc: 3.3.12(typescript@7.0.2) + transitivePeerDependencies: + - '@yuku-toolchain/wasm' + - oxc-resolver + rollup-plugin-license@3.7.1(picomatch@4.0.7)(rollup@4.63.1): dependencies: commenting: 1.1.0 @@ -12177,7 +12218,7 @@ snapshots: typescript: 7.0.2 optional: true - tsdown@0.23.4(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.4)(@tsdown/exe@0.23.4)(@typescript/native-preview@7.0.0-dev.20260707.2)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)): + tsdown@0.23.5(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.5)(@tsdown/exe@0.23.5)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsrs@0.0.0)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)): dependencies: cac: 7.1.0 defu: 6.1.7 @@ -12187,7 +12228,7 @@ snapshots: obug: 3.0.0 picomatch: 4.0.7 rolldown: link:rolldown/packages/rolldown - rolldown-plugin-dts: 0.28.8(@typescript/native-preview@7.0.0-dev.20260707.2)(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(rolldown@rolldown+packages+rolldown)(typescript@7.0.2)(vue-tsc@3.3.12(typescript@7.0.2)) + rolldown-plugin-dts: 0.29.0(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(rolldown@rolldown+packages+rolldown)(tsrs@0.0.0)(typescript@7.0.2)(vue-tsc@3.3.12(typescript@7.0.2)) tinyexec: 1.3.1 tinyglobby: 0.2.17 tinyps: 0.5.1 @@ -12195,8 +12236,8 @@ snapshots: verkit: 0.5.0 optionalDependencies: '@arethetypeswrong/core': 0.18.2 - '@tsdown/css': 0.23.4(jiti@2.7.0)(postcss-import@16.2.0(postcss@8.5.32))(postcss-modules@9.0.1(postcss@8.5.32))(postcss@8.5.32)(sass-embedded@1.108.1(source-map-js@1.2.2))(sass@1.108.1)(tsdown@0.23.4)(tsx@4.23.15)(yaml@2.9.1) - '@tsdown/exe': 0.23.4(tsdown@0.23.4) + '@tsdown/css': 0.23.5(jiti@2.7.0)(postcss-import@16.2.0(postcss@8.5.32))(postcss-modules@9.0.1(postcss@8.5.32))(postcss@8.5.32)(sass-embedded@1.108.1(source-map-js@1.2.2))(sass@1.108.1)(tsdown@0.23.5)(tsx@4.23.15)(yaml@2.9.1) + '@tsdown/exe': 0.23.5(tsdown@0.23.5) '@vitejs/devtools': 0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core) publint: 0.3.24 tsx: 4.23.15 @@ -12204,16 +12245,50 @@ snapshots: unplugin-unused: 0.5.6 unrun: 0.3.1 transitivePeerDependencies: - - '@typescript/native-preview' - '@volar/typescript' - '@vue/language-core' + - '@yuku-toolchain/wasm' + - oxc-resolver + - tsrs + - vue-tsc + + tsdown@0.23.5(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.5)(@tsdown/exe@0.23.5)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsrs@7.1.0-beta.tsrs4)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)): + dependencies: + cac: 7.1.0 + defu: 6.1.7 + empathic: 2.1.0 + hookable: 6.1.2 + import-without-cache: 0.4.1 + obug: 3.0.0 + picomatch: 4.0.7 + rolldown: link:rolldown/packages/rolldown + rolldown-plugin-dts: 0.29.0(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(rolldown@rolldown+packages+rolldown)(tsrs@7.1.0-beta.tsrs4)(typescript@7.0.2)(vue-tsc@3.3.12(typescript@7.0.2)) + tinyexec: 1.3.1 + tinyglobby: 0.2.17 + tinyps: 0.5.1 + unconfig-core: 7.5.0 + verkit: 0.5.0 + optionalDependencies: + '@arethetypeswrong/core': 0.18.2 + '@tsdown/css': 0.23.5(jiti@2.7.0)(postcss-import@16.2.0(postcss@8.5.32))(postcss-modules@9.0.1(postcss@8.5.32))(postcss@8.5.32)(sass-embedded@1.108.1(source-map-js@1.2.2))(sass@1.108.1)(tsdown@0.23.5)(tsx@4.23.15)(yaml@2.9.1) + '@tsdown/exe': 0.23.5(tsdown@0.23.5) + '@vitejs/devtools': 0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core) + publint: 0.3.24 + tsx: 4.23.15 + typescript: 7.0.2 + unplugin-unused: 0.5.6 + unrun: 0.3.1 + transitivePeerDependencies: + - '@volar/typescript' + - '@vue/language-core' + - '@yuku-toolchain/wasm' - oxc-resolver + - tsrs - vue-tsc tslib@2.8.1: {} - tsrs@0.0.0: - optional: true + tsrs@0.0.0: {} tsrs@7.1.0-beta.tsrs4: optionalDependencies: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index e7f31b1e5e..e853016709 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -19,8 +19,8 @@ catalog: # Kept at the oxlint version by .github/scripts/upgrade-deps.ts '@oxlint/plugins': =1.94.0 '@rolldown/pluginutils': ^1.0.0 - '@tsdown/css': =0.23.4 - '@tsdown/exe': =0.23.4 + '@tsdown/css': =0.23.5 + '@tsdown/exe': =0.23.5 '@types/cross-spawn': ^6.0.6 '@types/node': 24.10.3 '@types/validate-npm-package-name': ^4.0.2 @@ -47,7 +47,7 @@ catalog: jsonc-parser: ^3.3.1 # Kept in lockstep with the bundled @tsdown/css by .github/scripts/upgrade-deps.ts lightningcss: ^1.33.0 - lint-staged: ^17.6.1 + lint-staged: ^17.6.2 minimatch: ^11.0.0 nanotar: ^0.3.0 oxc-parser: =0.159.0 @@ -65,7 +65,7 @@ catalog: signal-exit: 4.1.0 source-map: 0.8.0 tinyglobby: ^0.2.15 - tsdown: =0.23.4 + tsdown: =0.23.5 tsrs: =7.1.0-beta.tsrs4 typescript: ~7.0.2 valibot: 1.5.0 From 8d180877e52080aad632103243088d04b51d0320 Mon Sep 17 00:00:00 2001 From: MK Date: Mon, 23 Nov 2026 11:30:06 +0800 Subject: [PATCH 2/3] chore(deps): defer the tsdown upgrade to #3511 --- .github/scripts/upgrade-deps-utils.ts | 14 +- .github/scripts/upgrade-deps.ts | 12 +- .../command_pack_dts_compat/snapshots.toml | 7 +- .../command_pack_dts_native_preview.md | 37 +++++ .../snapshots/command_pack_dts_tsgo.md | 34 ---- .../command_pack_dts_typescript_7.md | 2 +- .../snapshots/command_pack_monorepo.md | 4 +- packages/core/build.ts | 16 +- packages/core/package.json | 12 +- packages/prompts/tsdown.config.ts | 8 +- pnpm-lock.yaml | 145 +++++------------- pnpm-workspace.yaml | 6 +- 12 files changed, 107 insertions(+), 190 deletions(-) create mode 100644 crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_native_preview.md delete mode 100644 crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_tsgo.md diff --git a/.github/scripts/upgrade-deps-utils.ts b/.github/scripts/upgrade-deps-utils.ts index 087df9b321..8ded25dd22 100644 --- a/.github/scripts/upgrade-deps-utils.ts +++ b/.github/scripts/upgrade-deps-utils.ts @@ -12,14 +12,10 @@ export function getBundledDependencyRanges( const tsdownRequire = createRequire(coreRequire.resolve('tsdown/package.json')); const pluginPath = tsdownRequire.resolve('rolldown-plugin-dts/package.json'); const vitePath = join(root, 'vite/packages/vite/package.json'); - const pluginPackage = JSON.parse(readFileSync(pluginPath, 'utf8')) as { - dependencies?: Record; - }; - const yukuPackage = typeof pluginPackage.dependencies?.yuku === 'string' ? 'yuku' : 'yuku-parser'; // These packages stay external in packages/core/build.ts. Follow their // bundled consumers rather than independently selecting the latest releases. const sources: { path: string; field: DependencyField; names: string[] }[] = [ - { path: pluginPath, field: 'dependencies', names: [yukuPackage] }, + { path: pluginPath, field: 'dependencies', names: ['yuku-parser'] }, { path: vitePath, field: 'dependencies', names: ['postcss'] }, { path: vitePath, field: 'optionalDependencies', names: ['fsevents'] }, ]; @@ -32,10 +28,10 @@ export function getBundledDependencyRanges( if (typeof range !== 'string' || range.trim() === '') { throw new Error(`Missing ${field}.${name} in ${path}; review core's externals`); } - if (name === 'yuku' || name === 'yuku-parser') { - // Pin the runtime to the exact version resolved by the same plugin so - // the bundled code and its native bindings cannot drift. - const parserPath = createRequire(path).resolve(`${name}/package.json`); + if (name === 'yuku-parser') { + // The AST helpers and codegen are bundled. Pin the runtime parser to + // the exact version resolved by the same plugin so it cannot drift. + const parserPath = createRequire(path).resolve('yuku-parser/package.json'); const { version } = JSON.parse(readFileSync(parserPath, 'utf8')) as { version?: unknown }; if (typeof version !== 'string' || version.trim() === '') { throw new Error(`Missing version in ${parserPath}; review core's externals`); diff --git a/.github/scripts/upgrade-deps.ts b/.github/scripts/upgrade-deps.ts index 8f3a958025..5c45169e60 100644 --- a/.github/scripts/upgrade-deps.ts +++ b/.github/scripts/upgrade-deps.ts @@ -541,21 +541,13 @@ function syncBundledDependencies(): void { const ranges = getBundledDependencyRanges(ROOT); const filePath = path.join(ROOT, 'packages/core/package.json'); const pkg = readJsonFile(filePath); - const yukuName = ranges.find(({ name }) => name === 'yuku' || name === 'yuku-parser')?.name; - const previousYukuName = yukuName === 'yuku' ? 'yuku-parser' : 'yuku'; - const previousYukuRange = pkg.dependencies?.[previousYukuName]; - if (yukuName) { - delete pkg.dependencies?.[previousYukuName]; - changes.delete(previousYukuName); - } for (const { name, field, range } of ranges) { - const oldRange = pkg[field]?.[name] ?? (name === yukuName ? previousYukuRange : undefined); - if (typeof oldRange !== 'string' && name !== yukuName) { + const oldRange = pkg[field]?.[name]; + if (typeof oldRange !== 'string') { throw new Error(`Missing ${field}.${name} in ${filePath}`); } // Preserve the original version if synchronization runs again after fixups. recordChange(name, changes.get(name)?.old ?? oldRange, range); - pkg[field] ??= {}; pkg[field][name] = range; } syncCoreVersion(pkg); diff --git a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots.toml b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots.toml index 11290645e3..e282c45345 100644 --- a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots.toml +++ b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots.toml @@ -10,13 +10,14 @@ steps = [ ] [[case]] -name = "command_pack_dts_tsgo" +name = "command_pack_dts_native_preview" vp = "global" local-registry = true env = { PACK_DTS_GENERATOR = "tsgo" } -comment = "An explicit tsgo generator uses the declaration emit API in TypeScript 7.1.0-beta." +comment = "An explicit tsgo generator uses native-preview with TypeScript 5.9.3. pnpm hoist:false also verifies core declares the optional native-preview peer." steps = [ - { argv = ["vpt", "json-edit", "package.json", "devDependencies.typescript", "7.1.0-beta"], snapshot = false }, + { argv = ["vpt", "json-edit", "package.json", "devDependencies.typescript", "5.9.3"], snapshot = false }, + { argv = ["vpt", "json-edit", "package.json", "devDependencies.@typescript/native-preview", "7.0.0-dev.20260707.2"], snapshot = false }, { argv = ["vp", "install", "--ignore-scripts"], snapshot = false }, ["vp", "pack"], ["vpt", "print-file", "dist/index.d.mts"], diff --git a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_native_preview.md b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_native_preview.md new file mode 100644 index 0000000000..4041b06a68 --- /dev/null +++ b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_native_preview.md @@ -0,0 +1,37 @@ +# command_pack_dts_native_preview + +An explicit tsgo generator uses native-preview with TypeScript 5.9.3. pnpm hoist:false also verifies core declares the optional native-preview peer. + +## `vpt json-edit package.json devDependencies.typescript 5.9.3` + + +## `vpt json-edit package.json devDependencies.@typescript/native-preview 7.0.0-dev.20260707.2` + + +## `vp install --ignore-scripts` + + +## `vp pack` + +``` +VITE+ - The Unified Toolchain for the Web + +ℹ entry: src/index.ts +ℹ tsconfig: tsconfig.json +ℹ Build start +warn: TypeScript 7.0 does not yet have a stable API and is experimental. Some options will be unavailable. +ℹ Emit types with @typescript/native-preview@7.0.0-dev.20260707.2 +ℹ dist/index.mjs kB │ gzip: kB +ℹ dist/index.d.mts kB │ gzip: kB +ℹ 2 files, total: kB +✔ Build complete in +``` + +## `vpt print-file dist/index.d.mts` + +``` +export declare function greet(name: string): { + message: string; + length: number; +}; +``` diff --git a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_tsgo.md b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_tsgo.md deleted file mode 100644 index 5f8e9aced1..0000000000 --- a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_tsgo.md +++ /dev/null @@ -1,34 +0,0 @@ -# command_pack_dts_tsgo - -An explicit tsgo generator uses the declaration emit API in TypeScript 7.1.0-beta. - -## `vpt json-edit package.json devDependencies.typescript 7.1.0-beta` - - -## `vp install --ignore-scripts` - - -## `vp pack` - -``` -VITE+ - The Unified Toolchain for the Web - -ℹ entry: src/index.ts -ℹ tsconfig: tsconfig.json -ℹ Build start -warn: TypeScript Go is experimental. Some options will be unavailable. -ℹ Emit types with TypeScript Go -ℹ dist/index.mjs kB │ gzip: kB -ℹ dist/index.d.mts kB │ gzip: kB -ℹ 2 files, total: kB -✔ Build complete in -``` - -## `vpt print-file dist/index.d.mts` - -``` -export declare function greet(name: string): { - message: string; - length: number; -}; -``` diff --git a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_typescript_7.md b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_typescript_7.md index 031fdb1014..3c79d1a935 100644 --- a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_typescript_7.md +++ b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_dts_compat/snapshots/command_pack_dts_typescript_7.md @@ -13,7 +13,7 @@ VITE+ - The Unified Toolchain for the Web ℹ entry: src/index.ts ℹ tsconfig: tsconfig.json ℹ Build start -warn: The `tsgo` generator on TypeScript 7.0 is deprecated and will be removed in the next minor. Upgrade to TypeScript 7.1 or later. +warn: TypeScript 7.0 does not yet have a stable API and is experimental. Some options will be unavailable. ℹ Emit types with typescript@7.0.2 ℹ dist/index.mjs kB │ gzip: kB ℹ dist/index.d.mts kB │ gzip: kB diff --git a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_monorepo/snapshots/command_pack_monorepo.md b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_monorepo/snapshots/command_pack_monorepo.md index 0a71cccff0..e1a364cf1e 100644 --- a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_monorepo/snapshots/command_pack_monorepo.md +++ b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_pack_monorepo/snapshots/command_pack_monorepo.md @@ -106,7 +106,7 @@ should hit cache from sub dir ℹ entry: ./src/sub/index.ts ℹ tsconfig: tsconfig.json ℹ Build start -warn: The `tsgo` generator on TypeScript 7.0 is deprecated and will be removed in the next minor. Upgrade to TypeScript 7.1 or later. +warn: TypeScript 7.0 does not yet have a stable API and is experimental. Some options will be unavailable. ℹ Emit types with typescript@7.0.2 ℹ dist/index.mjs kB │ gzip: kB ℹ dist/index.d.mts kB │ gzip: kB @@ -126,7 +126,7 @@ should hit cache from root after sub dir build ℹ entry: ./src/sub/index.ts ℹ tsconfig: tsconfig.json ℹ Build start -warn: The `tsgo` generator on TypeScript 7.0 is deprecated and will be removed in the next minor. Upgrade to TypeScript 7.1 or later. +warn: TypeScript 7.0 does not yet have a stable API and is experimental. Some options will be unavailable. ℹ Emit types with typescript@7.0.2 ℹ dist/index.mjs kB │ gzip: kB ℹ dist/index.d.mts kB │ gzip: kB diff --git a/packages/core/build.ts b/packages/core/build.ts index 07349443a7..44cc6bb168 100644 --- a/packages/core/build.ts +++ b/packages/core/build.ts @@ -475,15 +475,16 @@ async function bundleTsdown() { // in and they cannot be bundled. Both are core `dependencies`, so they resolve // at runtime and CSS bundling works without users installing anything. // - // `yuku` (used by `rolldown-plugin-dts`) loads native bindings through its - // platform packages. Keep it external and declare it as a core dependency so - // the native loader resolves those packages at runtime. Pin its version to - // the one resolved by the bundled plugin. + // `yuku-parser` (used by `rolldown-plugin-dts`) loads native bindings through + // `yuku-core`. Keep it external and declare it as a core dependency so the + // native loader resolves its platform package at runtime. Pin its version + // to the one resolved by the bundled plugin. `yuku-ast` and + // `yuku-codegen` are pure JavaScript in Yuku 0.19 and are bundled into core. const tsdownExternal = [ ...Object.keys(pkgJson.peerDependencies).filter((name) => !bundledTsdownPackages.has(name)), 'lightningcss', 'postcss', - 'yuku', + 'yuku-parser', ]; const isExternal = (id: string) => tsdownExternal.some((e) => id === e || id.startsWith(`${e}/`)); @@ -756,8 +757,9 @@ async function mergePackageJson() { // Merge peerDependencies from rolldown-plugin-dts, tsdown and vite. The bundled // dts plugin still resolves `vue-tsc`, `@volar/typescript`, - // `@vue/language-core` and `tsrs` from core at runtime, and its declarations - // import their types, so isolated installs need them declared here. + // `@vue/language-core` and `@typescript/native-preview` from core at runtime, + // and its declarations import their types, so isolated installs need them + // declared here. destPkg.peerDependencies = { ...dtsPkg.peerDependencies, ...tsdownPkg.peerDependencies, diff --git a/packages/core/package.json b/packages/core/package.json index fa1fecf7aa..cb88732eb0 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -114,7 +114,7 @@ "@oxc-project/types": "catalog:", "lightningcss": "catalog:", "postcss": "^8.5.32", - "yuku": "0.25.0" + "yuku-parser": "0.19.0" }, "devDependencies": { "@ast-grep/napi": "^0.51.0", @@ -147,6 +147,7 @@ "peerDependencies": { "@arethetypeswrong/core": "^0.18.1", "@types/node": "^20.19.0 || >=22.12.0", + "@typescript/native-preview": "*", "@vitejs/devtools": "^0.7.1 || ^0.8.0", "@volar/typescript": "~2.4.0", "@vue/language-core": "~3.2.0 || ~3.3.0", @@ -159,7 +160,6 @@ "stylus": ">=0.54.8", "sugarss": "^5.0.0", "terser": "^5.16.0", - "tsrs": "*", "tsx": "^4.8.1", "typescript": "^5.0.0 || ^6.0.0 || ^7.0.0", "unplugin-unused": ">=0.5.0", @@ -168,13 +168,13 @@ "yaml": "^2.4.2" }, "peerDependenciesMeta": { - "@volar/typescript": { + "@typescript/native-preview": { "optional": true }, - "@vue/language-core": { + "@volar/typescript": { "optional": true }, - "tsrs": { + "@vue/language-core": { "optional": true }, "typescript": { @@ -241,7 +241,7 @@ "bundledVersions": { "vite": "8.3.8", "rolldown": "1.2.19", - "tsdown": "0.23.5" + "tsdown": "0.23.4" }, "vitePlusVersion": "1.7.0" } diff --git a/packages/prompts/tsdown.config.ts b/packages/prompts/tsdown.config.ts index 2743196618..6231d8bd2d 100644 --- a/packages/prompts/tsdown.config.ts +++ b/packages/prompts/tsdown.config.ts @@ -1,9 +1,7 @@ -import { defineConfig, type UserConfig } from 'tsdown'; +import { defineConfig } from 'tsdown'; -const config: UserConfig = { +export default defineConfig({ deps: { onlyBundle: false, }, -}; - -export default defineConfig(config); +}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f25019eaec..225f3a8ba4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -204,11 +204,11 @@ catalogs: specifier: ^1.0.0 version: 1.0.1 '@tsdown/css': - specifier: '=0.23.5' - version: 0.23.5 + specifier: '=0.23.4' + version: 0.23.4 '@tsdown/exe': - specifier: '=0.23.5' - version: 0.23.5 + specifier: '=0.23.4' + version: 0.23.4 '@types/cross-spawn': specifier: ^6.0.6 version: 6.0.6 @@ -339,8 +339,8 @@ catalogs: specifier: ^0.2.15 version: 0.2.17 tsdown: - specifier: '=0.23.5' - version: 0.23.5 + specifier: '=0.23.4' + version: 0.23.4 tsrs: specifier: '=7.1.0-beta.tsrs4' version: 7.1.0-beta.tsrs4 @@ -545,7 +545,7 @@ importers: version: 0.2.17 tsdown: specifier: 'catalog:' - version: 0.23.5(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.5)(@tsdown/exe@0.23.5)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsrs@7.1.0-beta.tsrs4)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)) + version: 0.23.4(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.4)(@tsdown/exe@0.23.4)(@typescript/native-preview@7.0.0-dev.20260707.2)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)) validate-npm-package-name: specifier: 'catalog:' version: 8.0.0 @@ -612,9 +612,6 @@ importers: terser: specifier: ^5.16.0 version: 5.51.2 - tsrs: - specifier: '*' - version: 0.0.0 tsx: specifier: ^4.8.1 version: 4.23.15 @@ -630,9 +627,9 @@ importers: yaml: specifier: ^2.4.2 version: 2.9.1 - yuku: - specifier: 0.25.0 - version: 0.25.0 + yuku-parser: + specifier: 0.19.0 + version: 0.19.0 devDependencies: '@ast-grep/napi': specifier: ^0.51.0 @@ -651,10 +648,10 @@ importers: version: 1.0.2 '@tsdown/css': specifier: 'catalog:' - version: 0.23.5(jiti@2.7.0)(postcss-import@16.2.0(postcss@8.5.32))(postcss-modules@9.0.1(postcss@8.5.32))(postcss@8.5.32)(sass-embedded@1.108.1(source-map-js@1.2.2))(sass@1.108.1)(tsdown@0.23.5)(tsx@4.23.15)(yaml@2.9.1) + version: 0.23.4(jiti@2.7.0)(postcss-import@16.2.0(postcss@8.5.32))(postcss-modules@9.0.1(postcss@8.5.32))(postcss@8.5.32)(sass-embedded@1.108.1(source-map-js@1.2.2))(sass@1.108.1)(tsdown@0.23.4)(tsx@4.23.15)(yaml@2.9.1) '@tsdown/exe': specifier: 'catalog:' - version: 0.23.5(tsdown@0.23.5) + version: 0.23.4(tsdown@0.23.4) '@typescript/native-preview': specifier: 'catalog:' version: 7.0.0-dev.20260707.2 @@ -705,7 +702,7 @@ importers: version: 1.2.2 tsdown: specifier: 'catalog:' - version: 0.23.5(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.5)(@tsdown/exe@0.23.5)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsrs@0.0.0)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)) + version: 0.23.4(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.4)(@tsdown/exe@0.23.4)(@typescript/native-preview@7.0.0-dev.20260707.2)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)) typescript: specifier: 'catalog:' version: 7.0.2 @@ -749,7 +746,7 @@ importers: version: 4.1.0 tsdown: specifier: 'catalog:' - version: 0.23.5(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.5)(@tsdown/exe@0.23.5)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsrs@0.0.0)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)) + version: 0.23.4(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.4)(@tsdown/exe@0.23.4)(@typescript/native-preview@7.0.0-dev.20260707.2)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)) packages/tools: devDependencies: @@ -3530,8 +3527,8 @@ packages: '@tootallnate/quickjs-emscripten@0.23.0': resolution: {integrity: sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==} - '@tsdown/css@0.23.5': - resolution: {integrity: sha512-Zcobb3e4RTXcB3WijguGEXEfLJbhDxXq8Vce2PT1MR7E1JwMwwOevSXXAHFWTam5lJRBLyxrImcSQTqeZ2KCvA==} + '@tsdown/css@0.23.4': + resolution: {integrity: sha512-lkEj33E0r7KhmiTQC+UYkOUoe5W50eHsDXoloDkj52OMFxAUfRieF1k4QcOIqMFKd7s0BjFHD8PFElnThVLHGA==} engines: {node: ^22.18.0 || ^24.11.0 || >=26.0.0} peerDependencies: postcss: ^8.4.0 @@ -3539,7 +3536,7 @@ packages: postcss-modules: ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 sass: '*' sass-embedded: '*' - tsdown: 0.23.5 + tsdown: 0.23.4 peerDependenciesMeta: postcss: optional: true @@ -3552,11 +3549,11 @@ packages: sass-embedded: optional: true - '@tsdown/exe@0.23.5': - resolution: {integrity: sha512-10u+GOgcfenv4ZJ+2269W+RePRzRfWqi0fIjNd8nSzOhX9bcaSXXlU2q8brjsN5SCAARi7iq0t4vZTZ3V5rDiw==} + '@tsdown/exe@0.23.4': + resolution: {integrity: sha512-rU76qeRlEmDAD3wj03BIfN83GKCpqabe4IOuG09XLopngbwHUsxw14fSJYZqMliep6b/r8zm+tH3hP5361GUNw==} engines: {node: ^22.18.0 || ^24.11.0 || >=26.0.0} peerDependencies: - tsdown: 0.23.5 + tsdown: 0.23.4 '@tsrs/darwin-arm64@7.1.0-beta.tsrs4': resolution: {integrity: sha512-Be1McQGyHipWIjnkvytZmh7Wi4YVATvTfiEuPX34kfk+W7QCtTdUUHnuLZ7bzwy8LgL9VDCmyvQtWiF3MENxBQ==} @@ -6670,14 +6667,14 @@ packages: peerDependencies: typescript: '>=4.0.0' - tsdown@0.23.5: - resolution: {integrity: sha512-nD6Dvg2oEPBaU1T/78TkAelU9ycYT7QosVOjDxpKI9I3LSnu7saBvL3u+urLSb4cwioqzqxeqGEjtKwc9TnOpQ==} + tsdown@0.23.4: + resolution: {integrity: sha512-AQQ/2Y7KBnf15GL4Ynjdltc94PkbKRI+arStyrp7inSQkRmTWNiXgfv50ESsjhBEsoVtiSloCAO2VyrqojWIOQ==} engines: {node: ^22.18.0 || ^24.11.0 || >=26.0.0} hasBin: true peerDependencies: '@arethetypeswrong/core': ^0.18.1 - '@tsdown/css': 0.23.5 - '@tsdown/exe': 0.23.5 + '@tsdown/css': 0.23.4 + '@tsdown/exe': 0.23.4 '@vitejs/devtools': '*' publint: ^0.3.8 tsx: '*' @@ -7084,22 +7081,18 @@ packages: yuku-ast@0.19.0: resolution: {integrity: sha512-PyCsiScaelhxBGzL8dyeJkLqvRZycoh78R31Vrt/WqYrm0hMFoKwIw/X7Dx5mBKLWAMlV9I9HEyBOHnj2gZVyw==} engines: {node: '>=14.18.0'} - deprecated: 'Yuku is now one package with one core. Use "yuku" instead: https://yuku.fyi/javascript/. Existing installs keep working but get no more fixes.' yuku-codegen@0.19.0: resolution: {integrity: sha512-uymAKHjDuaP4BEpkXC/BSLz4DUEF5oArZ5AuD3888nb2miChjWSgpPdojEJxm3pjpXkgUaCRJQyNAbnMN33wHg==} engines: {node: '>=14.18.0'} - deprecated: 'Yuku is now one package with one core. Use "yuku" instead: https://yuku.fyi/javascript/. Existing installs keep working but get no more fixes.' yuku-core@0.19.0: resolution: {integrity: sha512-kYK9e1XdfirNhkipzW0wmMcSWcVF/CWnuugodfVYRCUwvoBefweL9HzB96OiKEhsx78V5WbUxbJqlizMX869Qg==} engines: {node: '>=14.18.0'} - deprecated: 'Yuku is now one package with one core. Use "yuku" instead: https://yuku.fyi/javascript/. Existing installs keep working but get no more fixes.' yuku-parser@0.19.0: resolution: {integrity: sha512-XrBh9ZiQK5mJVRxZBAvD6LwRyAYrK3MFtH3+onyuxFL5hFD44EC3QOmIC1FjTj6H2MMwq46/NAI+NZxLZPZgxg==} engines: {node: '>=14.18.0'} - deprecated: 'Yuku is now one package with one core. Use "yuku" instead: https://yuku.fyi/javascript/. Existing installs keep working but get no more fixes.' yuku@0.25.0: resolution: {integrity: sha512-iAlHlpPmcjRqUauDkW9xF33b+jsUzTrrv49FfPLBNxEAUWuU7XN8tBUGjBHYPCEF/d3632MhG6GjCZutecA8Ng==} @@ -8989,29 +8982,12 @@ snapshots: '@tootallnate/quickjs-emscripten@0.23.0': {} - '@tsdown/css@0.23.5(jiti@2.7.0)(postcss-import@16.2.0(postcss@8.5.32))(postcss-modules@9.0.1(postcss@8.5.32))(postcss@8.5.32)(sass-embedded@1.108.1(source-map-js@1.2.2))(sass@1.108.1)(tsdown@0.23.5)(tsx@4.23.15)': - dependencies: - lightningcss: 1.33.0 - postcss-load-config: 6.0.1(jiti@2.7.0)(postcss@8.5.32)(tsx@4.23.15)(yaml@2.9.1) - rolldown: link:rolldown/packages/rolldown - tsdown: 0.23.5(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.5)(@tsdown/exe@0.23.5)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsrs@0.0.0)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)) - optionalDependencies: - postcss: 8.5.32 - postcss-import: 16.2.0(postcss@8.5.32) - postcss-modules: 9.0.1(postcss@8.5.32) - sass: 1.108.1 - sass-embedded: 1.108.1(source-map-js@1.2.2) - transitivePeerDependencies: - - jiti - - tsx - - yaml - - '@tsdown/css@0.23.5(jiti@2.7.0)(postcss-import@16.2.0(postcss@8.5.32))(postcss-modules@9.0.1(postcss@8.5.32))(postcss@8.5.32)(sass-embedded@1.108.1(source-map-js@1.2.2))(sass@1.108.1)(tsdown@0.23.5)(tsx@4.23.15)(yaml@2.9.1)': + '@tsdown/css@0.23.4(jiti@2.7.0)(postcss-import@16.2.0(postcss@8.5.32))(postcss-modules@9.0.1(postcss@8.5.32))(postcss@8.5.32)(sass-embedded@1.108.1(source-map-js@1.2.2))(sass@1.108.1)(tsdown@0.23.4)(tsx@4.23.15)(yaml@2.9.1)': dependencies: lightningcss: 1.33.0 postcss-load-config: 6.0.1(jiti@2.7.0)(postcss@8.5.32)(tsx@4.23.15)(yaml@2.9.1) rolldown: link:rolldown/packages/rolldown - tsdown: 0.23.5(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.5)(@tsdown/exe@0.23.5)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsrs@7.1.0-beta.tsrs4)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)) + tsdown: 0.23.4(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.4)(@tsdown/exe@0.23.4)(@typescript/native-preview@7.0.0-dev.20260707.2)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)) optionalDependencies: postcss: 8.5.32 postcss-import: 16.2.0(postcss@8.5.32) @@ -9023,11 +8999,11 @@ snapshots: - tsx - yaml - '@tsdown/exe@0.23.5(tsdown@0.23.5)': + '@tsdown/exe@0.23.4(tsdown@0.23.4)': dependencies: obug: 3.0.0 tinyexec: 1.3.1 - tsdown: 0.23.5(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.5)(@tsdown/exe@0.23.5)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsrs@7.1.0-beta.tsrs4)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)) + tsdown: 0.23.4(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.4)(@tsdown/exe@0.23.4)(@typescript/native-preview@7.0.0-dev.20260707.2)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)) verkit: 0.5.0 '@tsrs/darwin-arm64@7.1.0-beta.tsrs4': @@ -11738,23 +11714,6 @@ snapshots: - '@yuku-toolchain/wasm' - oxc-resolver - rolldown-plugin-dts@0.29.0(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(rolldown@rolldown+packages+rolldown)(tsrs@7.1.0-beta.tsrs4)(typescript@7.0.2)(vue-tsc@3.3.12(typescript@7.0.2)): - dependencies: - dts-resolver: 3.0.0(oxc-resolver@11.24.2) - get-tsconfig: 5.0.0-beta.6 - obug: 3.0.0 - rolldown: link:rolldown/packages/rolldown - yuku: 0.25.0 - optionalDependencies: - '@volar/typescript': 2.4.28 - '@vue/language-core': 3.3.12 - tsrs: 7.1.0-beta.tsrs4 - typescript: 7.0.2 - vue-tsc: 3.3.12(typescript@7.0.2) - transitivePeerDependencies: - - '@yuku-toolchain/wasm' - - oxc-resolver - rollup-plugin-license@3.7.1(picomatch@4.0.7)(rollup@4.63.1): dependencies: commenting: 1.1.0 @@ -12218,7 +12177,7 @@ snapshots: typescript: 7.0.2 optional: true - tsdown@0.23.5(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.5)(@tsdown/exe@0.23.5)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsrs@0.0.0)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)): + tsdown@0.23.4(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.4)(@tsdown/exe@0.23.4)(@typescript/native-preview@7.0.0-dev.20260707.2)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)): dependencies: cac: 7.1.0 defu: 6.1.7 @@ -12228,7 +12187,7 @@ snapshots: obug: 3.0.0 picomatch: 4.0.7 rolldown: link:rolldown/packages/rolldown - rolldown-plugin-dts: 0.29.0(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(rolldown@rolldown+packages+rolldown)(tsrs@0.0.0)(typescript@7.0.2)(vue-tsc@3.3.12(typescript@7.0.2)) + rolldown-plugin-dts: 0.28.8(@typescript/native-preview@7.0.0-dev.20260707.2)(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(rolldown@rolldown+packages+rolldown)(typescript@7.0.2)(vue-tsc@3.3.12(typescript@7.0.2)) tinyexec: 1.3.1 tinyglobby: 0.2.17 tinyps: 0.5.1 @@ -12236,8 +12195,8 @@ snapshots: verkit: 0.5.0 optionalDependencies: '@arethetypeswrong/core': 0.18.2 - '@tsdown/css': 0.23.5(jiti@2.7.0)(postcss-import@16.2.0(postcss@8.5.32))(postcss-modules@9.0.1(postcss@8.5.32))(postcss@8.5.32)(sass-embedded@1.108.1(source-map-js@1.2.2))(sass@1.108.1)(tsdown@0.23.5)(tsx@4.23.15)(yaml@2.9.1) - '@tsdown/exe': 0.23.5(tsdown@0.23.5) + '@tsdown/css': 0.23.4(jiti@2.7.0)(postcss-import@16.2.0(postcss@8.5.32))(postcss-modules@9.0.1(postcss@8.5.32))(postcss@8.5.32)(sass-embedded@1.108.1(source-map-js@1.2.2))(sass@1.108.1)(tsdown@0.23.4)(tsx@4.23.15)(yaml@2.9.1) + '@tsdown/exe': 0.23.4(tsdown@0.23.4) '@vitejs/devtools': 0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core) publint: 0.3.24 tsx: 4.23.15 @@ -12245,50 +12204,16 @@ snapshots: unplugin-unused: 0.5.6 unrun: 0.3.1 transitivePeerDependencies: + - '@typescript/native-preview' - '@volar/typescript' - '@vue/language-core' - - '@yuku-toolchain/wasm' - - oxc-resolver - - tsrs - - vue-tsc - - tsdown@0.23.5(@arethetypeswrong/core@0.18.2)(@tsdown/css@0.23.5)(@tsdown/exe@0.23.5)(@vitejs/devtools@0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core))(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(publint@0.3.24)(tsrs@7.1.0-beta.tsrs4)(tsx@4.23.15)(typescript@7.0.2)(unplugin-unused@0.5.6)(unrun@0.3.1)(vue-tsc@3.3.12(typescript@7.0.2)): - dependencies: - cac: 7.1.0 - defu: 6.1.7 - empathic: 2.1.0 - hookable: 6.1.2 - import-without-cache: 0.4.1 - obug: 3.0.0 - picomatch: 4.0.7 - rolldown: link:rolldown/packages/rolldown - rolldown-plugin-dts: 0.29.0(@volar/typescript@2.4.28)(@vue/language-core@3.3.12)(oxc-resolver@11.24.2)(rolldown@rolldown+packages+rolldown)(tsrs@7.1.0-beta.tsrs4)(typescript@7.0.2)(vue-tsc@3.3.12(typescript@7.0.2)) - tinyexec: 1.3.1 - tinyglobby: 0.2.17 - tinyps: 0.5.1 - unconfig-core: 7.5.0 - verkit: 0.5.0 - optionalDependencies: - '@arethetypeswrong/core': 0.18.2 - '@tsdown/css': 0.23.5(jiti@2.7.0)(postcss-import@16.2.0(postcss@8.5.32))(postcss-modules@9.0.1(postcss@8.5.32))(postcss@8.5.32)(sass-embedded@1.108.1(source-map-js@1.2.2))(sass@1.108.1)(tsdown@0.23.5)(tsx@4.23.15)(yaml@2.9.1) - '@tsdown/exe': 0.23.5(tsdown@0.23.5) - '@vitejs/devtools': 0.8.2(crossws@0.4.17(srvx@1.0.6))(srvx@1.0.6)(vite@packages+core) - publint: 0.3.24 - tsx: 4.23.15 - typescript: 7.0.2 - unplugin-unused: 0.5.6 - unrun: 0.3.1 - transitivePeerDependencies: - - '@volar/typescript' - - '@vue/language-core' - - '@yuku-toolchain/wasm' - oxc-resolver - - tsrs - vue-tsc tslib@2.8.1: {} - tsrs@0.0.0: {} + tsrs@0.0.0: + optional: true tsrs@7.1.0-beta.tsrs4: optionalDependencies: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index e853016709..a2aa8304a2 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -19,8 +19,8 @@ catalog: # Kept at the oxlint version by .github/scripts/upgrade-deps.ts '@oxlint/plugins': =1.94.0 '@rolldown/pluginutils': ^1.0.0 - '@tsdown/css': =0.23.5 - '@tsdown/exe': =0.23.5 + '@tsdown/css': =0.23.4 + '@tsdown/exe': =0.23.4 '@types/cross-spawn': ^6.0.6 '@types/node': 24.10.3 '@types/validate-npm-package-name': ^4.0.2 @@ -65,7 +65,7 @@ catalog: signal-exit: 4.1.0 source-map: 0.8.0 tinyglobby: ^0.2.15 - tsdown: =0.23.5 + tsdown: =0.23.4 tsrs: =7.1.0-beta.tsrs4 typescript: ~7.0.2 valibot: 1.5.0 From d45c1d59a2d057cc906f140cbf5caa53c4c1d7da Mon Sep 17 00:00:00 2001 From: MK Date: Mon, 23 Nov 2026 12:04:54 +0800 Subject: [PATCH 3/3] chore(deps): refresh Yuku deprecation metadata in lockfile --- pnpm-lock.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 225f3a8ba4..526e132455 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7081,18 +7081,22 @@ packages: yuku-ast@0.19.0: resolution: {integrity: sha512-PyCsiScaelhxBGzL8dyeJkLqvRZycoh78R31Vrt/WqYrm0hMFoKwIw/X7Dx5mBKLWAMlV9I9HEyBOHnj2gZVyw==} engines: {node: '>=14.18.0'} + deprecated: 'Yuku is now one package with one core. Use "yuku" instead: https://yuku.fyi/javascript/. Existing installs keep working but get no more fixes.' yuku-codegen@0.19.0: resolution: {integrity: sha512-uymAKHjDuaP4BEpkXC/BSLz4DUEF5oArZ5AuD3888nb2miChjWSgpPdojEJxm3pjpXkgUaCRJQyNAbnMN33wHg==} engines: {node: '>=14.18.0'} + deprecated: 'Yuku is now one package with one core. Use "yuku" instead: https://yuku.fyi/javascript/. Existing installs keep working but get no more fixes.' yuku-core@0.19.0: resolution: {integrity: sha512-kYK9e1XdfirNhkipzW0wmMcSWcVF/CWnuugodfVYRCUwvoBefweL9HzB96OiKEhsx78V5WbUxbJqlizMX869Qg==} engines: {node: '>=14.18.0'} + deprecated: 'Yuku is now one package with one core. Use "yuku" instead: https://yuku.fyi/javascript/. Existing installs keep working but get no more fixes.' yuku-parser@0.19.0: resolution: {integrity: sha512-XrBh9ZiQK5mJVRxZBAvD6LwRyAYrK3MFtH3+onyuxFL5hFD44EC3QOmIC1FjTj6H2MMwq46/NAI+NZxLZPZgxg==} engines: {node: '>=14.18.0'} + deprecated: 'Yuku is now one package with one core. Use "yuku" instead: https://yuku.fyi/javascript/. Existing installs keep working but get no more fixes.' yuku@0.25.0: resolution: {integrity: sha512-iAlHlpPmcjRqUauDkW9xF33b+jsUzTrrv49FfPLBNxEAUWuU7XN8tBUGjBHYPCEF/d3632MhG6GjCZutecA8Ng==}