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

Merged
merged 1 commit into from
Feb 27, 2024
Merged

Version Packages #5079

merged 1 commit into from
Feb 27, 2024

Conversation

workers-devprod
Copy link
Contributor

@workers-devprod workers-devprod commented Feb 23, 2024

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

Minor Changes

  • #5080 2aa7913 Thanks @jculvey! - feature: Use new vite-cloudflare template in Remix projects.

    Remix has released a new official Cloudflare template that uses getPlatformProxy under the hood to provide better support for bindings in dev. Remix projects created with C3 will now use this new template.

    Along with this change, projects will use the default vite-based dev command from create-remix instead of using wrangler pages dev on build output.

    A new build-cf-types script has also been added to re-generate the Env type defined in load-context.ts based on the contents of wrangler.toml. A default wrangler.toml will be added to new Remix projects to accomodate this workflow.

  • #5072 cab7e1c Thanks @jculvey! - feature: Improve bindings support in Astro template.

    C3 will now create Astro projects configured to use miniflare in dev automatically. This is done by adding a configuration for the adapter of { runtime: 'local'} (see Astro docs for more details). A wrangler.toml file will also be added where bindings can be added to be used in dev.

    Along with this change, projects will now use the default vite-based astro dev command instead of using wrangler pages dev on build output.

    When Typescript is used, the src/env.d.ts file will be updated to add type definitions runtime.env which can be re-generated with a newly added build-cf-types script.

Patch Changes

miniflare@3.20240223.0

Minor Changes

wrangler@3.30.0

Minor Changes

  • #4742 c2f3f1e Thanks @benycodes! - feat: allow preserving file names when defining rules for non-js modules

    The developer is now able to specify the `preserve_file_names property in wrangler.toml
    which specifies whether Wrangler will preserve the file names additional modules that are
    added to the deployment bundle of a Worker.

    If not set to true, files will be named using the pattern ${fileHash}-${basename}.
    For example, 34de60b44167af5c5a709e62a4e20c4f18c9e3b6-favicon.ico.

    Resolves #4741

Patch Changes

  • Updated dependencies [0c0949d]:
    • miniflare@3.20240223.0

@cloudflare/pages-shared@0.11.15

Patch Changes

  • Updated dependencies [0c0949d]:
    • miniflare@3.20240223.0

@cloudflare/vitest-pool-workers@0.0.4

Patch Changes

  • Updated dependencies [0c0949d, c2f3f1e]:
    • miniflare@3.20240223.0
    • wrangler@3.30.0

@workers-devprod workers-devprod requested review from a team as code owners February 23, 2024 12:01
Copy link
Contributor

github-actions bot commented Feb 23, 2024

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/8064039559/npm-package-wrangler-5079

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

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

Or you can use npx with this latest build directly:

npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8064039559/npm-package-wrangler-5079 dev path/to/script.js
Additional artifacts:
npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8064039559/npm-package-create-cloudflare-5079 --no-auto-update
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8064039559/npm-package-cloudflare-kv-asset-handler-5079
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8064039559/npm-package-miniflare-5079
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8064039559/npm-package-cloudflare-pages-shared-5079
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8064039559/npm-package-cloudflare-vitest-pool-workers-5079

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


wrangler@3.30.0 includes the following runtime dependencies:

Package Constraint Resolved
miniflare workspace:* 3.20240223.0
workerd 1.20240223.1 1.20240223.1
workerd --version 1.20240223.1 2024-02-23

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

Copy link

codecov bot commented Feb 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.40%. Comparing base (6a0143d) to head (35b4f96).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5079      +/-   ##
==========================================
+ Coverage   70.36%   70.40%   +0.03%     
==========================================
  Files         298      298              
  Lines       15515    15515              
  Branches     3987     3987              
==========================================
+ Hits        10917    10923       +6     
+ Misses       4598     4592       -6     

see 6 files with indirect coverage changes

Copy link
Contributor

@mrbbot mrbbot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! There are a few documentation issues/PRs relevant to this release:

We should be good to merge and release this now though, as it looks like the current C3 guides don't provide guidance on how to use bindings during dev, so these are all strictly additive docs changes.

@lrapoport-cf lrapoport-cf merged commit 45b14fc into main Feb 27, 2024
27 checks passed
@lrapoport-cf lrapoport-cf deleted the changeset-release/main branch February 27, 2024 18:39
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.

3 participants