-
Notifications
You must be signed in to change notification settings - Fork 803
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
Conversation
…rming it with npm)
🦋 Changeset detectedLatest commit: 0a7b06a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
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 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.
| Please ensure constraints are pinned, and |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ 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 |
Arguably, you could make it more stable by fetching from the NPM registry directly ( |
Good call for bun users... 🤔 Also, does this need to work offline? |
I don't think C3 needs to work offline, does it? 🤔
|
ok thanks good point I will update it to be a raw fetch 🙂 👍 |
Still LGTM |
It seems like the workerd compatibility retrieval can have some issues with different package managers (or at least with
yarn
):The changes here make this more stable by always using fetching the date directly from the npm registry instead