Merged
Conversation
Contributor
|
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-7692You 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-7692Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12698490950/npm-package-wrangler-7692 dev path/to/script.jsAdditional 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.vsixnpx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12698490950/npm-package-create-cloudflare-7692 --no-auto-updatenpm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12698490950/npm-package-cloudflare-kv-asset-handler-7692npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12698490950/npm-package-miniflare-7692npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12698490950/npm-package-cloudflare-pages-shared-7692npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12698490950/npm-package-cloudflare-unenv-preset-7692npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12698490950/npm-package-cloudflare-vitest-pool-workers-7692npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12698490950/npm-package-cloudflare-workers-editor-shared-7692npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12698490950/npm-package-cloudflare-workers-shared-7692npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12698490950/npm-package-cloudflare-workflows-shared-7692Note 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
lrapoport-cf
approved these changes
Jan 9, 2025
penalosa
approved these changes
Jan 9, 2025
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
create-cloudflare@2.36.0
Minor Changes
78c1649Thanks @andyjessop! - chore: remove nodejs_compat flag from basic C3 templatesminiflare@3.20241230.1
Minor Changes
78bdec5Thanks @penalosa! - Support theCF-Connecting-IPheader, which will be available in your Worker to determine the IP address of the client that initiated a request.Patch Changes
2c76887Thanks @lambrospetrou! - Fix D1 exports to properly pad HEX strings for binary values.@cloudflare/pages-shared@0.13.0
Minor Changes
8b48ca6Thanks @GregBrimble! - feat: Return a 304 Not Modified response when matching an asset preservation cache request if appropriatePatch Changes
#7561
8b48ca6Thanks @GregBrimble! - chore: Remove now-unused asset preservation cache (v1)#7561
8b48ca6Thanks @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
3e2bedeThanks @vicb! - chore(unenv-preset): drop unused .cjs filesOnly .mjs files are used.
@cloudflare/vitest-pool-workers@0.6.0
Minor Changes
78c1649Thanks @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
7c8ae1cThanks @cmackenzie1! - feat: Use OAuth flow to generate R2 tokens for Pipelines#7674
45d1d1eThanks @Ankcorn! - Add support for env files to wrangler secret bulk i.e..dev.varsRun
wrangler secret bulk .dev.varsto add the env fileThis will upload the secrets KEY and KEY_2 to your worker
#7442
e4716ccThanks @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 deploywrangler devwrangler versions uploadwrangler versions deploywrangler pages deploywrangler pages buildwrangler pages build-envConfig 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:{ "configPath": "../../path/to/wrangler.json" }When this file exists Wrangler will follow the
configPath(relative to the.wrangler/deploy/config.jsonfile) 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.tomlfile.Note that this configuration points
mainat user code entry-point.The user runs a custom build, which might read the
wrangler.tomlto find the entry-point:> my-tool buildThis tool generates a
distdirectory that contains both compiled code and a new deployment configuration file, but also a.wrangler/deploy/config.jsonfile that redirects Wrangler to this new deployment configuration file:The
dist/wrangler.jsonwill contain:{ "name": "my-worker", "main": "./index.js", "kv_namespaces": [ { "binding": "<BINDING_NAME1>", "id": "<NAMESPACE_ID1>" } ] }And the
.wrangler/deploy/config.jsonwill contain:{ "configPath": "../../dist/wrangler.json" }#7685
9d2740aThanks @vicb! - allow overriding the unenv preset.By default wrangler uses the bundled unenv preset.
Setting
WRANGLER_UNENV_RESOLVE_PATHSallow 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
f3c2f69Thanks @joshthoward! - Default wrangler d1 export to --local rather than failingPatch Changes
#7456
ff4e77eThanks @andyjessop! - chore: removes --experimental-versions flag, as versions is now GA.#7712
6439347Thanks @penalosa! - Remove CF-Connecting-IP for requests to the edge preview#7703
e771fe9Thanks @petebacondarwin! - include the top level Worker name in the parsed config structure#7576
773bda8Thanks @cmackenzie1! - Remove defaults forbatch-max-*pipeline parameters and define value rangesUpdated dependencies [
2c76887,78bdec5]:@cloudflare/chrome-devtools-patches@0.1.2
Patch Changes
65a3e35Thanks @emily-shen! - chore: rebases patches on latest devtools head