-
Notifications
You must be signed in to change notification settings - Fork 760
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 #7766
Version Packages #7766
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/12806127861/npm-package-wrangler-7766 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/7766/npm-package-wrangler-7766 Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12806127861/npm-package-wrangler-7766 dev path/to/script.js Additional artifacts:cloudflare-workers-bindings-extension: wget https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12806127861/npm-package-cloudflare-workers-bindings-extension-7766 -O ./cloudflare-workers-bindings-extension.0.0.0-v8ee7af2e2.vsix && code --install-extension ./cloudflare-workers-bindings-extension.0.0.0-v8ee7af2e2.vsix create-cloudflare: npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12806127861/npm-package-create-cloudflare-7766 --no-auto-update @cloudflare/kv-asset-handler: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12806127861/npm-package-cloudflare-kv-asset-handler-7766 miniflare: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12806127861/npm-package-miniflare-7766 @cloudflare/pages-shared: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12806127861/npm-package-cloudflare-pages-shared-7766 @cloudflare/unenv-preset: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12806127861/npm-package-cloudflare-unenv-preset-7766 @cloudflare/vitest-pool-workers: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12806127861/npm-package-cloudflare-vitest-pool-workers-7766 @cloudflare/workers-editor-shared: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12806127861/npm-package-cloudflare-workers-editor-shared-7766 @cloudflare/workers-shared: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12806127861/npm-package-cloudflare-workers-shared-7766 @cloudflare/workflows-shared: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12806127861/npm-package-cloudflare-workflows-shared-7766 Note that these links will no longer work once the GitHub Actions artifact expires.
Please ensure constraints are pinned, and |
0bb9dbb
to
a84fe6e
Compare
this has tentative approval pending passing checks and additional review after #7774 lands |
a84fe6e
to
03c9de1
Compare
This reverts commit cc4af98.
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
@cloudflare/[email protected]
Minor Changes
bb85c9a
Thanks @WillTaylorDev! - Adds jaeger tracing for asset-worker.Patch Changes
97603f0
Thanks @WalshyDev! - fix: on a 404 from KV, we do not want the asset to stay in cache for the normal 1 year TTL. Instead we want to re-insert with a 60s TTL to revalidate and prevent a bad 404 from persisting.[email protected]
Minor Changes
#5086
8faf2c0
Thanks @dario-piotrowicz! - add--strict-vars
option towrangler types
add a new
--strict-vars
option towrangler types
that developers can (by setting theflag to
false
) use to disable the default strict/literal types generation for their variablesopting out of strict variables can be useful when developers change often their
vars
values,even more so when multiple environments are involved
Example
With a toml containing:
the
wrangler types
command would generate the following interface:while
wrangler types --strict-vars=false
would instead generate:(allowing the developer to easily change their toml variables without the
risk of breaking typescript types)
Patch Changes
#7720
902e3af
Thanks @vicb! - chore(wrangler): use the unenv preset from@cloudflare/unenv-preset
#7760
19228e5
Thanks @vicb! - chore: update unenv dependency version#7735
e8aaa39
Thanks @penalosa! - Unwrap the error cause when available to send to Sentry#5086
8faf2c0
Thanks @dario-piotrowicz! - fix: widen multi-envvars
types inwrangler types
Currently, the type generated for
vars
is a string literal consisting of the value of the variable in the top level environment. If multiple environmentsare specified this wrongly restricts the type, since the variable could contain any of the values from each of the environments.
For example, given a
wrangler.toml
containing the following:running
wrangler types
would generate:making typescript incorrectly assume that
MY_VAR
is always going to be"dev value"
after these changes, the generated interface would instead be:
#7733
dceb196
Thanks @emily-shen! - feat: pull resource names for provisioning from config if providedUses
database_name
andbucket_name
for provisioning if specified. For R2, this only happens if there is not a bucket with that name already. Also respects R2jurisdiction
if provided.Updated dependencies []:
[email protected]
Patch Changes
#7774
f9344a0
Thanks @CarmenPopoviciu! - Fix regression in C3'snext
template#7676 switched C3 templates to default to
wrangler.json
instead ofwrangler.toml
. Unfortunately, this unintendedly broke thenext
template, which was still attempting to readwrangler.toml
specifically. This commit fixes the regression.Fixes 🐛 BUG: [email protected], Output the wrangler.json config format when running create-cloudflare. But when generating the next template, the wrangler.toml file will be read. #7770
@cloudflare/[email protected]
Patch Changes
902e3af
,19228e5
,e8aaa39
,8faf2c0
,dceb196
,8faf2c0
]:[email protected]
Patch Changes
99f27df
Thanks @edmundhung! - fix: sends raw request method through the X-CF-HTTP-Method header