NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #1829 most downloaded on npm
Fun, full-featured, fully-local simulator for Cloudflare Workers
Last release today
17 Sep 2026
Ships on a steady schedule
a new release about every 1 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
50 versions withdrawn
withdrawn after publishing
5 years old
1661 releases · first in 2021
One column per quarter.
Nothing published for this version
Nothing published for this version
The following dependency versions have been updated:
#8423 8242e07 Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20250224.0 | 1.20250310.0 |
| @cloudflare/workers-types | ^4.20250224.0 | ^4.20250310.0 |
#8390 53e6323 Thanks @GregBrimble! - Parse and apply metafiles (_headers and _redirects) in wrangler dev for Workers Assets
The following dependency versions have been updated:
#8338 2d40989 Thanks @GregBrimble! - feat: Upload _headers and _redirects if present with Workers Assets as part of wrangler deploy and wrangler versions upload.
#8251 da568e5 Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20250214.0 | 1.20250224.0 |
| @cloudflare/workers-types | ^4.20250214.0 | ^4.20250224.0 |
#8288 cf14e17 Thanks @CarmenPopoviciu! - feat: Add assets Proxy Worker skeleton in miniflare
This commit implements a very basic Proxy Worker skeleton, and wires it in the "pipeline" miniflare creates for assets. This Worker will be incrementally worked on, but for now, the current implementation will forward all incoming requests to the Router Worker, thus leaving the current assets behaviour in local dev, the same.
This is an experimental feature available under the --x-assets-rpc flag: wrangler dev --x-assets-rpc.
#8355 79c7810 Thanks @GregBrimble! - fix: Add default empty router config for assets in Miniflare
### Patch Changes - #8274 `fce642d` Thanks @emily-shen! - fix bindings to entrypoints on the same worker in workers with assets - #8289 `a4909cb` Than
### Patch Changes - #8247 `a9a4c33` Thanks @GregBrimble! - feat: Omits Content-Type header for files of an unknown extension in Workers Assets - #8239
#8247 a9a4c33 Thanks @GregBrimble! - feat: Omits Content-Type header for files of an unknown extension in Workers Assets
#8239 6cae13a Thanks @edmundhung! - fix: allow the fetchMock option to be parsed upfront before passing it to Miniflare
The following dependency versions have been updated:
#8171 5e06177 Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20250204.0 | 1.20250214.0 |
| @cloudflare/workers-types | ^4.20250204.0 | ^4.20250214.0 |
### Patch Changes - #7950 `4db1fb5` Thanks @cmackenzie1! - Add local binding support for Worker Pipelines
4db1fb5 Thanks @cmackenzie1! - Add local binding support for Worker PipelinesThe following dependency versions have been updated:
#8032 c80dbd8 Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20250129.0 | 1.20250204.0 |
| @cloudflare/workers-types | ^4.20250129.0 | ^4.20250204.0 |
#7290 0c0374c Thanks @emily-shen! - fix: add support for workers with assets when running multiple workers in one wrangler dev instance
https://github.com/cloudflare/workers-sdk/pull/7251 added support for running multiple Workers in one wrangler dev/miniflare session. e.g. wrangler dev -c wrangler.toml -c ../worker2/wrangler.toml, which among other things, allowed cross-service RPC to Durable Objects.
However this did not work in the same way as production when there was a Worker with assets - this PR should fix that.
The following dependency versions have been updated:
#7971 ab49886 Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20250124.0 | 1.20250129.0 |
| @cloudflare/workers-types | ^4.20250121.0 | ^4.20250129.0 |
### Patch Changes - #7788 `cf4f47a` Thanks @penalosa! - Switch to capnp-es over capnp-ts
The following dependency versions have been updated:
#7890 40f89a9 Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20241230.0 | 1.20250124.0 |
| @cloudflare/workers-types | ^4.20241230.0 | ^4.20250121.0 |
### Patch Changes - #7738 `8e9aa40` Thanks @penalosa! - Use TEXT bindings for plain text values in Miniflare. This is an internal detail that should h
### Minor Changes - #7702 `78bdec5` Thanks @penalosa! - Support the CF-Connecting-IP header, which will be available in your Worker to determine the I
78bdec5 Thanks @penalosa! - Support the CF-Connecting-IP header, which will be available in your Worker to determine the IP address of the client that initiated a request.2c76887 Thanks @lambrospetrou! - Fix D1 exports to properly pad HEX strings for binary values.The following dependency versions have been updated:
#7652 b4e0af1 Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20241218.0 | 1.20241230.0 |
| @cloudflare/workers-types | ^4.20241218.0 | ^4.20241230.0 |
The following dependency versions have been updated:
#7589 1488e11 Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20241205.0 | 1.20241218.0 |
| @cloudflare/workers-types | ^4.20241205.0 | ^4.20241218.0 |
#7575 7216835 Thanks @LuisDuarte1! - Make Instance.status() return type the same as production
The following dependency versions have been updated:
#7464 21a9e24 Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20241106.2 | 1.20241205.0 |
| @cloudflare/workers-types | ^4.20241106.0 | ^4.20241205.0 |
The following dependency versions have been updated:
#7418 ac87395 Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20241106.1 | 1.20241106.2 |
| @cloudflare/workers-types | ^4.20241106.0 | ^4.20241106.0 |
#7399 b3d2e7d Thanks @emily-shen! - fix: update queues max_batch_timeout limit from 30s to 60s
### Minor Changes - #7286 `563439b` Thanks @LuisDuarte1! - Add proper engine persistance in .wrangler and fix multiple workflows in miniflare
563439b Thanks @LuisDuarte1! - Add proper engine persistance in .wrangler and fix multiple workflows in miniflareThe following dependency versions have been updated:
#7187 1db7846 Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20241022.0 | 1.20241106.1 |
| @cloudflare/workers-types | ^4.20241022.0 | ^4.20241106.0 |
The following dependency versions have been updated:
#7066 760e43f Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20241018.1 | 1.20241022.0 |
| @cloudflare/workers-types | ^4.20241018.0 | ^4.20241022.0 |
#7045 5ef6231 Thanks @RamIdeas! - Add preliminary support for Workflows in wrangler dev
The following dependency versions have been updated:
#7035 809193e Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20241011.1 | 1.20241018.1 |
| @cloudflare/workers-types | ^4.20241011.0 | ^4.20241018.0 |
The following dependency versions have been updated:
#6961 5761020 Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20241004.0 | 1.20241011.1 |
| @cloudflare/workers-types | ^4.20241004.0 | ^4.20241011.0 |
#6943 7859a04 Thanks @sdnts! - fix: local queues now respect consumer max delays and retry delays properly
The following dependency versions have been updated:
#6949 c863183 Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20240925.0 | 1.20241004.0 |
| @cloudflare/workers-types | ^4.20240925.0 | ^4.20241004.0 |
Renamed path -> directory, bindingName -> binding.
#6835 5c50949 Thanks @emily-shen! - fix: rename asset plugin options slightly to match wrangler.toml better
Renamed path -> directory, bindingName -> binding.
The following dependency versions have been updated:
#6826 5e2e62c Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20240909.0 | 1.20240925.0 |
| @cloudflare/workers-types | ^4.20240909.0 | ^4.20240925.0 |
#6824 1c58a74 Thanks @petebacondarwin! - fix: teach Miniflare about node_compat version date switch
A compatibility of Sept 23, 2024 or later means that nodejs_compat is equivalent to nodejs_compat_v2.
Some characters like [ ] @ are encoded by encodeURIComponent() but are often requested at an unencoded URL path. This change will make assets with fil
#6728 1ca313f Thanks @emily-shen! - fix: remove filepath encoding on asset upload and handle sometimes-encoded characters
Some characters like [ ] @ are encoded by encodeURIComponent() but are often requested at an unencoded URL path. This change will make assets with filenames with these characters accessible at both the encoded and unencoded paths, but to use the encoded path as the canonical one, and to redirect requests to the canonical path if necessary.
### Patch Changes - #6736 `2ddbb65` Thanks @emily-shen! - fix: reflect file changes when using dev with workers + assets
2ddbb65 Thanks @emily-shen! - fix: reflect file changes when using dev with workers + assetsPR #5570 introduced a regression in Miniflare, namely that declaring Queue Producers like queueProducers: { "MY_QUEUE": "my-queue" } no longer works.
#6514 2407c41 Thanks @CarmenPopoviciu! - fix: Fix Miniflare regression introduced in #5570
PR #5570 introduced a regression in Miniflare, namely that declaring Queue Producers like queueProducers: { "MY_QUEUE": "my-queue" } no longer works. This commit fixes the issue.
Fixes #5908
### Patch Changes - #6719 `5b5dd95` Thanks @sdnts! - fix: Respect delivery delays for Queue consumers in local dev mode
### Minor Changes - #6647 `d68e8c9` Thanks @joshthoward! - feat: Configure SQLite backed Durable Objects in local dev
d68e8c9 Thanks @joshthoward! - feat: Configure SQLite backed Durable Objects in local devThe following dependency versions have been updated:
#6673 3f5b934 Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20240821.1 | 1.20240909.0 |
| @cloudflare/workers-types | ^4.20240821.1 | ^4.20240909.0 |
Note: the returned binding values are no-op/passthrough that can be used inside node.js, meaning that besides direct connections via the connect metho
#6627 5936282 Thanks @GregBrimble! - fix: Fixes max asset count error message to properly report count of assets
#6612 6471090 Thanks @dario-piotrowicz! - fix: add hyperdrive bindings support in getBindings
Note: the returned binding values are no-op/passthrough that can be used inside node.js, meaning
that besides direct connections via the connect methods, all the other values point to the
same db connection specified in the user configuration
New miniflare plugin for Workers + Assets, with relevant services imported from workers-shared.
#6564 e8975a9 Thanks @emily-shen! - feat: add assets plugin to miniflare
New miniflare plugin for Workers + Assets, with relevant services imported from workers-shared.
The following dependency versions have been updated:
#6555 b0e2f0b Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20240806.0 | 1.20240821.1 |
| @cloudflare/workers-types | ^4.20240806.0 | ^4.20240821.1 |
This commit extends Miniflare's KV plugin's behaviour to support Workers assets, and therefore enables the emulation of Workers with assets in local d
#6403 00f340f Thanks @CarmenPopoviciu! - feat: Extend KV plugin behaviour to support Workers assets
This commit extends Miniflare's KV plugin's behaviour to support Workers assets, and therefore enables the emulation of Workers with assets in local development.
The following dependency versions have been updated:
#6438 d55eeca Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20240725.0 | 1.20240806.0 |
| @cloudflare/workers-types | ^4.20240725.0 | ^4.20240806.0 |
The following dependency versions have been updated:
#6345 a9021aa Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20240718.0 | 1.20240725.0 |
| @cloudflare/workers-types | ^4.20240718.0 | ^4.20240725.0 |
#6301 44ad2c7 Thanks @dario-piotrowicz! - fix: Allow the magic proxy to proxy objects containing functions indexed by symbols
In https://github.com/cloudflare/workers-sdk/pull/5670 we introduced the possibility of the magic proxy to handle object containing functions, the implementation didn't account for functions being indexed by symbols, address such issue
### Patch Changes - #6342 `b3c3cb8` Thanks @petebacondarwin! - fix Miniflare (workerd) network settings to allow 240.0.0.0 range
b3c3cb8 Thanks @petebacondarwin! - fix Miniflare (workerd) network settings to allow 240.0.0.0 rangeThe following dependency versions have been updated:
#6294 779c713 Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20240712.0 | 1.20240718.0 |
| @cloudflare/workers-types | ^4.20240712.0 | ^4.20240718.0 |
The following dependency versions have been updated:
#6265 0d32448 Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20240701.0 | 1.20240712.0 |
| @cloudflare/workers-types | ^4.20240620.0 | ^4.20240712.0 |
The following dependency versions have been updated:
#6181 42a7930 Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20240620.1 | 1.20240701.0 |
#6127 1568c25 Thanks @DaniFoldi! - fix: Bump ws dependency
The following dependency versions have been updated:
#6110 7d02856 Thanks @CarmenPopoviciu! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20240610.1 | 1.20240620.1 |
| @cloudflare/workers-types | ^4.20240605.0 | ^4.20240620.0 |
This is the last of the patches that normalize dependencies across the codebase. In this batch: ws, vitest, zod , rimraf, @types/rimraf, ava, source-m
#6050 a0c3327 Thanks @threepointone! - chore: Normalize more deps
This is the last of the patches that normalize dependencies across the codebase. In this batch: ws, vitest, zod , rimraf, @types/rimraf, ava, source-map, glob, cookie, @types/cookie, @microsoft/api-extractor, @types/mime, @types/yargs, devtools-protocol, @vitest/ui, execa, strip-ansi
This patch also sorts dependencies in every package.json
#6029 f5ad1d3 Thanks @threepointone! - chore: Normalize some dependencies in workers-sdk
This is the first of a few expected patches that normalize dependency versions, This normalizes undici, concurrently, @types/node, react, react-dom, @types/react, @types/react-dom, eslint, typescript. There are no functional code changes (but there are a couple of typecheck fixes).
#6058 31cd51f Thanks @threepointone! - chore: Quieter builds
This patch cleans up warnings we were seeing when doing a full build. Specifically:
@microsoft/api-extractor so it didn't complain that it didn't match the typescript version (that we'd recently upgraded)wrangler. We'll need to fix those, but we'll do that when we work on unstable_dev etc.The following dependency versions have been updated:
#6024 c4146fc Thanks @petebacondarwin! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20240605.0 | 1.20240610.1 |
The following dependency versions have been updated:
#5961 ab95473 Thanks @CarmenPopoviciu! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20240524.0 | 1.20240605.0 |
| @cloudflare/workers-types | ^4.20240524.0 | ^4.20240605.0 |
Previously functions returning functions would not be handled by the magic proxy, the changes here enable the above, allowing for code such as the fol
#5922 bdbb7f8 Thanks @dario-piotrowicz! - fix: Allow the magic proxy to handle functions returning functions
Previously functions returning functions would not be handled by the magic proxy, the changes here enable the above, allowing for code such as the following:
const mf = new Miniflare(/* ... */);
const { functionsFactory } = await mf.getBindings<Env>();
const fn = functionsFactory.getFunction();
const functionResult = fn();
This also works with the native workers RPC mechanism, allowing users to return functions in their RPC code.
### Patch Changes - #5921 `e0e7725` Thanks @dario-piotrowicz! - docs: add configuration section with local workerd linking to main readme
e0e7725 Thanks @dario-piotrowicz! - docs: add configuration section with local workerd linking to main readmeProperly handle the resultsFormat query that workerd sends. This partially fixes the JOIN bug and makes the behaviour of raw consistent with the worke
#5917 64ccdd6 Thanks @kossnocorp! - fix: D1's JOIN behaviour when selecting columns with the same name.
Properly handle the resultsFormat query that workerd sends. This partially fixes the JOIN bug and makes the behaviour of raw consistent with the workerd behaviour.
#5931 4458a9e Thanks @CarmenPopoviciu! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20240512.0 | 1.20240524.0 |
| @cloudflare/workers-types | ^4.20240512.0 | ^4.20240524.0 |
The following dependency versions have been updated:
#5827 0725f6f Thanks @petebacondarwin! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20240419.0 | 1.20240512.0 |
| @cloudflare/workers-types | ^4.20240419.0 | ^4.20240512.0 |
#5798 89b6d7f Thanks @RamIdeas! - fix: update miniflare's response compression to act more like Cloudflare platform
This change updates the miniflare's queue broker to support delayed delivery of messages, both when sending the message from a producer and when retry
#5570 66bdad0 Thanks @sesteves! - feature: support delayed delivery in the miniflare's queue simulator.
This change updates the miniflare's queue broker to support delayed delivery of messages, both when sending the message from a producer and when retrying the message from a consumer.
#5670 9b4af8a Thanks @dario-piotrowicz! - fix: Allow the magic proxy to proxy objects containing functions
This was previously prevented but this change removes that restriction.
The following dependency versions have been updated:
#5682 3a0d735 Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20240405.0 | 1.20240419.0 |
| @cloudflare/workers-types | ^4.20240405.0 | ^4.20240419.0 |
#5482 1b7739e Thanks @DaniFoldi! - docs: show new Discord url everywhere for consistency. The old URL still works, but https://discord.cloudflare.com is preferred.
currently Miniflare#getBindings() does not return proxies to provided wrappedBindings, make sure that appropriate proxies are instead returned
#5599 c9f081a Thanks @penalosa! - fix: add support for wrapped bindings in magic proxy
currently Miniflare#getBindings() does not return proxies to provided wrappedBindings, make sure that appropriate proxies are instead returned
Example:
import { Miniflare } from "miniflare";
const mf = new Miniflare({
workers: [
{
wrappedBindings: {
Greeter: {
scriptName: "impl",
},
},
modules: true,
script: `export default { fetch(){ return new Response(''); } }`,
},
{
modules: true,
name: "impl",
script: `
class Greeter {
sayHello(name) {
return "Hello " + name;
}
}
export default function (env) {
return new Greeter();
}
`,
},
],
});
const { Greeter } = await mf.getBindings();
console.log(Greeter.sayHello("world")); // <--- prints 'Hello world'
await mf.dispose();
#5599 c9f081a Thanks @penalosa! - fix: add support for RPC in magic proxy
currently Miniflare#getBindings() does not return valid proxies to provided serviceBindings using RPC, make sure that appropriate proxies are instead returned
Example:
import { Miniflare } from "miniflare";
const mf = new Miniflare({
workers: [
{
modules: true,
script: `export default { fetch() { return new Response(''); } }`,
serviceBindings: {
SUM: {
name: "sum-worker",
entrypoint: "SumEntrypoint",
},
},
},
{
modules: true,
name: "sum-worker",
script: `
import { WorkerEntrypoint } from 'cloudflare:workers';
export default { fetch() { return new Response(''); } }
export class SumEntrypoint extends WorkerEntrypoint {
sum(args) {
return args.reduce((a, b) => a + b);
}
}
`,
},
],
});
const { SUM } = await mf.getBindings();
const numbers = [1, 2, 3];
console.log(`The sum of ${numbers.join(", ")} is ${await SUM.sum(numbers)}`); // <--- prints 'The sum of 1, 2, 3 is 6'
await mf.dispose();
Previously, Miniflare would pass through the incoming Accept-Encoding header to your Worker code. This change ensures this header is always set to Acc
#5409 08b4908 Thanks @mrbbot! - feature: respect incoming Accept-Encoding header and ensure Accept-Encoding/request.cf.clientAcceptEncoding set correctly
Previously, Miniflare would pass through the incoming Accept-Encoding header to your Worker code. This change ensures this header is always set to Accept-Encoding: br, gzip for incoming requests to your Worker. The original value of Accept-Encoding will be stored in request.cf.clientAcceptEncoding. This matches deployed behaviour.
Fixes #5246
The following dependency versions have been updated:
#5554 9575a51 Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20240404.0 | 1.20240405.0 |
| @cloudflare/workers-types | ^4.20240404.0 | ^4.20240405.0 |
The following dependency versions have been updated:
#5520 9f15ce1 Thanks @dependabot! - chore: update dependencies of "miniflare" package
The following dependency versions have been updated:
| Dependency | From | To |
|---|---|---|
| workerd | 1.20240403.0 | 1.20240404.0 |
| @cloudflare/workers-types | ^4.20240329.0 | ^4.20240404.0 |
Previously, Miniflare provided experimental unsafeDirectHost and unsafeDirectPort options for starting an HTTP server that pointed directly to a speci
#5215 cd03d1d Thanks @GregBrimble! - feature: customisable unsafe direct sockets entrypoints
Previously, Miniflare provided experimental unsafeDirectHost and unsafeDirectPort options for starting an HTTP server that pointed directly to a specific Worker. This change replaces these options with a single unsafeDirectSockets option that accepts an array of socket objects of the form { host?: string, port?: number, entrypoint?: string, proxy?: boolean }. host defaults to 127.0.0.1, port defaults to 0, entrypoint defaults to default, and proxy defaults to false. This allows you to start HTTP servers for specific entrypoints of specific Workers. proxy controls the Style of the socket.
Note these sockets set the capnpConnectHost workerd option to "miniflare-unsafe-internal-capnp-connect". external serviceBindings will set their capnpConnectHost option to the same value allowing RPC over multiple Miniflare instances. Refer to https://github.com/cloudflare/workerd/pull/1757 for more information.
#5215 cd03d1d Thanks @GregBrimble! - feature: support named entrypoints for serviceBindings
This change allows service bindings to bind to a named export of another Worker using designators of the form { name: string | typeof kCurrentWorker, entrypoint?: string }. Previously, you could only bind to the default entrypoint. With this change, you can bind to any exported entrypoint.
import { kCurrentWorker, Miniflare } from "miniflare";
const mf = new Miniflare({
workers: [
{
name: "a",
serviceBindings: {
A_RPC_SERVICE: { name: kCurrentWorker, entrypoint: "RpcEntrypoint" },
A_NAMED_SERVICE: { name: "a", entrypoint: "namedEntrypoint" },
B_NAMED_SERVICE: { name: "b", entrypoint: "anotherNamedEntrypoint" },
},
compatibilityFlags: ["rpc"],
modules: true,
script: `
import { WorkerEntrypoint } from "cloudflare:workers";
export class RpcEntrypoint extends WorkerEntrypoint {
ping() { return "a:rpc:pong"; }
}
export const namedEntrypoint = {
fetch(request, env, ctx) { return new Response("a:named:pong"); }
};
...
`,
},
{
name: "b",
modules: true,
script: `
export const anotherNamedEntrypoint = {
fetch(request, env, ctx) { return new Response("b:named:pong"); }
};
`,
},
],
});
#5499 6c3be5b Thanks @GregBrimble! - chore: Bump workerd@1.20240403.0
#5215 cd03d1d Thanks @GregBrimble! - fix: allow scripts without scriptPaths to import built-in modules
Previously, if a string script option was specified with modules: true but without a corresponding scriptPath, all imports were forbidden. This change relaxes that restriction to allow imports of built-in node:*, cloudflare:* and workerd:* modules without a scriptPath.
Currently trying to read multiple R2 streams in parallel (via Promise.all for example) leads to deadlock which prevents any of the target streams from
#5491 940ad89 Thanks @dario-piotrowicz! - fix: make sure the magic proxy can handle multiple parallel r2 stream reads
Currently trying to read multiple R2 streams in parallel (via Promise.all for example) leads to deadlock which prevents any of the target streams from being read. This is caused by the underlying implementation only allowing a single HTTP connection to the Workers runtime at a time. This change fixes the issue by allowing multiple parallel HTTP connections.
### Minor Changes - #5455 `d994066` Thanks @mrbbot! - chore: bump workerd to `1.20240329.0`
d994066 Thanks @mrbbot! - chore: bump workerd to 1.20240329.0### Minor Changes - #5258 `fbdca7d` Thanks @OilyLime! - feature: URL decode components of the Hyperdrive config connection string
Your coding agent can read these notes before it upgrades. Set up the MCP server →