Repository navigation
Update cloudflare worker toolchain - #496
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
12cb1d6 to
fdfd9d7
Compare
Code reviewOne issue found. It blocks merging. Stale worker types. This PR only changes CLAUDE.md (wrangler bump section) says a wrangler-only bump that touches no binding still needs a regen. Fix: run I checked the rest of the lockfile diff for CLAUDE.md compliance. There is no 🤖 Generated with Claude Code |
b9ce3d9 to
2a1905f
Compare
2a1905f to
11686c4
Compare
wrangler 4.152.0 moves workerd from 1.20261012.1 to 1.20261019.1, and `wrangler types --check` compares that version, so `types:check` failed inside `preview:test`. Ran `pnpm run types:sync` (wrangler types plus the formatter pass); it changed only worker-configuration.d.ts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M81qTt1aXVa5WKUpHb1i4z
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. Automated Renovate bump (lockfile plus regenerated worker types). The lockfile resolves a single 🤖 Generated with Claude Code |
This PR contains the following updates:
1.4.4→1.4.74.151.1→4.152.0Regenerate the worker types on this branch BEFORE merging - this PR cannot go green without it. A wrangler bump moves
workerd, andwrangler types --checkcompares that version as well as the config hash, sotypes:checkfails insidepreview:testinside the requiredverifycheck. Runpnpm run types:syncand commit the result. That script iswrangler types && vp check --fixtogether, and the formatter half is not optional - a rawwrangler typesburies the real one-line change in a whole-file whitespace diff (25,411 lines vs 1, measured on #169).Release Notes
cloudflare/workers-sdk (@cloudflare/vitest-plugin)
v1.4.7Patch Changes
80a9f96,08f22d3,2878645,a4eb57d,182d6de]:v1.4.6Compare Source
Patch Changes
#15708
3464abcThanks @samstarling! - Dispose Workflow step results and introspection modifiers after useRelease RPC resources deterministically during local Workflow execution and introspection. This prevents undisposed RPC warnings and requests being cancelled after their execution context has ended. Live step results retain their original data shape, including typed-array offsets and backing buffers. Callbacks that finish after a step times out also release their results, cancelling unused streams without delaying retries.
Disposing an introspector still aborts the instance if modifier acquisition failed, without introducing a teardown error. Non-stream results containing function-valued array properties are rejected according to the serialisable-output contract, instead of silently discarding those properties during storage normalisation.
#15846
a88cac4Thanks @oddharsh! - Fail with an error instead of hanging when local dev requests can't work under BunBun's
fetch()ignores the undicidispatcherthat Miniflare routes requests through (oven-sh/bun#39247). Under Bun,createTestHarness()'sserver.fetch()andserver.getWorker()'sfetch(),email()andscheduled()now throw aUserError, requests to the dev server URL get a 503 naming the cause, and starting remote bindings throws aUserError. Each of these used to hang with no error.server.getWorker().getEnv()andgetExport()keep working under Bun.Updated dependencies [
4508172,61fc739,3464abc,a88cac4,262021d]:v1.4.5Compare Source
Patch Changes
#16135
329d757Thanks @Zyles! - Fix test runs slowing down file after file, and stalling, withisolate: falseWith
isolate: false, Vitest hands a worker's module runner to the pool again for every test file the worker runs, and the pool wrapped the runner's module fetches in one more layer each time, so imports got slower with every file until runs stalled. The pool now patches each module runner once.Updated dependencies [
37ab91c,0ae7926]:cloudflare/workers-sdk (wrangler)
v4.152.0Minor Changes
#14900
08f22d3Thanks @mack-erel! - Support remote Hyperdrive bindings in local development{ "hyperdrive": [ { "binding": "HYPERDRIVE", "id": "<your-hyperdrive-id>", "remote": true } ] }#16357
182d6deThanks @Naapperas! - Add ajurisdictionsetting to WorkflowsA Workflow defined by the Worker can now set the jurisdiction that its instances run and store their data in, on either a
workflowsbinding or aworkflowexport:{ "workflows": [ { "binding": "MY_WORKFLOW", "name": "my-workflow", "class_name": "MyWorkflow", "jurisdiction": "eu" } ] }The accepted values are
eu,fedramp, andus.wrangler deployandwrangler triggers deploysend the jurisdiction when they create or update the Workflow. A Workflow's jurisdiction is set when it is created and cannot be changed afterwards, sowrangler deployandwrangler versions uploadstop before uploading when an existing Workflow has a different jurisdiction from the configured one. Leavingjurisdictionout keeps the Workflow's existing jurisdiction.@cloudflare/configadds the setting toexports.workflow(),cf migratecarries it over, andwrangler workflows describeprints it. Local development ignores it.Patch Changes
#16388
80a9f96Thanks @DevVettel! - Printwrangler auth token --jsonoutput regardless ofWRANGLER_LOGPreviously the JSON was written through the normal log channel, so setting
WRANGLER_LOGtowarn,errorornonemade the command exit successfully with empty stdout. Tools that parse this output, such as the OpenNext Cloudflare adapter in CI, then failed to find any credentials. The JSON is now always printed, like other--jsoncommands.#16361
2878645Thanks @GrosserNL! - Report the R2 bucket location returned by the API when creating a bucketwrangler r2 bucket create --locationprinted the requested location hint even when R2 ignored it. Recreating a deleted bucket name keeps the original location, so the success message could claim a placement the bucket does not have. The command now uses the location from the create response: it mentions the hint only when that location matches, and otherwise reports the location R2 actually applied.Updated dependencies [
08f22d3,a4eb57d]:v4.151.3Compare Source
Patch Changes
#15611
4508172Thanks @taylorlee! - Allowwrangler devto start module Workers without a default exportPreviously,
wrangler devfailed to start module Workers that exported only named entrypoints, such as RPC services, unless an unused default export was added. These Workers now start normally in local development without that workaround.#16370
61fc739Thanks @WalshyDev! - Fetch the remote config diff from the configured compliance regionWhen a Worker was last deployed from the dashboard,
wrangler deployandwrangler versions uploaddownload its remote configuration to compare with the local one. These requests ignored thecompliance_regionfield in the Wrangler configuration file and only honoured theCLOUDFLARE_COMPLIANCE_REGIONenvironment variable. A FedRAMP High Worker configured through the config file would send them toapi.cloudflare.cominstead ofapi.fed.cloudflare.com, and the deploy would fail with authentication errors. They now use the same compliance region as the rest of the deploy.#15846
a88cac4Thanks @oddharsh! - Fail with an error instead of hanging when local dev requests can't work under BunBun's
fetch()ignores the undicidispatcherthat Miniflare routes requests through (oven-sh/bun#39247). Under Bun,createTestHarness()'sserver.fetch()andserver.getWorker()'sfetch(),email()andscheduled()now throw aUserError, requests to the dev server URL get a 503 naming the cause, and starting remote bindings throws aUserError. Each of these used to hang with no error.server.getWorker().getEnv()andgetExport()keep working under Bun.#16359
262021dThanks @tw4! - Stop--strictdeploys and version uploads from aborting when the API omits optional binding fieldsPreviously,
wrangler deploy --strictandwrangler versions upload --strictcould report a destructive change for an unchanged configuration, for example an R2 bucket in the default jurisdiction, because a field the API left out was compared as removed. Missing and unset optional fields are now treated as equal, so these commands proceed when the local configuration matches the deployed Worker.Updated dependencies [
3464abc]:v4.151.2Compare Source
Patch Changes
#16307
37ab91cThanks @dependabot! - Update dependencies of "miniflare", "wrangler"The following dependency versions have been updated:
#16352
0ae7926Thanks @dependabot! - Update dependencies of "miniflare", "wrangler"The following dependency versions have been updated:
Updated dependencies [
37ab91c,0ae7926]:Configuration
📅 Schedule: (in timezone America/Los_Angeles)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.