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.29
Patch Changes
#897
d0801b7
Thanks @threepointone! - polish: tweak the message when.dev.vars
is usedThis tweaks the mssage when a
.dev.vars
file is used so that it doesn't imply that the user has to copy the values from it into theirwrangler.toml
.#880
aad1418
Thanks @GregBrimble! - fix: Stop unnecessarily amalgamating duplicate headers in Pages FunctionsPreviously,
set-cookie
multiple headers would be combined because of unexpected behavior in the spec.#892
b08676a
Thanks @GregBrimble! - fix: Adds the leading slash to Pages deployment manifests that the API expects, and fixes manifest generation on Windows machines.#852
6283ad5
Thanks @JacobMGEvans! - feat: non-TTY check for required variablesAdded a check in non-TTY environments for
account_id
,CLOUDFLARE_ACCOUNT_ID
andCLOUDFLARE_API_TOKEN
. Ifaccount_id
exists inwrangler.toml
then
CLOUDFLARE_ACCOUNT_ID
is not needed in non-TTY scope. TheCLOUDFLARE_API_TOKEN
is necessary in non-TTY scope and will always error if missing.resolves Throw an error if running inside github actions without
CLOUDFLARE_API_TOKEN
#827#893
5bf17ca
Thanks @petebacondarwin! - fix: remove bold font from additional lines of warnings and errorsPreviously, when a warning or error was logged, the entire message
was formatted in bold font. This change makes only the first line of
the message bold, and the rest is formatted with a normal font.
#894
57c1354
Thanks @threepointone! - polish: s/DO NOT USE THIS/ IgnoredFollowup to polish: s/DEPRECATION/Deprecation #888, this replaces some more scary capitals with a more chill word.
#893
5bf17ca
Thanks @petebacondarwin! - fix: add bold to theDeprecated
warning title#882
1ad7570
Thanks @petebacondarwin! - feat: add support for reading build time env variables from a.env
fileThis change will automatically load up a
.env
file, if found, and apply itsvalues to the current environment. An example would be to provide a specific
CLOUDFLARE_ACCOUNT_ID value.
Related to Support .env via miniflare #190
#887
2bb4d30
Thanks @threepointone! - polish: accept Enter as a valid key in confirm dialogsInstead of logging "Unrecognised input" when hitting return/enter in a confirm dialog, we should accept it as a confirmation. This patch also makes the default choice "y" bold in the dialog.
#891
bae5ba4
Thanks @GregBrimble! - feat: Adds interactive prompts for the 'wrangler pages publish' and related commands.Additionally, those commands now read from
node_modules/.cache/wrangler/pages.json
to persist users' account IDs and project names.#888
b77aa38
Thanks @threepointone! - polish: s/DEPRECATION/DeprecationThis removes the scary uppercase from DEPRECATION warnings. It also moves the service environment usage warning into
diagnostics
instead of logging it directly.#879
f694313
Thanks @petebacondarwin! - feat: readvars
overrides from a local file forwrangler dev
The
vars
bindings can be specified in thewrangler.toml
configuration file.But "secret"
vars
are usually only provided at the server -either by creating them in the Dashboard UI, or using the
wrangler secret
command.It is useful during development, to provide these types of variable locally.
When running
wrangler dev
we will look for a file called.dev.vars
, situatednext to the
wrangler.toml
file (or in the current working directory if there is nowrangler.toml
). Any values in this file, formatted like adotenv
file, will add toor override
vars
bindings provided in thewrangler.toml
.Related to Support .env via miniflare #190
jest-environment-wrangler@0.0.29