Prevent date-enabled Node.js compatibility from adding conflicting globals to generated runtime types - #15239
Conversation
🦋 Changeset detectedLatest commit: 8f44326 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
|
Codeowners approval required for this PR:
Show detailed file reviewers |
|
All imports are present. The changeset lists only Now let me consider the changeset scope. The changeset references Let me verify the logic once more for a potential real bug. The comment on line 87-89 still says "Ignore Node.js compatibility as there is currently no mechanism to generate these types dynamically." That's fine. Let me think about whether pushing The implementation is correct and well-tested. Let me do a final check — is there any scenario where a user explicitly passes The code is correct, tests cover the main cases, imports are valid, and the changeset is appropriate. No actionable issues. LGTM |
|
✅ All changesets look good |
@cloudflare/autoconfig
@cloudflare/build-output-utils
@cloudflare/config
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-functions
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
b78fbde to
161b461
Compare
petebacondarwin
left a comment
There was a problem hiding this comment.
I think this is OK but a couple more code comments would help the future reader understand what is going on.
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
161b461 to
8f44326
Compare
Fixes #15215.
Prevent date-enabled Node.js compatibility from adding conflicting globals to generated runtime types
wrangler typesnow treats Node.js compatibility enabled by a compatibility date the same way as an explicitnodejs_compatflag. Node.js globals continue to come from@types/nodeinstead of being generated asanydeclarations that override those types.A picture of a cute animal (not mandatory, but encouraged)