-
Notifications
You must be signed in to change notification settings - Fork 758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version Packages #7692
Version Packages #7692
Conversation
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12698490950/npm-package-wrangler-7692 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/7692/npm-package-wrangler-7692 Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12698490950/npm-package-wrangler-7692 dev path/to/script.js Additional artifacts:wget https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12698490950/npm-package-cloudflare-workers-bindings-extension-7692 -O ./cloudflare-workers-bindings-extension.0.0.0-v7520cdc5a.vsix && code --install-extension ./cloudflare-workers-bindings-extension.0.0.0-v7520cdc5a.vsix npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12698490950/npm-package-create-cloudflare-7692 --no-auto-update npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12698490950/npm-package-cloudflare-kv-asset-handler-7692 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12698490950/npm-package-miniflare-7692 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12698490950/npm-package-cloudflare-pages-shared-7692 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12698490950/npm-package-cloudflare-unenv-preset-7692 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12698490950/npm-package-cloudflare-vitest-pool-workers-7692 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12698490950/npm-package-cloudflare-workers-editor-shared-7692 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12698490950/npm-package-cloudflare-workers-shared-7692 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12698490950/npm-package-cloudflare-workflows-shared-7692 Note that these links will no longer work once the GitHub Actions artifact expires.
Please ensure constraints are pinned, and |
c52d984
to
1b3805c
Compare
3df6683
to
8f7580f
Compare
8f7580f
to
e78f952
Compare
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
create-cloudflare@2.36.0
Minor Changes
78c1649
Thanks @andyjessop! - chore: remove nodejs_compat flag from basic C3 templatesminiflare@3.20241230.1
Minor Changes
78bdec5
Thanks @penalosa! - Support theCF-Connecting-IP
header, which will be available in your Worker to determine the IP address of the client that initiated a request.Patch Changes
2c76887
Thanks @lambrospetrou! - Fix D1 exports to properly pad HEX strings for binary values.@cloudflare/pages-shared@0.13.0
Minor Changes
8b48ca6
Thanks @GregBrimble! - feat: Return a 304 Not Modified response when matching an asset preservation cache request if appropriatePatch Changes
#7561
8b48ca6
Thanks @GregBrimble! - chore: Remove now-unused asset preservation cache (v1)#7561
8b48ca6
Thanks @GregBrimble! - fix: Store an empty result when Early Hints parsing returns nothing or errors. Previously, we weren't storing anything which resulted in Early Hints being parsed on every request.Updated dependencies [
2c76887
,78bdec5
]:@cloudflare/unenv-preset@0.1.0
Minor Changes
#7697
3e2bede
Thanks @vicb! - chore(unenv-preset): drop unused .cjs filesOnly .mjs files are used.
@cloudflare/vitest-pool-workers@0.6.0
Minor Changes
78c1649
Thanks @andyjessop! - chore: add nodejs_compat by default in Vitest Pool WorkersPatch Changes
ff4e77e
,2c76887
,6439347
,e771fe9
,7c8ae1c
,78bdec5
,45d1d1e
,e4716cc
,773bda8
,9d2740a
,f3c2f69
]:wrangler@3.101.0
Minor Changes
#7534
7c8ae1c
Thanks @cmackenzie1! - feat: Use OAuth flow to generate R2 tokens for Pipelines#7674
45d1d1e
Thanks @Ankcorn! - Add support for env files to wrangler secret bulk i.e..dev.vars
Run
wrangler secret bulk .dev.vars
to add the env fileThis will upload the secrets KEY and KEY_2 to your worker
#7442
e4716cc
Thanks @petebacondarwin! - feat: add support for redirecting Wrangler to a generated config when running deploy-related commandsThis new feature is designed for build tools and frameworks to provide a deploy-specific configuration,
which Wrangler can use instead of user configuration when running deploy-related commands.
It is not expected that developers of Workers will need to use this feature directly.
Affected commands
The commands that use this feature are:
wrangler deploy
wrangler dev
wrangler versions upload
wrangler versions deploy
wrangler pages deploy
wrangler pages build
wrangler pages build-env
Config redirect file
When running these commands, Wrangler will look up the directory tree from the current working directory for a file at the path
.wrangler/deploy/config.json
. This file must contain only a single JSON object of the form:When this file exists Wrangler will follow the
configPath
(relative to the.wrangler/deploy/config.json
file) to find an alternative Wrangler configuration file to load and use as part of this command.When this happens Wrangler will display a warning to the user to indicate that the configuration has been redirected to a different file than the user's configuration file.
Custom build tool example
A common approach that a build tool might choose to implement.
The user writes code that uses Cloudflare Workers resources, configured via a user
wrangler.toml
file.Note that this configuration points
main
at user code entry-point.The user runs a custom build, which might read the
wrangler.toml
to find the entry-point:> my-tool build
This tool generates a
dist
directory that contains both compiled code and a new deployment configuration file, but also a.wrangler/deploy/config.json
file that redirects Wrangler to this new deployment configuration file:The
dist/wrangler.json
will contain:And the
.wrangler/deploy/config.json
will contain:#7685
9d2740a
Thanks @vicb! - allow overriding the unenv preset.By default wrangler uses the bundled unenv preset.
Setting
WRANGLER_UNENV_RESOLVE_PATHS
allow to use another version of the preset.Those paths are used when resolving the unenv module identifiers to absolute paths.
This can be used to test a development version.
#7694
f3c2f69
Thanks @joshthoward! - Default wrangler d1 export to --local rather than failingPatch Changes
#7456
ff4e77e
Thanks @andyjessop! - chore: removes --experimental-versions flag, as versions is now GA.#7712
6439347
Thanks @penalosa! - Remove CF-Connecting-IP for requests to the edge preview#7703
e771fe9
Thanks @petebacondarwin! - include the top level Worker name in the parsed config structure#7576
773bda8
Thanks @cmackenzie1! - Remove defaults forbatch-max-*
pipeline parameters and define value rangesUpdated dependencies [
2c76887
,78bdec5
]:@cloudflare/chrome-devtools-patches@0.1.2
Patch Changes
65a3e35
Thanks @emily-shen! - chore: rebases patches on latest devtools head