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
wrangler@2.8.1
Patch Changes
#2501
a0e5a491
Thanks @geelen! - fix: make it possible to query d1 databases from durable objectsThis PR makes it possible to access D1 from Durable Objects.
To be able to query D1 from your Durable Object, you'll need to install the latest version of wrangler, and redeploy your Worker.
For a D1 binding like:
You'll be able to access your D1 database via
env.DB
in your Durable Object.#2280
ef110923
Thanks @penalosa! - Supportqueue
andtrace
events in module middleware. This means thatqueue
andtrace
events should work properly with the--test-scheduled
flag#2526
69d379a4
Thanks @jrf0110! - Adds unstable_pages module to JS API#2558
b910f644
Thanks @caass! - Add metrics for deployments#2554
fbeaf609
Thanks @CarmenPopoviciu! - feat: Add support for wasm module imports inwrangler pages dev
Currently it is not possible to import
wasm
modules in either PagesFunctions or Pages Advanced Mode projects.
This commit caries out work to address the aforementioned issue by
enabling
wasm
module imports inwrangler pages dev
. As a result,Pages users can now import their
wasm
modules withing their Functionsor
_worker.js
files, andwrangler pages dev
will correctly bundleeverything and serve these "external" modules.
#2563
5ba39569
Thanks @CarmenPopoviciu! - fix: Copy module imports related files to outdirWhen we bundle a Worker
esbuild
takes care of writing theresults to the output directory. However, if the Worker contains
any
external
imports, such as text/wasm/binary module imports,that cannot be inlined into the same bundle file,
bundleWorker
will not copy these files to the output directory. This doesn't
affect
wrangler publish
per se, because of how the Workerupload FormData is created. It does however create some
inconsistencies when running
wrangler publish --outdir
orwrangler publish --outdir --dry-run
, in that,outdir
willnot contain those external import files.
This commit addresses this issue by making sure the aforementioned
files do get copied over to
outdir
together withesbuild
'sresulting bundle files.