Skip to content

Fix runtime types node compat any globals - #15216

Closed
kkkhs wants to merge 2 commits into
cloudflare:mainfrom
kkkhs:agent/fix-wrangler-types-node-globals
Closed

kkkhs wants to merge 2 commits into
cloudflare:mainfrom
kkkhs:agent/fix-wrangler-types-node-globals

Conversation

@kkkhs

@kkkhs kkkhs commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Fixes #15215.

Removes the generated declare const Buffer: any; and declare const process: any; lines from runtime types before returning generated or cached content. This keeps Wrangler generated types from shadowing @types/node globals when a compatibility date enables Node.js compatibility.

  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: this only changes generated type output.

@changeset-bot

changeset-bot Bot commented Aug 16, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d90ae0c

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

This PR includes changesets to release 3 packages
Name Type
wrangler Patch
@cloudflare/vite-plugin Patch
@cloudflare/vitest-pool-workers 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

@pkg-pr-new

pkg-pr-new Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
@cloudflare/autoconfig

npm i https://pkg.pr.new/@cloudflare/autoconfig@15216

@cloudflare/build-output-utils

npm i https://pkg.pr.new/@cloudflare/build-output-utils@15216

@cloudflare/config

npm i https://pkg.pr.new/@cloudflare/config@15216

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@15216

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/@cloudflare/deploy-helpers@15216

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@15216

miniflare

npm i https://pkg.pr.new/miniflare@15216

@cloudflare/pages-functions

npm i https://pkg.pr.new/@cloudflare/pages-functions@15216

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@15216

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@15216

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@15216

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@15216

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@15216

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@15216

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@15216

wrangler

npm i https://pkg.pr.new/wrangler@15216

commit: d90ae0c

@jamesopstad

Copy link
Copy Markdown
Contributor

Closing as superseded by #15239.

@github-project-automation github-project-automation Bot moved this from Untriaged to Done in workers-sdk Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

wrangler types emits declare const Buffer: any since v4.122.0, nullifying the @types/node Buffer interface

3 participants