Skip to content

Conversation

@petebacondarwin
Copy link
Contributor

@petebacondarwin petebacondarwin commented Nov 13, 2025

Just #11176 but on the cloudflare org for easier testing.

Fixes [DEVX-2229]

Adds a check to ensure that the locally-installed version of wrangler meets the peer dependency requirements of the Vite plugin. This is required because of package managers with lax enforcement of peerdep ranges, which isn't acceptable for us as it can cause breakages.


  • Tests
    • Tests included
    • Tests not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: internal fix
  • Wrangler V3 Backport
    • Wrangler PR:
    • Not necessary because: not Wrangler

@petebacondarwin petebacondarwin requested a review from a team as a code owner November 13, 2025 13:38
@petebacondarwin petebacondarwin requested a review from a team November 13, 2025 13:38
@changeset-bot
Copy link

changeset-bot bot commented Nov 13, 2025

🦋 Changeset detected

Latest commit: 780fac8

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 13, 2025

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@11265

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@11265

miniflare

npm i https://pkg.pr.new/miniflare@11265

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@11265

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@11265

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@11265

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@11265

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@11265

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@11265

wrangler

npm i https://pkg.pr.new/wrangler@11265

commit: 00ec8c7

@petebacondarwin petebacondarwin marked this pull request as draft November 13, 2025 16:31
@petebacondarwin petebacondarwin force-pushed the pbd/vite-plugin/check-wrangler-version branch 2 times, most recently from ee49ae0 to a646a29 Compare December 11, 2025 14:04
@petebacondarwin petebacondarwin changed the title Pbd/vite plugin/check wrangler version [vite-plugin] add a check for installed wrangler version Dec 11, 2025
@petebacondarwin petebacondarwin marked this pull request as ready for review December 12, 2025 10:39
@petebacondarwin petebacondarwin force-pushed the pbd/vite-plugin/check-wrangler-version branch from 4f528ce to 2a83e23 Compare December 12, 2025 10:39
@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Dec 12, 2025
petebacondarwin and others added 12 commits December 12, 2025 12:50
This change delays confusing "missing export" failures to allow us to run a more user friendly version skew check, for when the user installs a version of Wrangler that breaks the plugin
…being used internally is correct

This is necessary because some package managers will incorrectly merge peer dependencies with actual dependencies (often ignoring peer dependency constraints).
Co-authored-by: James Opstad <13586373+jamesopstad@users.noreply.github.com>
Co-authored-by: James Opstad <13586373+jamesopstad@users.noreply.github.com>
@petebacondarwin petebacondarwin force-pushed the pbd/vite-plugin/check-wrangler-version branch from 2a83e23 to 780fac8 Compare December 12, 2025 12:51
@petebacondarwin petebacondarwin merged commit 06f48c0 into main Dec 12, 2025
40 of 42 checks passed
@petebacondarwin petebacondarwin deleted the pbd/vite-plugin/check-wrangler-version branch December 12, 2025 16:56
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Dec 12, 2025
vicb added a commit that referenced this pull request Dec 12, 2025
vicb added a commit that referenced this pull request Dec 15, 2025
vicb added a commit that referenced this pull request Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants