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

chore: upgrade to miniflare@2.12.1 & @miniflare/tre@3.0.0-next.10 #2771

Merged
merged 1 commit into from Feb 21, 2023

Conversation

mrbbot
Copy link
Contributor

@mrbbot mrbbot commented Feb 20, 2023

What this PR solves / how to test:

Upgrades miniflare (for --local) to 2.12.1 and @miniflare/tre (for --experimental-local) to 3.0.0-next.10.

Associated docs issues/PR:

N/A

Author has included the following, where applicable:

  • Tests (passes existing)
  • Changeset

Reviewer has performed the following, where applicable:

  • Checked for inclusion of relevant tests
  • Checked for inclusion of a relevant changeset
  • Checked for creation of associated docs updates
  • Manually pulled down the changes and spot-tested

@mrbbot mrbbot requested review from a team as code owners February 20, 2023 22:05
@changeset-bot
Copy link

changeset-bot bot commented Feb 20, 2023

🦋 Changeset detected

Latest commit: 9ac7753

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@cloudflare/pages-shared Patch
wrangler Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

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/4227368447/npm-package-wrangler-2771

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

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

Or you can use npx with this latest build directly:

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

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

@codecov
Copy link

codecov bot commented Feb 20, 2023

Codecov Report

Merging #2771 (9ac7753) into main (7912e63) will increase coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2771      +/-   ##
==========================================
+ Coverage   73.98%   74.00%   +0.01%     
==========================================
  Files         166      166              
  Lines       10161    10163       +2     
  Branches     2705     2705              
==========================================
+ Hits         7518     7521       +3     
+ Misses       2643     2642       -1     
Impacted Files Coverage Δ
packages/wrangler/src/dev/local.tsx 22.14% <0.00%> (-0.17%) ⬇️
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%) ⬆️

@@ -88,4 +88,9 @@ declare global {
// by `vite`. Therefore, define it as an empty interface.
// eslint-disable-next-line @typescript-eslint/no-empty-interface
interface Worker {}

// `MessagePort` has been global since Node 15, but isn't included in
// `@types/node`. This is required by `undici`'s types.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there an issue open for this on @types/node? If not, maybe we should open one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is looks like this was added in DefinitelyTyped/DefinitelyTyped#59905, which isn't included in our @types/node version (16.11.22). I tried upgrading to 16.18.12 (we don't want to upgrade beyond 16 because our minimum supported Node version is 16.13.0), and I still get the same missing MessagePort error. I think we should leave this for now. 👍

@mrbbot mrbbot merged commit 4ede044 into main Feb 21, 2023
@mrbbot mrbbot deleted the bcoll/miniflare-2.12.1 branch February 21, 2023 10:39
@github-actions github-actions bot mentioned this pull request Feb 21, 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.

None yet

2 participants