fix(staged)!: upgrade lint-staged and automate future updates - #2754
Merged
Merged
Conversation
fengmk2
force-pushed
the
fix/upgrade-lint-staged
branch
from
September 19, 2026 17:19
7f84bc4 to
1c91869
Compare
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://fix-upgrade-lint-staged-viteplus-dev.voidzero-docs.workers.dev (commit afad353)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
Contributor
CLI artifact sizes (
|
| Artifact | Format | Base | PR | Change |
|---|---|---|---|---|
packages/cli/dist |
Directory total | 2.15 MiB | 2.00 MiB | -151.36 KiB (-6.88%) |
packages/core/dist |
Directory total | 3.95 MiB | 3.95 MiB | 0 B (0.00%) |
| Combined package dist | Directory total | 6.10 MiB | 5.95 MiB | -151.36 KiB (-2.42%) |
vp (Linux x64) |
Binary | 11.23 MiB | 11.23 MiB | 0 B (0.00%) |
vp (Linux x64) |
gzip -9 | 4.86 MiB | 4.86 MiB | 0 B (0.00%) |
| NAPI (Linux x64) | Binary | 32.03 MiB | 32.03 MiB | 0 B (0.00%) |
| NAPI (Linux x64) | gzip -9 | 12.70 MiB | 12.70 MiB | 0 B (0.00%) |
vp (macOS ARM64) |
Binary | 8.38 MiB | 8.38 MiB | 0 B (0.00%) |
vp (macOS ARM64) |
gzip -9 | 4.24 MiB | 4.24 MiB | 0 B (0.00%) |
| NAPI (macOS ARM64) | Binary | 39.66 MiB | 39.66 MiB | 0 B (0.00%) |
| NAPI (macOS ARM64) | gzip -9 | 17.01 MiB | 17.01 MiB | 0 B (0.00%) |
vp (Windows x64) |
Binary | 9.10 MiB | 9.10 MiB | 0 B (0.00%) |
vp (Windows x64) |
gzip -9 | 3.98 MiB | 3.98 MiB | 0 B (0.00%) |
| NAPI (Windows x64) | Binary | 26.99 MiB | 26.99 MiB | 0 B (0.00%) |
| NAPI (Windows x64) | gzip -9 | 10.80 MiB | 10.80 MiB | -6 B (-0.00%) |
| Trampoline (Windows x64) | Binary | 13.50 KiB | 13.50 KiB | 0 B (0.00%) |
| Trampoline (Windows x64) | gzip -9 | 7.03 KiB | 7.03 KiB | 0 B (0.00%) |
| Installer (Windows x64) | Binary | 4.55 MiB | 4.55 MiB | 0 B (0.00%) |
| Installer (Windows x64) | gzip -9 | 2.13 MiB | 2.13 MiB | -1 B (-0.00%) |
cpojer
approved these changes
Sep 19, 2026
fengmk2
force-pushed
the
fix/upgrade-lint-staged
branch
from
September 20, 2026 09:16
1c91869 to
3ab3c52
Compare
Contributor
|
✅ Staging deployment successful! Preview: https://viteplus-staging.void.app/ |
BREAKING CHANGE: vp staged now requires Node.js 22.22.1 or later and Git 2.32.0 or later. Node.js 20 is no longer supported for staged checks. The existing Node.js 24.11.0 minimum still applies to the 24.x line. These requirements also apply to pre-commit hooks that run vp staged.
fengmk2
force-pushed
the
fix/upgrade-lint-staged
branch
from
September 20, 2026 14:05
3ab3c52 to
afad353
Compare
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.
The bundled
lint-staged@16.4.0misses fixes for unstaged changes and Git state during pre-commit hooks. This change updatesvp stagedto uselint-staged@17.5.1.BREAKING CHANGE:
vp stagednow requires Node.js22.22.1or later and Git2.32.0or later. Node.js20.xis no longer supported for staged checks. The existing minimum of Node.js24.11.0still applies to the24.xline. These requirements also apply to pre-commit hooks that runvp staged. Upgrade the project's Node.js runtime and Git on developer machines and CI runners. See the upstream breaking changes..github/workflows/upgrade-deps.ymlcalls an upgrade script that does not includelint-staged. The^16.2.6catalog range also prevents installation of17.x. The script now updates thelint-stagedcatalog entry from the npmlatesttag and includes the version in its upgrade report.Fixes #2752.