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 #4061

Merged
merged 1 commit into from
Oct 5, 2023
Merged

Version Packages #4061

merged 1 commit into from
Oct 5, 2023

Conversation

workers-devprod
Copy link
Contributor

@workers-devprod workers-devprod commented Sep 28, 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

create-cloudflare@2.4.0

Minor Changes

  • #4063 cb4309f9 Thanks @jculvey! - Bump supported node version to 18.14.1

    We've recently switched out testing infrastructure to test C3 on node version 18.14.1.
    As of earlier this month, Node v16 is no longer supported, and many of the underlying
    framework scaffolding tools that C3 uses (ex. create-astro, gatsby) have dropped
    support for node v16, which in turn causes C3 to fail for those frameworks.

  • #4065 55298d9f Thanks @jculvey! - Add support for bun

Patch Changes

@cloudflare/pages-shared@0.10.0

Minor Changes

Patch Changes

wrangler@3.11.0

Minor Changes

  • #3726 7d20bdbd Thanks @petebacondarwin! - feat: support partial bundling with configurable external modules

    Setting find_additional_modules to true in your configuration file will now instruct Wrangler to look for files in
    your base_dir that match your configured rules, and deploy them as unbundled, external modules with your Worker.
    base_dir defaults to the directory containing your main entrypoint.

    Wrangler can operate in two modes: the default bundling mode and --no-bundle mode. In bundling mode, dynamic imports
    (e.g. await import("./large-dep.mjs")) would be bundled into your entrypoint, making lazy loading less effective.
    Additionally, variable dynamic imports (e.g. await import(`./lang/${language}.mjs`)) would always fail at runtime,
    as Wrangler would have no way of knowing which modules to upload. The --no-bundle mode sought to address these issues
    by disabling Wrangler's bundling entirely, and just deploying code as is. Unfortunately, this also disabled Wrangler's
    code transformations (e.g. TypeScript compilation, --assets, --test-scheduled, etc).

    With this change, we now additionally support partial bundling. Files are bundled into a single Worker entry-point file
    unless find_additional_modules is true, and the file matches one of the configured rules. See
    https://developers.cloudflare.com/workers/wrangler/bundling/ for more details and examples.

  • #4093 c71d8a0f Thanks @mrbbot! - chore: bump miniflare to 3.20231002.0

Patch Changes

  • #3726 7d20bdbd Thanks @petebacondarwin! - fix: ensure that additional modules appear in the out-dir

    When using find_additional_modules (or no_bundle) we find files that
    will be uploaded to be deployed alongside the Worker.

    Previously, if an outDir was specified, only the Worker code was output
    to this directory. Now all additional modules are also output there too.

  • #4067 31270711 Thanks @mrbbot! - fix: generate valid source maps with wrangler pages dev on macOS

    On macOS, wrangler pages dev previously generated source maps with an
    incorrect number of ../s in relative paths. This change ensures paths are
    always correct, improving support for breakpoint debugging.

  • #4084 9a7559b6 Thanks @RamIdeas! - fix: respect the options.local value in unstable_dev (it was being ignored)

  • #4107 807ab931 Thanks @mrbbot! - chore: bump miniflare to 3.20231002.1

  • #3726 7d20bdbd Thanks @petebacondarwin! - fix: allow __STATIC_CONTENT_MANIFEST module to be imported anywhere

    __STATIC_CONTENT_MANIFEST can now be imported in subdirectories when
    --no-bundle or find_additional_modules are enabled.

  • #3926 f585f695 Thanks @penalosa! - Log more detail about tokens after authentication errors

  • #3695 1d0b7ad5 Thanks @JacksonKearl! - Fixed pages dev crashing and leaving port open when building a worker script fails

  • #4066 c8b4a07f Thanks @RamIdeas! - fix: we no longer infer pathnames from route patterns as the host

    During local development, inside your worker, the host of request.url is inferred from the routes in your config.

    Previously, route patterns like "*/some/path/name" would infer the host as "some". We now handle this case and determine we cannot infer a host from such patterns.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 28, 2023

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/6422791015/npm-package-wrangler-4061

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

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

Or you can use npx with this latest build directly:

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

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


wrangler@3.11.0 includes the following runtime dependencies:

Package Constraint Resolved
miniflare 3.20231002.1 3.20231002.1
workerd 1.20231002.0 1.20231002.0
workerd --version 1.20231002.0 2023-10-02

|

Please ensure constraints are pinned, and miniflare/workerd minor versions match.

@workers-devprod workers-devprod force-pushed the changeset-release/main branch 2 times, most recently from df3dce7 to 8d19390 Compare September 29, 2023 09:09
@workers-devprod workers-devprod requested a review from a team as a code owner September 29, 2023 09:09
@codecov
Copy link

codecov bot commented Sep 29, 2023

Codecov Report

Merging #4061 (301574f) into main (9a9349a) will increase coverage by 0.03%.
The diff coverage is n/a.

❗ Current head 301574f differs from pull request most recent head 26ddb79. Consider uploading reports for the commit 26ddb79 to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4061      +/-   ##
==========================================
+ Coverage   75.31%   75.35%   +0.03%     
==========================================
  Files         223      223              
  Lines       12191    12191              
  Branches     3151     3151              
==========================================
+ Hits         9182     9186       +4     
+ Misses       3009     3005       -4     

see 3 files with indirect coverage changes

@workers-devprod workers-devprod force-pushed the changeset-release/main branch 17 times, most recently from 8c529dd to 8330fd9 Compare October 3, 2023 18:22
@workers-devprod workers-devprod requested a review from a team as a code owner October 3, 2023 18:47
@workers-devprod workers-devprod force-pushed the changeset-release/main branch 3 times, most recently from 1bb722f to 3f0f149 Compare October 4, 2023 11:59
@workers-devprod workers-devprod force-pushed the changeset-release/main branch 5 times, most recently from 23833e9 to d7c6229 Compare October 5, 2023 17:20
@lrapoport-cf lrapoport-cf merged commit 12a6f5e into main Oct 5, 2023
39 of 43 checks passed
@lrapoport-cf lrapoport-cf deleted the changeset-release/main branch October 5, 2023 19:44
@jculvey jculvey mentioned this pull request Oct 5, 2023
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.

5 participants