Repository navigation
chore(deps): Update vitest to 4.1.12 and apply the four small security bumps from #108 - #111
Conversation
|
|
@deanzaka This PR closes 8 open Dependabot alerts, one of them critical (shell-quote), and keeps CI green on Node 20. It replaces #108, which moved vitest to 5.0.5 and broke the install on Node 20 and the tests on Node 22. Only development and transitive dependencies change. The published stdio bundle is byte-identical, so users of Before (#108 on CI, Node 20): After (this PR on CI, Node 20):
|
There was a problem hiding this comment.
🟢 Approval recommended
The scoped dependency updates are consistent, retain Vite resolution, and have reported passing Node 20 validation with no identified blocking issues.
No open issues 🎉
What changed in this PR
Updates development and transitive dependencies to address security advisories, replacing #108’s Vitest major upgrade with a 4.x update that retains Node 20 compatibility.
Changes:
- Updates Vitest and its seven companion packages to 4.1.12.
- Updates follow-redirects, hono, http-cache-semantics, and shell-quote.
- Leaves source code and the published CLI bundle unchanged.
| File | Description |
|---|---|
yarn.lock |
Records updated dependency versions, integrity hashes, and aligned Vitest packages. |
package.json |
Raises the Vitest development dependency to ^4.1.12. |
Review effort: Balanced
Summary
This PR keeps vitest on 4.x and updates it to 4.1.12. It also applies the four small security bumps from #108. All 5 packages are development or transitive dependencies. The published
bin/cli.mjsis byte-identical to main.Supersedes #108.
Why
#108 moved vitest from 4.1.8 to 5.0.5. That major version failed in two ways:
^22.12.0 || ^24.0.0 || >=26.0.0. CI installs Node 20, soyarn install --frozen-lockfilestopped withThe engine "node" is incompatible with this module(Verify run 39870854149). CONTRIBUTING.md also statesnode >= 20.0.0.viteas a required peer dependency, and the chore(deps): bump the npm_and_yarn group across 1 directory with 5 updates #108 lockfile removedvite. Yarn 1 does not install peer dependencies, soyarn testfailed on Node 22 too withERR_MODULE_NOT_FOUND: Cannot find package 'vite'.vitest 4.1.12 fixes the same vitest and
@vitest/mockeradvisories and keeps Node 20 support.What changes
@vitest/*packages)package.jsondevDependency andyarn.lockyarn.lockyarn.lockyarn.lockyarn.lockNo source file changes. The diff is +60/-60 lines.
Zero-regression evidence
Both trees were checked on Node 20.20.2, the CI version. Main is c95a7ac (includes #109).
yarn install --frozen-lockfileyarn build, thengit statusyarn lintyarn testtsc --noEmit -p packages/serveryarn why zodinitialize+tools/listpackages/server/bin/cli.mjsAlerts closed
8 open Dependabot alerts: #129, #130, #141, #168, #170 (critical), #171, #172, #173.
Rollback
Revert this PR. No data or published package changes.
QA
yarn install --frozen-lockfile.yarn build, thengit status --porcelain.yarn lintandyarn test.yarn why vitestandyarn why zod.initializeandtools/list.