Repository navigation
chore(deps): use typescript v7 - #23778
Merged
Merged
Conversation
sapphi-red
marked this pull request as draft
October 15, 2026 11:34
sapphi-red
marked this pull request as ready for review
October 15, 2026 11:42
fengmk2
added a commit
to voidzero-dev/vite-plus
that referenced
this pull request
Oct 22, 2026
- Upgrade `rolldown` to `v1.2.15` and `vite` to `v8.3.5`. Update `postcss` to `^8.5.30` and `@vitejs/devtools` to `^0.8.0`. The DevTools peer range accepts `^0.7.1 || ^0.8.0`. - Align the Rust `oxc*` crates with the JavaScript dependencies at `0.155.0`. Adapt `vp_static_config` to the new AST API for strings with lone surrogates. - Sync the root and core TypeScript catalog with Vite's `~7.0.2` declaration. Vite uses TypeScript 7 to match Oxlint's type-aware rules ([Vite #23778](vitejs/vite#23778)). Keep Rolldown's compiler range and the Volar/Vue TypeScript 6 dependencies for their existing compiler APIs. ## Dependency updates | Package | From | To | | --- | --- | --- | | `rolldown` | [`c9a8cda`](rolldown/rolldown@c9a8cda) | [`v1.2.15`](https://github.com/rolldown/rolldown/releases/tag/v1.2.15) ([`89d821c`](rolldown/rolldown@89d821c)) | | `vite` | [`b6c20f6`](vitejs/vite@b6c20f6) | [`v8.3.5`](https://github.com/vitejs/vite/releases/tag/v8.3.5) ([`981f07f`](vitejs/vite@981f07f)) | | `oxc*` crates (`Cargo.toml`) | `0.154.0` | [`0.155.0`](https://github.com/oxc-project/oxc/releases/tag/crates_v0.155.0) | | `postcss` | `^8.5.29` | [`^8.5.30`](https://github.com/postcss/postcss/releases/tag/8.5.30) | | `@vitejs/devtools` | `^0.7.6` | [`^0.8.0`](https://github.com/vitejs/devtools/releases/tag/v0.8.0) | | `typescript` (root and core catalog) | `^6.0.0` | [`~7.0.2`](https://github.com/microsoft/TypeScript/releases/tag/v7.0.2) | <details><summary>Unchanged dependencies</summary> - `oxc-node`: `v1.0.0 (4759ced)` - `vitest`: `5.0.5` - `@vitest/browser`: `5.0.5` - `@vitest/browser-playwright`: `5.0.5` - `@vitest/browser-preview`: `5.0.5` - `@vitest/mocker`: `5.0.5` - `@vitest/pretty-format`: `5.0.5` - `@vitest/snapshot`: `5.0.5` - `@vitest/spy`: `5.0.5` - `@vitest/utils`: `5.0.5` - `tsdown`: `0.23.1` - `@tsdown/css`: `0.23.1` - `@tsdown/exe`: `0.23.1` - `lightningcss`: `^1.33.0` - `lint-staged`: `17.6.0` - `@oxc-node/cli`: `1.0.0` - `@oxc-node/core`: `1.0.0` - `oxfmt`: `0.74.0` - `oxlint`: `1.89.0` - `@oxlint/plugins`: `1.89.0` - `oxlint-tsgolint`: `7.0.2004` - `@oxc-project/runtime`: `0.155.0` - `@oxc-project/types`: `0.155.0` - `oxc-minify`: `0.155.0` - `oxc-parser`: `0.155.0` - `oxc-transform`: `0.155.0` - `VITEST_VERSION constant`: `5.0.5` - `yuku-parser`: `0.19.0` - `fsevents`: `~2.3.3` </details> ## Code changes - `crates/vp_static_config/src/lib.rs`: adapt to the `oxc` `0.155` API. Keys and strings with lone surrogates now use the JavaScript fallback. - `pnpm-workspace.yaml`: add `resolve.exports@2.0.4` to `minimumReleaseAgeExclude`; add `packageExtensions` pinning `typescript: ~6.0.3` for `@volar/typescript`, `@volar/language-service`, and `@vue/language-core`. - `packages/core/package.json`: add `typescript: catalog:` to development dependencies. Widen the `@vitejs/devtools` peer range to `^0.7.1 || ^0.8.0` and update `bundledVersions` to `vite@8.3.5` and `rolldown@1.2.15`. - `packages/cli/binding/index.d.cts`: regenerated NAPI binding types (`deps`/`dynamicDeps` now `string[]`; new `convertExternalRequire` and `isBundled` fields on the vite-resolve plugin bindings). - `packages/tools/src/sync-remote-deps.ts`: copy the TypeScript range from `vite/package.json` into the shared catalog. Keep the `rolldown>typescript` override on Rolldown's declared range and copy Vite's TypeScript compatibility overrides. - `package.json`: run the stable TypeScript 7 compiler through the existing `tsgo` script. - `packages/cli/tsconfig.json`: include CLI source files so TypeScript 7 can generate declarations. - `packages/cli/src/__tests__/exports-map.spec.ts`: use the TypeScript 7 API for declaration checks. The sync tests cover version changes and repeated syncs. - `crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/`: add the `tsconfig.json` files required for TypeScript 7 declaration output. Update snapshots for the compiler output and Rolldown's source comments. - `packages/cli/src/migration/__tests__/oxlint-extends.spec.ts`: use asynchronous cleanup to retry temporary Windows `EPERM` errors after Vite loads the configuration. - `crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/windows_case_sensitive_shims/local-cli.cjs`: use the snapshot runner's deadline so the native `pnpm` download can finish. - `.github/workflows/ci.yml`: retry `rustup` downloads after connection errors. Run the installer only after the download completes. - `crates/vp_cli_snapshots/tests/cli_snapshots/redact.rs`: normalize TypeScript 7 warning order and concurrent `tsup` progress. Keep all diagnostics and artifacts in snapshots. - `crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/app_custom_vite_root/vite.config.ts`: disable dependency discovery in the custom-root fixture to prevent scan messages during shutdown. ## Build status - `upgrade-and-sync`: success - `build-upstream`: failure in the original upgrade workflow --------- Co-authored-by: voidzero-guard[bot] <278573678+voidzero-guard[bot]@users.noreply.github.com> Co-authored-by: MK <fengmk2@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We now use oxlint and the type-aware rules of it. Oxlint uses typescript v7 so we should upgrade it.
I've kept the typescripts in create-vite in this PR.
refs #23746