Repository navigation
chore: upgrade dependencies and drop Wrangler - #24
Merged
Merged
Conversation
- 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.
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.
Upgrades every dependency and removes Wrangler entirely. Stacked on #1; it'll retarget to
mainwhen that merges.Changes
cf1.0 beta (the npmlatesttag is still1.0.0-beta.14),@cloudflare/vite-plugin2.0 beta, Vitest 5, TypeScript 7, and the rest.@cloudflare/vite-plugin2.0 doesn't depend on it.@cloudflare/vitest-plugin(1.4.0, the latest) still does, so it's gone.cloudflare.config.tsusesdefineConfig({ worker })fromcf/config. Durable Object bindings takeworkerrather thanworkerName.cf workers typesinto.cloudflare/types/onpostinstall(orpnpm types).worker-configuration.d.tsis no longer committed.test/global-setup.tsbuilds the Worker once.test/harness.tsruns the bundle in Miniflare, for HTTP and Durable Object RPC.vite-plus/test.viteorvitestdependencies: Vite+ only needs the pnpm overrides, now pinned to the installed versions rather than@latest.devandbuildstay onvp, sincecf devandcf buildlook for avitebinary that Vite+ doesn't ship.deployisvp build && cf deploy --prebuilt.setup-vpv1.21.1.Testing
pnpm check,pnpm test(17 tests) andpnpm buildpass.cf deploy --prebuilt --dry-runreads the build output and shows both Durable Object bindings.vp devchecked by hand: pages, a signed webhook through to theRepoDurable Object, and board sync over WebSockets.