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

make the workerd compatibility date retrieval more stable by fetching it directly from the npm registry #4627

Merged
merged 4 commits into from
Dec 22, 2023

Conversation

Copy link

changeset-bot bot commented Dec 18, 2023

🦋 Changeset detected

Latest commit: 0a7b06a

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

This PR includes changesets to release 1 package
Name Type
create-cloudflare 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

@dario-piotrowicz dario-piotrowicz marked this pull request as ready for review December 18, 2023 23:46
@dario-piotrowicz dario-piotrowicz requested a review from a team as a code owner December 18, 2023 23:46
Copy link
Contributor

github-actions bot commented Dec 18, 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/7265806834/npm-package-wrangler-4627

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

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

Or you can use npx with this latest build directly:

npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7265806834/npm-package-wrangler-4627 dev path/to/script.js
Additional artifacts:
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7265806834/npm-package-miniflare-4627
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7265806834/npm-package-cloudflare-pages-shared-4627
npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7265806834/npm-package-create-cloudflare-4627 --no-auto-update

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


[email protected] includes the following runtime dependencies:

Package Constraint Resolved
miniflare workspace:* 3.20231030.4
workerd 1.20231030.0 1.20231030.0
workerd --version 1.20231030.0 2023-10-30

|

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

Copy link

codecov bot commented Dec 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (98dee93) 75.41% compared to head (0a7b06a) 75.19%.
Report is 10 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4627      +/-   ##
==========================================
- Coverage   75.41%   75.19%   -0.23%     
==========================================
  Files         242      242              
  Lines       12965    13014      +49     
  Branches     3337     3346       +9     
==========================================
+ Hits         9778     9786       +8     
- Misses       3187     3228      +41     

see 13 files with indirect coverage changes

@Skye-31
Copy link
Contributor

Skye-31 commented Dec 19, 2023

Arguably, you could make it more stable by fetching from the NPM registry directly (https://registry.npmjs.org/workerd -> dist-tags -> latest), instead of assuming the user has NPM installed (looking at bun users here)

@petebacondarwin
Copy link
Contributor

Arguably, you could make it more stable by fetching from the NPM registry directly (https://registry.npmjs.org/workerd -> dist-tags -> latest), instead of assuming the user has NPM installed (looking at bun users here)

Good call for bun users... 🤔

Also, does this need to work offline?

@dario-piotrowicz
Copy link
Member Author

Also, does this need to work offline?

I don't think C3 needs to work offline, does it? 🤔
In any case if the date fetch fails then it falls back to 2023-05-18, so I guess that's fine 🙂

fallbackOutput: () => "2023-05-18",

@dario-piotrowicz
Copy link
Member Author

dario-piotrowicz commented Dec 19, 2023

Arguably, you could make it more stable by fetching from the NPM registry directly (https://registry.npmjs.org/workerd -> dist-tags -> latest), instead of assuming the user has NPM installed (looking at bun users here)

ok thanks good point I will update it to be a raw fetch 🙂 👍
(can bun users really not have npm installed? 😱 🥲)

@dario-piotrowicz dario-piotrowicz changed the title make the workerd compatibility retrieval more stable (by always performing it with npm) make the workerd compatibility date retrieval more stable by fetching it directly from the npm registry Dec 19, 2023
@jculvey
Copy link
Contributor

jculvey commented Dec 22, 2023

Still LGTM

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.

4 participants