Skip to content

chore(deps): upgrade vite-plus to 0.2.1#85

Merged
fengmk2 merged 1 commit into
mainfrom
chore/upgrade-vite-plus-0.2.1
Jun 18, 2026
Merged

chore(deps): upgrade vite-plus to 0.2.1#85
fengmk2 merged 1 commit into
mainfrom
chore/upgrade-vite-plus-0.2.1

Conversation

@fengmk2

@fengmk2 fengmk2 commented Jun 18, 2026

Copy link
Copy Markdown
Member

Problem

The project was on vite-plus@^0.1.23. v0.2.1 has a breaking change: it consumes upstream Vitest directly, so the @voidzero-dev/vite-plus-test wrapper is removed and vitest now comes in transitively through vite-plus.

Fix

  • Set vite-plus to exact 0.2.1 and reinstall, moving the lockfile off 0.1.x.
  • The wrapper (@voidzero-dev/vite-plus-test) is now gone from the tree; vitest@4.1.9 and @voidzero-dev/vite-plus-core@0.2.1 arrive transitively. Tree resolves to a single vitest version.
  • No source changes: all tests already import from the stable vite-plus/test API.
  • pnpm-workspace.yaml was auto-generated by the prepare hook (vp config) with minimumReleaseAgeExclude entries for the new packages.
  • Rebuilt dist/index.mjs.

This repo has no direct vitest usage and no vite override, so no vitest pinning or override updates were needed.

Verification

  • Tests: 9 files, 150 tests passed (native Vitest banner, RUN v4.1.9).
  • vp check (format + lint + types): pass.

Copilot AI review requested due to automatic review settings June 18, 2026 06:00
@socket-security

socket-security Bot commented Jun 18, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedvite-plus@​0.2.180100100100100

View full report

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR upgrades the repository’s Vite+ tooling dependency to vite-plus@0.2.1 (a breaking upstream change that now pulls Vitest directly), updates the lockfile accordingly, and adds pnpm workspace configuration exclusions generated by vp config.

Changes:

  • Pin vite-plus from ^0.1.23 to exact 0.2.1 in package.json.
  • Update pnpm-lock.yaml to reflect the new vite-plus dependency tree (including transitive vitest@4.1.9).
  • Add pnpm-workspace.yaml with minimumReleaseAgeExclude entries for newly introduced packages.

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.

File Description
pnpm-workspace.yaml Adds minimumReleaseAgeExclude entries generated by vp config for the new Vite+ package set.
pnpm-lock.yaml Updates resolved dependency graph for vite-plus@0.2.1 and new transitive Vitest packages.
package.json Pins vite-plus to 0.2.1 in devDependencies.
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fengmk2 fengmk2 force-pushed the chore/upgrade-vite-plus-0.2.1 branch 2 times, most recently from 7131fc8 to 2f1be5d Compare June 18, 2026 06:31
Copilot AI review requested due to automatic review settings June 18, 2026 06:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 5 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

Comment thread .npmrc Outdated
@fengmk2 fengmk2 force-pushed the chore/upgrade-vite-plus-0.2.1 branch 2 times, most recently from d79bbda to 18db8c3 Compare June 18, 2026 07:03
Copilot AI review requested due to automatic review settings June 18, 2026 07:03
@fengmk2 fengmk2 force-pushed the chore/upgrade-vite-plus-0.2.1 branch from 18db8c3 to 45cf654 Compare June 18, 2026 07:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 5 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

@fengmk2

fengmk2 commented Jun 18, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 45cf65405b

ℹ️ 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".

@fengmk2 fengmk2 force-pushed the chore/upgrade-vite-plus-0.2.1 branch from 45cf654 to a21d29f Compare June 18, 2026 07:25
Copilot AI review requested due to automatic review settings June 18, 2026 07:25
v0.2.1 consumes upstream Vitest directly; the @voidzero-dev/vite-plus-test
wrapper is removed and vitest (4.1.9) now arrives transitively through
vite-plus. No source changes needed since all tests already import from the
stable vite-plus/test API. Reinstall drops the wrapper from the lockfile and
resolves to a single vitest version.

Commit pnpm-workspace.yaml with a minimumReleaseAgeExclude for the Vite+
toolchain. vp 0.2.x's lockfile verifier rejects packages published within the
last 24h, so installing a brand-new vite-plus release otherwise fails
`vp install` (ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION); the verifier reads the
exclude only from pnpm-workspace.yaml. A glob exclude keeps it release-agnostic.

Move the CI fixtures that run vp (test-node-version, test-vp-install-and-exec,
test-sfw, test-sfw-alpine, test-sfw-blocks-malicious,
test-sfw-with-socketdev-action) out of the repo. With pnpm-workspace.yaml
committed, a fixture inside the repo would be treated as part of this repo's
workspace and vp run/install would resolve to the repo root. Most jobs use
$RUNNER_TEMP; the alpine container job uses /tmp since ${{ runner.temp }} is a
host path that does not exist inside the container. The cache-* jobs keep
./test-project (they never run vp in the fixture, and @actions/glob hashFiles
only hashes paths under GITHUB_WORKSPACE).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 5 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

@fengmk2 fengmk2 force-pushed the chore/upgrade-vite-plus-0.2.1 branch from a21d29f to d07ec94 Compare June 18, 2026 07:29
@fengmk2 fengmk2 merged commit 0452b83 into main Jun 18, 2026
34 checks passed
@fengmk2 fengmk2 deleted the chore/upgrade-vite-plus-0.2.1 branch June 18, 2026 08:02
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.

2 participants