Previously, if you provided a _worker.js file, then Pages would simply check the
file for disallowed imports and then deploy the file as-is.
Not bundling the _worker.js file means that it cannot containing imports to other
JS files, but also prevents Wrangler from adding shims such as the one for the D1 alpha
release.
This change adds the ability to tell Wrangler to pass the _worker.js through the
normal Wrangler bundling process before deploying by setting the --bundle
command line argument to wrangler pages dev and wrangler pages publish.
This is in keeping with the same flag for wrangler publish.
Currently bundling is opt-in, flag defaults to false if not provided.
_routes.json is no longer considered an experimental feature, so let's
remove all warnings we have in place for that.
#25484db768fa Thanks @rozenmd! - fix: path should be optional for wrangler d1 backup download
This PR fixes a bug that forces folks to provide a --output flag to wrangler d1 backup download.
#252818208091 Thanks @caass! - Add some guidance when folks encounter a 10021 error.
Error code 10021 can occur when your worker doesn't pass startup validation. This error message will make it a little easier to reason about what happened and what to do next.
Previously, if you provided a _worker.js file, then Pages would simply check the
file for disallowed imports and then deploy the file as-is.
Not bundling the _worker.js file means that it cannot containing imports to other
JS files, but also prevents Wrangler from adding shims such as the one for the D1 alpha
release.
This change adds the ability to tell Wrangler to pass the _worker.js through the
normal Wrangler bundling process before deploying by setting the --bundle
command line argument to wrangler pages dev and wrangler pages publish.
This is in keeping with the same flag for wrangler publish.
Currently bundling is opt-in, flag defaults to false if not provided.
_routes.json is no longer considered an experimental feature, so let's
remove all warnings we have in place for that.
#25484db768fa Thanks @rozenmd! - fix: path should be optional for wrangler d1 backup download
This PR fixes a bug that forces folks to provide a --output flag to wrangler d1 backup download.
#252818208091 Thanks @caass! - Add some guidance when folks encounter a 10021 error.
Error code 10021 can occur when your worker doesn't pass startup validation. This error message will make it a little easier to reason about what happened and what to do next.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps wrangler from 2.6.2 to 2.8.0.
Release notes
Sourced from wrangler's releases.
... (truncated)
Changelog
Sourced from wrangler's changelog.
... (truncated)
Commits
853d5f2
Version Packages (#2531)bfffe59
fix: wrangler init --from-dash incorrectly expects index.ts while writing ind...1820809
Add some guidance when folks encounter a 10021 error. (#2528)4db768f
fix: path should be optional forwrangler d1 backup download
(#2548)b44e1a7
Rename--bundle
to--no-bundle
in Pages commands for similarity with Work...af4f27c
feat: support events of type EmailEvent (#2538)6a67efe
fix: allow URL object to be passed to localfetch()
calls (#1769)3f82434
feat: support bundling the raw Pages_worker.js
before deploying (#2404)fe8c691
fix: sendwrangler docs d1
to the right place (#2525)2270507
fix: Remove "experimental _routes.json" warnings (#2529)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)