Skip to content

chore: upgrade dependencies and drop Wrangler - #24

Merged
ascorbic merged 3 commits into
spike/live-cardsfrom
chore/upgrade-deps
Oct 9, 2026
Merged

ascorbic merged 3 commits into
spike/live-cardsfrom
chore/upgrade-deps

Conversation

@ascorbic

@ascorbic ascorbic commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Upgrades every dependency and removes Wrangler entirely. Stacked on #1; it'll retarget to main when that merges.

Changes

  • Latest everything: vite-plus 1.1, cf 1.0 beta (the npm latest tag is still 1.0.0-beta.14), @cloudflare/vite-plugin 2.0 beta, Vitest 5, TypeScript 7, and the rest.
  • No Wrangler: it isn't a dependency anywhere in the lockfile.
    • @cloudflare/vite-plugin 2.0 doesn't depend on it.
    • @cloudflare/vitest-plugin (1.4.0, the latest) still does, so it's gone.
  • Config: cloudflare.config.ts uses defineConfig({ worker }) from cf/config. Durable Object bindings take worker rather than workerName.
  • Types: generated by cf workers types into .cloudflare/types/ on postinstall (or pnpm types). worker-configuration.d.ts is no longer committed.
  • Tests: Vitest in Node.
    • test/global-setup.ts builds the Worker once.
    • test/harness.ts runs the bundle in Miniflare, for HTTP and Durable Object RPC.
    • Test APIs come from vite-plus/test.
  • No direct vite or vitest dependencies: Vite+ only needs the pnpm overrides, now pinned to the installed versions rather than @latest.
  • Scripts:
    • dev and build stay on vp, since cf dev and cf build look for a vite binary that Vite+ doesn't ship.
    • deploy is vp build && cf deploy --prebuilt.
  • Compatibility date: 2026-10-06.
  • CI: setup-vp v1.21.1.

Testing

  • pnpm check, pnpm test (17 tests) and pnpm build pass.
  • cf deploy --prebuilt --dry-run reads the build output and shows both Durable Object bindings.
  • vp dev checked by hand: pages, a signed webhook through to the Repo Durable Object, and board sync over WebSockets.

- vite-plus 1.1, cf 1.0 beta, @cloudflare/vite-plugin 2.0 beta,
  vitest 5, TypeScript 7, and the rest to latest
- cloudflare.config.ts uses defineConfig from cf/config; types are
  generated by cf workers types into .cloudflare/types
- tests run in Node, with integration tests running the built Worker
  in Miniflare, replacing @cloudflare/vitest-plugin (which depends on
  Wrangler)
- deploy is vp build then cf deploy --prebuilt
- compatibility date 2026-10-06
Vite+ 1.x only needs the pnpm overrides, now pinned to the installed
versions rather than @latest. Tests import from vite-plus/test.
@ascorbic
ascorbic added this pull request to stack #25 October 9, 2026 17:58
@ascorbic
ascorbic merged commit 46a2e30 into main Oct 9, 2026
2 checks passed
@ascorbic
ascorbic deleted the chore/upgrade-deps branch October 9, 2026 17:59
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.

1 participant