Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
miniflare@3.20240403.0
Minor Changes
#5215
cd03d1d
Thanks @GregBrimble! - feature: customisable unsafe direct sockets entrypointsPreviously, Miniflare provided experimental
unsafeDirectHost
andunsafeDirectPort
options for starting an HTTP server that pointed directly to a specific Worker. This change replaces these options with a singleunsafeDirectSockets
option that accepts an array of socket objects of the form{ host?: string, port?: number, entrypoint?: string, proxy?: boolean }
.host
defaults to127.0.0.1
,port
defaults to0
,entrypoint
defaults todefault
, andproxy
defaults tofalse
. This allows you to start HTTP servers for specific entrypoints of specific Workers.proxy
controls theStyle
of the socket.Note these sockets set the
capnpConnectHost
workerd
option to"miniflare-unsafe-internal-capnp-connect"
.external
serviceBindings
will set theircapnpConnectHost
option to the same value allowing RPC over multipleMiniflare
instances. Refer to JSRPC: Support capnp-over-http for external server bindings workerd#1757 for more information.#5215
cd03d1d
Thanks @GregBrimble! - feature: support named entrypoints forserviceBindings
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 thedefault
entrypoint. With this change, you can bind to any exported entrypoint.Patch Changes
#5499
6c3be5b
Thanks @GregBrimble! - chore: Bump workerd@1.20240403.0#5215
cd03d1d
Thanks @GregBrimble! - fix: allowscript
s withoutscriptPath
s to import built-in modulesPreviously, if a string
script
option was specified withmodules: true
but without a correspondingscriptPath
, allimport
s were forbidden. This change relaxes that restriction to allow imports of built-innode:*
,cloudflare:*
andworkerd:*
modules without ascriptPath
.wrangler@3.46.0
Minor Changes
#5282
b7ddde1
Thanks @maxwellpeterson! - feature: Add source map support for WorkersAdds the
source_maps
boolean config option. When enabled, source maps included in the build output are uploaded alongside the built code modules. Uploaded source maps can then be used to remap stack traces emitted by the Workers runtime.#5215
cd03d1d
Thanks @GregBrimble! - feature: support named entrypoints in service bindingsThis change allows service bindings to bind to a named export of another Worker. As an example, consider the following Worker named
bound
:Up until now, you could only bind to the
default
entrypoint. With this change, you can bind toEntrypointA
orentrypointB
too using the newentrypoint
option:To bind to named entrypoints with
wrangler pages dev
, use the#
character:Patch Changes
#5215
cd03d1d
Thanks @GregBrimble! - fix: ensure requesturl
andcf
properties preserved across service bindingsPreviously, Wrangler could rewrite
url
andcf
properties when sending requests via service bindings or Durable Object stubs. To match production behaviour, this change ensures these properties are preserved.Updated dependencies [
cd03d1d
,6c3be5b
,cd03d1d
,cd03d1d
]:@cloudflare/pages-shared@0.11.25
Patch Changes
cd03d1d
,6c3be5b
,cd03d1d
,cd03d1d
]:@cloudflare/vitest-pool-workers@0.1.14
Patch Changes
cd03d1d
,cd03d1d
,b7ddde1
,cd03d1d
,6c3be5b
,cd03d1d
,cd03d1d
]: