Skip to content

chore(deps-dev): bump vite from 7.3.6 to 8.3.0 - #286

Merged
allisonmahmood merged 2 commits into
mainfrom
deps/vite-8
Sep 19, 2026
Merged

allisonmahmood merged 2 commits into
mainfrom
deps/vite-8

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Sep 16, 2026 •

Copy link
Copy Markdown
Owner

Dependabot's #280 bumps the CLI's Vite to 8.3.0 against main. This lands it on top of the Effect RC bump (#284) and moves the patchy init scaffold's pin with it, so a scaffolded repo builds with the same Vite major the CLI's dev loop is typed against.

Vite 8 replaces Rollup and esbuild with Rolldown and Oxc. The CLI only calls vite.build in watch mode and reads the emitted index.html asset (packages/patchy/src/devWatch.ts); that contract held. vite-plugin-singlefile 2.3.3 declares Vite 8 support. Vitest stays at 4.1.11, whose peer range includes Vite 8, so the test runner now resolves Vite 8 as well. No config in the repo uses a removed Vite option.

Verification

  • pnpm lint, pnpm typecheck pass.
  • packages/patchy and packages/sdk tests pass (305 and 11).
  • pnpm test:packed-cli-e2e passes on Vite 8, including the scaffold build and dev loop; the scaffold resolves its own ranges from the registry with a fresh store, so it built on Vite 8 from its declared pins.

Stacked on deps/effect-rc-115 (#284); replaces #280.

Model: Claude Fable 5.1. Harness: Claude Code.

@github-actions github-actions Bot added area:ci CI, shared testing infrastructure, development scripts and tooling area:cli Touches the cli area size:s Under 100 changed lines labels Sep 16, 2026
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Astra review

Reviewed git diff origin/deps/effect-rc-115...HEAD, base d119224 to PR head b0b5991. One pass, no subagents or file edits. Spec sources: this PR's description, #280, and the Vite 8 migration guide.

Standards

No merge-blocking method or YAGNI findings. Updating the existing CLI dependency and scaffold version, with the corresponding lockfile changes, is the direct approach. No new abstractions, compatibility machinery, or speculative features were added.

Spec

No merge-blocking intent findings. The CLI and patchy init scaffold both request ^8.3.0; the lockfile resolves Vite 8.3.0. The locked vite-plugin-singlefile and Vitest versions both declare Vite 8 compatibility. The scaffold configuration and the build/watch integration do not use the migration guide's removed options or esbuild-only APIs.

Verification was source and lockfile review. I did not run local tests because this worktree has no node_modules. CI is still running, so this is not a green-CI signoff.

Summary: Standards 0 blockers; Spec 0 blockers. No blocking issue on either axis.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Opus review

Reviewed git diff origin/deps/effect-rc-115...HEAD at 878041f. Spec: this PR's body, #280, and the Vite 8 migration guide. Astra's pass is on the thread; not repeating it.

Checked, not assumed:

  • packages/patchy/src/devWatch.ts — import type * as Vite is type-only; the runtime module is the repo's installed Vite (devWatch.ts:22-27). vite.build with build.watch/build.outDir, the post plugin's writeBundle(_options, bundle) reading bundle["index.html"], and the watcher.on("event") / code === "ERROR" shape all survive Rolldown. packages/patchy/src/devServer.test.ts:32 builds beneath the workspace, so that path runs on Vite 8 in pnpm test.
  • Scaffold (initProject.ts:27-34): typescript ^6.0.3, @types/node ^22.19.0 and the vite.config.ts template still fit; Vite 8's engines (^20.19.0 || >=22.12.0) sit under the repo's >=22.22.0.
  • pnpm test:packed-cli-e2e is stronger coverage than the body claims: runTier1Flow runs patchy init with a fresh pnpm store and metadata cache (scripts/packed-cli-e2e.mjs:3266-3289), so the scaffold's own ranges resolve from the registry and then build through patchy dev. The harness does not pack the repo's Vite into the scaffold; the body undersells its own verification.

Finding:

  1. Non-blocking — packages/patchy/src/initProject.ts:31. The scaffold pins vite-plugin-singlefile: "^2.3.0", but only 2.3.3 widened its peer to vite: … || ^8.0.0; 2.3.0–2.3.2 stop at ^7. This repo is safe because its lock resolves 2.3.3, but a scaffolded repo has no lock and relies on the caret always picking the newest 2.x. Raise the floor to ^2.3.3 so the range states the Vite it is paired with.

CLAUDE.md "The CLI": no follow-through needed. I grepped packages/patchy/README.md, ADR-0004, skills/patchy, packages/sdk/skills and docs/ — every Vite mention is behavioural ("build-watch, not a dev server", "builds one HTML file"); none names a version or lists the scaffold's dependencies. No command, flag or exit code moved.

Title conventional; the scaffold pin is the same concern as the bump.

Would merge on green CI.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Disposition for the Astra and Opus reviews: the scaffold now pins vite-plugin-singlefile to ^2.3.3, the first release whose peer range includes Vite 8, so a fresh scaffold states the pairing instead of relying on the caret. The PR body's verification line is corrected: the end-to-end resolves the scaffold's own ranges from the registry, which is stronger than packing the repo's Vite. Kept as is: nothing.

@allisonmahmood
allisonmahmood force-pushed the deps/vite-8 branch 2 times, most recently from 577a9ea to ca305df Compare September 19, 2026 13:10
@github-actions github-actions Bot removed the area:ci CI, shared testing infrastructure, development scripts and tooling label Sep 19, 2026
Base automatically changed from deps/effect-rc-115 to main September 19, 2026 13:35
allisonmahmood and others added 2 commits September 19, 2026 15:44
The CLI's dev build and the repos patchy init scaffolds move to Vite 8 together, so a scaffold builds with the Vite the CLI is typed against.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@allisonmahmood
allisonmahmood merged commit d2cded2 into main Sep 19, 2026
8 checks passed
@allisonmahmood
allisonmahmood deleted the deps/vite-8 branch September 19, 2026 13:52
allisonmahmood added a commit that referenced this pull request Sep 19, 2026
`@effect/vitest` rc.115 declares a peer on vitest 5, which the Effect
bump (#284) left as a warning. This moves every package's vitest
devDependency to 5.0.1, which clears the peer warning and lands the
runner major on its own.

Checked against the Vitest 5 migration guide: the repo uses none of the
changed surfaces. No pool or worker id math, no `sequential` API, no
removed entry points, no reporter or coverage config, no nested
`vi.mock`, no `toThrow("")` or `expect.poll`; `inject`, `provide` and
`globalSetup` are unchanged. Mocks now clear before each test by
default, which the one fake-timer suite tolerates.

## Verification

- `pnpm lint`, `pnpm typecheck` pass.
- `pnpm test`: 939 of 939 pass, no deprecation output.
- `pnpm test:postgres-concurrency`: 7 of 7 pass.

Stacked on `deps/vite-8` (#286), since vitest 5 requires Vite 6.4 or
later.

Model: Claude Fable 5.1. Harness: Claude Code.

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:cli Touches the cli area size:s Under 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant