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
@cloudflare/pages-shared@0.2.0
Minor Changes
#2708
b3346cfb
Thanks @Skye-31! - Feat: Pages now supports Proxying (200 status) redirects in it's _redirects fileThis will look something like the following, where a request to /users/123 will appear as that in the browser, but will internally go to /users/[id].html.
Patch Changes
4ede044e
Thanks @mrbbot! - chore: upgrademiniflare
to2.12.1
and@miniflare/tre
to3.0.0-next.10
wrangler@2.11.0
Minor Changes
#2651
a9adfbe7
Thanks @penalosa! - Previously, wrangler dev would not work if the root of your zone wasn't behind Cloudflare. This behaviour has changed so that now only the route which your Worker is exposed on has to be behind Cloudflare.#2708
b3346cfb
Thanks @Skye-31! - Feat: Pages now supports Proxying (200 status) redirects in it's _redirects fileThis will look something like the following, where a request to /users/123 will appear as that in the browser, but will internally go to /users/[id].html.
Patch Changes
#2766
7912e63a
Thanks @mrbbot! - fix: correctly detectservice-worker
format when usingtypeof module
Wrangler automatically detects whether your code is a
modules
orservice-worker
format Worker based on the presence of adefault
export
. This check currently works by building your entrypoint withesbuild
and looking at the output metafile.Previously, we were passing
format: "esm"
toesbuild
when performing this check, which enables format conversion. This may introduceexport default
into the built code, even if it wasn't there to start with, resulting in incorrect format detections.This change removes
format: "esm"
which disables format conversion when bundling is disabled. See https://esbuild.github.io/api/#format for more details.#2780
80f1187a
Thanks @GregBrimble! - fix: Ensure we don't mangle internal constructor names in the wrangler bundle when building with esbuildUndici changed how they referenced
FormData
, which meant that when used in our bundle process, we were failing to uploadmultipart/form-data
bodies. This affectedwrangler pages publish
andwrangler publish
.#2720
de0cb57a
Thanks @JacobMGEvans! - Fix: Upgraded to ES2022 for improved compatibilityUpgraded worker code target version from ES2020 to ES2022 for better compatibility and unblocking of a workaround related to issue #2029. The worker runtime now uses the same V8 version as recent Chrome and is 99% ES2016+ compliant. The only thing we don't support on the Workers runtime, the remaining 1%, is the ES2022 RegEx feature as seen in the compat table for the latest Chrome version.
Compatibility table: https://kangax.github.io/compat-table/es2016plus/
resolves #2716
#2771
4ede044e
Thanks @mrbbot! - chore: upgrademiniflare
to2.12.1
and@miniflare/tre
to3.0.0-next.10