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.20240701.0
Minor Changes
7ed675e
Thanks @geelen! - Added D1 export support for local databasesPatch Changes
#6181
42a7930
Thanks @dependabot! - chore: update dependencies of "miniflare" packageThe following dependency versions have been updated:
#6127
1568c25
Thanks @DaniFoldi! - fix: Bump ws dependencywrangler@3.63.0
Minor Changes
#6167
e048958
Thanks @threepointone! - feature: alias modules in the workerSometimes, users want to replace modules with other modules. This commonly happens inside a third party dependency itself. As an example, a user might have imported
node-fetch
, which will probably never work in workerd. You can use the alias config to replace any of these imports with a module of your choice.Let's say you make a
fetch-nolyfill.js
You can then configure
wrangler.toml
like so:So any calls to
import fetch from 'node-fetch';
will simply use our nolyfilled version.You can also pass aliases in the cli (for both
dev
anddeploy
). Like:#6073
7ed675e
Thanks @geelen! - Added D1 export support for local databasesPatch Changes
#6149
35689ea
Thanks @RamIdeas! - refactor: React-free hotkeys implementation, behind the--x-dev-env
flag#6022
7951815
Thanks @CarmenPopoviciu! - fix: Fixpages dev
watch mode [Functions]The watch mode in
pages dev
for Pages Functions projects is currently partially broken, as it only watches for file system changes in the"/functions" directory, but not for changes in any of the Functions' dependencies. This means that given a Pages Function
math-is-fun.ts
, defined as follows:pages dev
will reload for any changes inmath-is-fun.ts
itself, but not for any changes inmath/add.ts
, which is its dependency.Similarly,
pages dev
will not reload for any changes in non-JS module imports, such as wasm/html/binary module imports.This commit fixes all these things, plus adds some extra polish to the
pages dev
watch mode experience.#6164
4cdad9b
Thanks @threepointone! - fix: use account id for listing zonesFixes 🐛 BUG:
account_id
is not passed to the/zones
endpoint #4944Trying to fetch
/zones
fails when it spans more than 500 zones. The fix to use an account id when doing so. This patch passes the account id to the zones call, threading it through all the functions that require it.#6180
b994604
Thanks @Skye-31! - Fix: pass env to getBindings to support reading.dev.vars.{environment}
Feat(vitest-pool-workers): Support specifying an environment in tests #5612 added support for selecting the environment of config used, but it missed passing it to the code that reads
.dev.vars.{environment}
Closes 🐛 BUG: environment option in vitest-pool-workers does not pick-up .dev.vars.{environment} #5641
#6124
d03b102
Thanks @RamIdeas! - feat:url
andinspectorUrl
properties have been exposed on the worker object returned bynew unstable_DevEnv().startWorker(options)
#6147
02dda3d
Thanks @penalosa! - refactor: React free dev registry#6127
1568c25
Thanks @DaniFoldi! - fix: Bump ws dependency#6140
4072114
Thanks @petebacondarwin! - fix: add extra error logging to auth response errors#6160
9466531
Thanks @sm-bean! - fix: removes unnecessary wrangler tail warning against resetting durable objectfixes https://jira.cfdata.org/browse/STOR-3318
#6142
9272ef5
Thanks @dario-piotrowicz! - fix: improve thegetPlatformProxy
configPath
option ts-doc comment to clarify its behaviorUpdated dependencies [
42a7930
,7ed675e
,1568c25
]:@cloudflare/pages-shared@0.11.46
Patch Changes
42a7930
,7ed675e
,1568c25
]:@cloudflare/vitest-pool-workers@0.4.8
Patch Changes
#6180
b994604
Thanks @Skye-31! - Fix: pass env to getBindings to support reading.dev.vars.{environment}
Feat(vitest-pool-workers): Support specifying an environment in tests #5612 added support for selecting the environment of config used, but it missed passing it to the code that reads
.dev.vars.{environment}
Closes 🐛 BUG: environment option in vitest-pool-workers does not pick-up .dev.vars.{environment} #5641
Updated dependencies [
42a7930
,35689ea
,e048958
,7951815
,4cdad9b
,7ed675e
,b994604
,d03b102
,02dda3d
,1568c25
,4072114
,9466531
,9272ef5
]: