Skip to content

Upgrade VitePress to 2.0.0 alpha for newer esbuild#7

Merged
Ring-wdr merged 1 commit intomainfrom
chore/vitepress-alpha
Mar 25, 2026
Merged

Upgrade VitePress to 2.0.0 alpha for newer esbuild#7
Ring-wdr merged 1 commit intomainfrom
chore/vitepress-alpha

Conversation

@Ring-wdr
Copy link
Owner

Summary

  • upgrade vitepress from 1.6.4 to 2.0.0-alpha.17
  • move the docs toolchain from Vite 5 / esbuild 0.21 to Vite 7 / esbuild 0.27
  • keep the existing docs config, scripts, and Pages workflow unchanged

Analysis

  • vitepress@1.6.4 depends on vite@^5.4.14, which resolved to vite@5.4.21 and esbuild@0.21.5
  • vitepress@2.0.0-alpha.17 depends on vite@^7.3.1, which resolved to vite@7.3.1 and esbuild@0.27.4
  • the repo's current VitePress usage (defineConfig, cleanUrls, srcExclude, local search, default theme extension) still builds successfully on the alpha line
  • reviewed VitePress official changelog for 2.0.0-alpha.12 through 2.0.0-alpha.17; the listed breaking changes are around markdown include handling and CJK markdown options, which this repo does not use

Testing

  • npm ls vitepress vite esbuild
  • npm run build
  • npm test
  • npm run docs:build
  • npm audit

Risk

  • this is still an alpha dependency, so the main tradeoff is release-line stability vs clearing the old transitive esbuild path
  • no repo-local compatibility issue was found during verification

…build

Dependabot flagged the VitePress 1.6.4 line because its Vite dependency brought in an
older esbuild. Upgrading to the current VitePress alpha moves the docs toolchain
to Vite 7 and esbuild 0.27 while keeping this repository's current docs config,
build scripts, and Pages workflow working unchanged.

Constraint: The published CLI runtime should stay untouched; this change is limited to docs tooling
Constraint: The repo Pages site must keep building with the existing VitePress config and GitHub Actions flow
Rejected: Stay on VitePress 1.6.4 and override transitive esbuild manually | keeps the repo on an older unsupported toolchain branch
Rejected: Hold the upgrade until VitePress 2 is stable | leaves the Dependabot issue in place despite a verified compatible upgrade path
Confidence: medium
Scope-risk: moderate
Reversibility: clean
Directive: Revisit this dependency once VitePress 2 exits alpha so the repo can move back to a stable release line without redoing the docs surface
Tested: npm ls vitepress vite esbuild; npm run build; npm test; npm run docs:build; npm audit
Not-tested: GitHub Actions CI run for this dependency-only branch
@Ring-wdr Ring-wdr merged commit d37f54c into main Mar 25, 2026
4 checks passed
@Ring-wdr Ring-wdr deleted the chore/vitepress-alpha branch March 25, 2026 14:35
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ac76575324

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

},
"engines": {
"node": "^18.0.0 || >=20.0.0"
"node": "^20.19.0 || >=22.12.0"

Choose a reason for hiding this comment

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

P2 Badge Align Node engine range with Vite 7 requirement

Upgrading to vitepress@2.0.0-alpha.17 pulls in Vite 7, and the lockfile now records Vite's engine as ^20.19.0 || >=22.12.0 (package-lock.json), but the repo still advertises "node": ">=22.0.0" in package.json. That mismatch means contributors on Node 22.0–22.11 satisfy the declared project engine yet can fail when running docs commands (vitepress build/dev) due to Vite's runtime Node version check.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant