Skip to content
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 #2739

Merged
merged 1 commit into from
Feb 21, 2023
Merged

Version Packages #2739

merged 1 commit into from
Feb 21, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Feb 16, 2023

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 file

    This 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.

    /users/:id /users/[id] 200
    

Patch Changes

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 file

    This 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.

    /users/:id /users/[id] 200
    

Patch Changes

  • #2766 7912e63a Thanks @mrbbot! - fix: correctly detect service-worker format when using typeof module

    Wrangler automatically detects whether your code is a modules or service-worker format Worker based on the presence of a default export. This check currently works by building your entrypoint with esbuild and looking at the output metafile.

    Previously, we were passing format: "esm" to esbuild when performing this check, which enables format conversion. This may introduce export 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 esbuild

    Undici changed how they referenced FormData, which meant that when used in our bundle process, we were failing to upload multipart/form-data bodies. This affected wrangler pages publish and wrangler publish.

  • #2720 de0cb57a Thanks @JacobMGEvans! - Fix: Upgraded to ES2022 for improved compatibility
    Upgraded 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: upgrade miniflare to 2.12.1 and @miniflare/tre to 3.0.0-next.10

@github-actions github-actions bot requested review from a team as code owners February 16, 2023 13:26
@github-actions github-actions bot force-pushed the changeset-release/main branch 11 times, most recently from c8b8aef to 30dd471 Compare February 21, 2023 15:30
@penalosa penalosa closed this Feb 21, 2023
@penalosa penalosa reopened this Feb 21, 2023
@github-actions
Copy link
Contributor Author

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/4235808867/npm-package-wrangler-2739

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/2739/npm-package-wrangler-2739

Or you can use npx with this latest build directly:

npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/4235808867/npm-package-wrangler-2739 dev path/to/script.js
Additional artifacts:
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/4235808867/npm-package-cloudflare-pages-shared-2739

Note that these links will no longer work once the GitHub Actions artifact expires.

@codecov
Copy link

codecov bot commented Feb 21, 2023

Codecov Report

Merging #2739 (016cdd8) into main (8e335b3) will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2739      +/-   ##
==========================================
+ Coverage   73.97%   74.00%   +0.02%     
==========================================
  Files         166      166              
  Lines       10163    10163              
  Branches     2705     2705              
==========================================
+ Hits         7518     7521       +3     
+ Misses       2645     2642       -3     
Impacted Files Coverage Δ
packages/wrangler/src/git-client.ts 43.75% <0.00%> (+4.16%) ⬆️
...ackages/wrangler/src/__tests__/helpers/mock-bin.ts 100.00% <0.00%> (+5.26%) ⬆️

@lrapoport-cf lrapoport-cf merged commit 0511644 into main Feb 21, 2023
@lrapoport-cf lrapoport-cf deleted the changeset-release/main branch February 21, 2023 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants