Conversation
e80bc03 to
96b730f
Compare
96b730f to
b28b30b
Compare
b28b30b to
39608b5
Compare
threepointone
approved these changes
May 3, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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@0.0.28
Patch Changes
#843
da12cc5Thanks @threepointone! - fix:site.entry-pointis no longer a hard deprecationTo make migration of v1 projects easier, Sites projects should still work, including the
entry-pointfield (which currently errors out). This enablessite.entry-pointas a valid entry point, with a deprecation warning.#848
0a79d75Thanks @petebacondarwin! - polish: improve consistency of warnings and errorsRelated to Improve and standardize output to stderr #377
#877
97f945fThanks @caass! - Treat the "name" parameter inwrangler initas a path.This means that running
wrangler init .will create a worker in the current directory,and the worker's name will be the name of the current directory.
You can also run
wrangler init path/to/my-workerand a worker will be created at[CWD]/path/to/my-workerwith the namemy-worker,#851
277b254Thanks @threepointone! - polish: do not log the error object when refreshing a token failsWe handle the error anyway (by doing a fresh login) which has its own logging and messaging. In the future we should add a DEBUG mode that logs all requests/errors/warnings, but that's for later.
#869
f1423bfThanks @threepointone! - feat: experimental--node-compat/config.node_compatThis adds an experimental node.js compatibility mode. It can be enabled by adding
node_compat = trueinwrangler.toml, or by passing--node-compatas a command line arg fordev/publishcommands. This is currently powered by@esbuild-plugins/node-globals-polyfill(which in itself is powered byrollup-plugin-node-polyfills).We'd previously added this, and then removed it because the quality of the polyfills isn't great. We're reintroducing it regardless so we can start getting feedback on its usage, and it sets up a foundation for replacing it with our own, hopefully better maintained polyfills.
Of particular note, this means that what we promised in https://blog.cloudflare.com/announcing-stripe-support-in-workers/ now actually works.
This patch also addresses some dependency issues, specifically leftover entries in package-lock.json.
#790
331c659Thanks @sidharthachatterjee! - feature: Adds 'wrangler pages publish' (alias 'wrangler pages deployment create') command.#866
8b227fcThanks @caass! - Add a runtime check forwrangler devlocal mode to avoid erroring in environments with noAsyncLocalStorageclassCertain runtime APIs are only available to workers during the "request context",
which is any code that returns after receiving a request and before returning
a response.
Miniflare emulates this behavior by using an
AsyncLocalStorageandchecking at runtime
to see if you're using those APIs during the request context.
In certain environments
AsyncLocalStorageis unavailable, such as in awebcontainer.
This function figures out if we're able to run those "request context" checks
and returns a set of options
that indicate to miniflare whether to run the checks or not.
#829
f08aac5Thanks @JacobMGEvans! - feat: Add validation to thenamefield in configuration.The validation will warn users that the field can only be "type string,
alphanumeric, underscores, and lowercase with dashes only" using the same RegEx as the backend
resolves 🐛 BUG: wrangler throws a ParseError when script name contains uppercase characters in wrangler.toml #795 bug: invalid worker names shouldn't be allowed #775
#868
6ecb1c1Thanks @threepointone! - feat: implement service environments + durable objectsNow that the APIs for getting migrations tags of services works as expected, this lands support for publishing durable objects to service environments, including migrations. It also removes the error we used to throw when attempting to use service envs + durable objects.
Fixes feat: Implement durable objects + service environments #739
jest-environment-wrangler@0.0.28