miniflare@4.20260630.0
📦 cloudflare-workersView on GitHub →
✨ 2 features🐛 6 fixes🔧 2 symbols
Summary
This patch updates underlying dependencies, including workerd, and introduces significant fixes and enhancements for local R2 public bucket endpoint behavior. It also adds powerful Workflow introspection capabilities to the test harness.
Migration Steps
- If testing Workflows, update test setup to use createTestHarness() and utilize the new introspection methods like worker.introspectWorkflow("WORKFLOW_NAME"), workflow.modifyAll(), and instance.waitForStatus().
✨ New Features
- Added Workflow introspection to createTestHarness(), allowing tests to disable sleeps, mock step results, and wait for Workflow outcomes via the returned Worker handle.
- Worker handles can now introspect Workflow bindings by name.
🐛 Bug Fixes
- Fixed edge cases on the local R2 public bucket endpoint (/cdn-cgi/local/r2/public) to match r2.dev: write methods are rejected with 401, malformed/multiple/inverted ranges with 400 and unsatisfiable ranges (including bytes=-0) with 416.
- Range header is now honored on HEAD requests with a bodyless 206 response.
- Content-Range header is now correct for suffix ranges.
- Object keys are now percent-decoded exactly once, meaning keys containing a literal % no longer fail.
- Objects stored without a content type are now served as application/octet-stream instead of omitting the Content-Type header.
- Unread object bodies are now cancelled (on HEAD and unsatisfiable-range responses) instead of leaking a read stream until garbage collection.