chore(deps): bump wrangler to 4.110.0 to match workers-types v5 - #4102
Conversation
The root package.json declares @cloudflare/workers-types@^5.20260708.1 (bumped in #4002 to satisfy the wrangler@4.110.0 peer requirement pulled in transitively via @cloudflare/vitest-pool-workers), but the direct wrangler devDependency was left at ^4.36.0, whose peer dependency wants @cloudflare/workers-types@^4.x. npm's resolver correctly refuses to install this combination, which broke `npm ci` in the Deploy Site workflow once a new v5 workers-types patch published and made the root's floating range diverge from the locked resolution. Bump wrangler to ^4.110.0 so its peer requirement matches the already-pinned workers-types major version, and bump the matching wranglerVersion pins (and inline `npx wrangler@` invocations) in site-deploy.yml so the wrangler-action install step stays consistent. Assisted-by: Claude Signed-off-by: Wayne Sun <gsun@redhat.com>
|
🤖 Review · |
PR Summary by QodoFix Cloudflare Wrangler peer-dep mismatch by bumping wrangler to 4.110.0
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Review feedback on the wrangler bump: the preCommands ran `npx wrangler@<version> versions secret bulk`, which pins the version a second time separately from `wranglerVersion`. wrangler- action already installs the pinned version and rewrites any command starting with `wrangler` to `npx wrangler ...` (no version), so dropping the inline version reuses the action-installed wrangler and removes the duplicate pin that caused this class of drift. Also update the deployment troubleshooting doc, which still stated the workflow pins 4.36.0. Assisted-by: Claude Signed-off-by: Wayne Sun <gsun@redhat.com>
|
🤖 Finished Review · ✅ Success · Started 12:38 PM UTC · Completed 12:50 PM UTC |
ReviewFindingsHigh
Low
|
|
🤖 Finished Retro · ✅ Success · Started 5:20 PM UTC · Completed 5:28 PM UTC |
Retro: PR #4102 — chore(deps): bump wrangler to 4.110.0 to match workers-types v5This PR fixed a peer dependency conflict that broke the Deploy Site workflow ~12 hours after PR #4002 merged. The review agent on #4102 performed well — it flagged the protected path without a linked issue, the unpinned wrangler in preCommands, and a stale docs reference. The human addressed all feedback in a follow-up commit. However, the root cause traces back to the review agent on PR #4002, which approved a partial dependency bump without detecting the resulting peer dependency inconsistency. Timeline
Proposals
Proposals filed
|
PR fullsend-ai#4102 changed both site-deploy.yml preCommands blocks from `npx wrangler@<version> ...` to bare `wrangler ...`, based on a review finding that wrangler-action already installs the pinned version and rewrites `wrangler`-prefixed commands to use it. That rewrite only fires when a preCommands line's full string starts with the literal "wrangler" (wrangler-action's execCommands checks command.startsWith("wrangler")). Both preCommands here are compound shell lines starting with `set -eu; ...`, so the rewrite never triggers and bare `wrangler` isn't on $PATH, failing every prod and PR-preview deploy since fullsend-ai#4102 merged with "wrangler: not found" (exit 127). Restore the explicit npx invocation in both blocks and document why it must stay explicit, so this doesn't regress again. Assisted-by: Claude Signed-off-by: Wayne Sun <gsun@redhat.com>
Summary
The Deploy Site workflow's
npm cistep has been failing since ~03:13 UTC today with an ERESOLVE peer dependency conflict. This fixes an internally inconsistent version pin inpackage.jsonleft over from #4002.Related Issue
None filed — root cause identified from the failing Deploy Site run.
Changes
package.json/package-lock.json: bumpwranglerdevDependency from^4.36.0to^4.110.0..github/workflows/site-deploy.yml: bump the twowranglerVersioninputs and the two inlinenpx wrangler@invocations inpreCommandsfrom4.36.0to4.110.0, so the wrangler-action install step stays consistent with the npm-resolved version.Root cause
#4002 bumped
@cloudflare/workers-typesfrom^4.xto^5.20260708.1inpackage.jsonto satisfy the peer requirement ofwrangler@4.110.0, which is pulled in transitively via@cloudflare/vitest-pool-workers@0.18.4. That PR did not also bump the directwranglerdevDependency, which stayed at^4.36.0— andwrangler@4.36.0's own peer dependency wants@cloudflare/workers-types@^4.x. This left the root project simultaneously requiring v4 and v5 of@cloudflare/workers-types, whichnpm cicorrectly refuses to resolve. The conflict was latent until a new@cloudflare/workers-types5.x patch published today and the floating^5.20260708.1range diverged from what was in the lockfile, turning it into a hard failure.Note: the
renovate/cloudflare-workersgrouping rule added in #4007 doesn't cover this — #4002 was a manual/agent-assisted bump that didn't go through Renovate, so the two Cloudflare packages drifted apart in the same commit despite the grouping rule.Testing
make lintpasses (staged changes first)npm cisucceeds cleanly (previously failed with ERESOLVE)npx wrangler --versionresolves to4.110.0Checklist
!for breaking changes)