Repository navigation
chore(deps): upgrade vitest 1.4.0 -> 5.1.1 - #2144
Open
tac0turtle wants to merge 2 commits into
Open
tac0turtle wants to merge 2 commits into
tac0turtle wants to merge 2 commits into
Conversation
Four workflows ran Node 18 (EOL) and commitlint ran 22, while package.json engines and .nvmrc require 24. The deploy workflows run vite build, and Vite 7 needs Node >=20.19, so they could not build on 18. Read the version from .nvmrc via setup-node's node-version-file so CI cannot drift from the repo's declared runtime again.
vitest <1.6.1 allows RCE when visiting a malicious site while the dev server runs (critical), and <3.2.6 allows arbitrary file read/exec via the UI server (critical). No test changes needed. vitest 5 requires Node >=22.12; CI moves to Node 24 in the preceding commit (ci: use .nvmrc).
|
@tac0turtle is attempting to deploy a commit to the dYdX Trading Team on Vercel. A member of the Team first needs to authorize it. |
This branch has not been deployed
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.
Changes
vitest1.4.0 -> 5.1.1. This clears two critical advisories:The test files needed no changes.
Depends on #2142. vitest 5 requires Node >=22.12, and CI currently runs Node 18. This branch is stacked on #2142's commit (
ci: use .nvmrc), so until #2142 merges this PR shows two commits. Merge #2142 first, after which only the vitest commit remains.Follow-up:
@ladle/react4 still pulls in a vulnerable Vite 5.4.20. That's dev-only, and it's a separate upgrade.Verification
pnpm install --frozen-lockfile --ignore-scripts(the CI install path): OKvitest runon 5.1.1 under Node 24.12: 14 files, 110 tests passtsc --noEmit: clean,pnpm lint: 0 errorsThe lockfile is in v6 format. If #2141 (pnpm 10) merges first, this branch needs its lockfile regenerated under pnpm 10.
Issue