Change8

miniflare@5.20260820.0-alpha

Breaking Changes
📦 cloudflare-workersView on GitHub →
2 breaking2 features🐛 1 fixes🔧 8 symbols

Summary

This release introduces raw socket support via the `connect` trigger and adds functionality for deleting Workflow instances. It also removes a deprecated testing option and updates R2 S3 credentials configuration.

⚠️ Breaking Changes

  • The deprecated `hasAssetsAndIsVitest` option has been removed.
  • R2 bindings now use `localDev.experimentalS3Credentials` instead of `s3Credentials` for local S3 endpoint credentials. Update your configuration to use the new field.

Migration Steps

  1. Update R2 local S3 credentials configuration from `s3Credentials` to `localDev.experimentalS3Credentials`.

✨ New Features

  • Added a `connect` trigger for raw sockets, allowing Workers to receive raw socket connections during `wrangler dev` via a `connect(socket, env, ctx)` handler. This requires the `experimental` compatibility flag and currently only supports TCP.
  • Added individual and batch Workflow instance deletion to the runtime and SDK. `WorkflowInstance.delete()` deletes a single instance, and `env.MY_WORKFLOW.deleteBatch(instanceIds)` can delete up to 100 instances. The `wrangler workflows instances delete` CLI command also supports remote and local deletion, including batch deletion via a JSON file.

🐛 Bug Fixes

  • Default local Analytics Engine dataset names in Miniflare: Analytics Engine dataset bindings without an explicit `name` now fallback to the worker and binding name as a default.

Affected Symbols