Skip to content

Match @types/node to the lowest supported Node - #477

Merged
ilovepixelart merged 1 commit into
mainfrom
deps/types-node-floor
Nov 17, 2026
Merged

ilovepixelart merged 1 commit into
mainfrom
deps/types-node-floor

Conversation

@ilovepixelart

Copy link
Copy Markdown
Owner
  • @types/node ^26.1.1 → ^22.19.21, following engines.node (>=22.19). Types newer than the oldest supported runtime let code compile against Node APIs that runtime lacks; type checks pass against ^22.19.21.
  • .github/dependabot.yml: ignore @types/node major updates (minor and patch still flow); the major moves only together with the engines floor.
  • extensions/web.ts: TextDecoder annotations become InstanceType<typeof TextDecoder> (Node 22 typings declare TextDecoder as a value only); tests/resolution-probe.ts types the CommonJS fs it patches as { statSync }, since Node 22 typings mark statSync read-only. Type-only; no runtime change.

@types/node ^26.1.1 -> ^22.19.21, following engines.node (>=22.19), so the compiler rejects
Node APIs that the oldest supported runtime lacks. Dependabot ignores
@types/node major updates; they move only with the engines floor.
@sonarqubecloud

Copy link
Copy Markdown

@ilovepixelart
ilovepixelart merged commit fc2ce6b into main Nov 17, 2026
15 checks passed
@ilovepixelart
ilovepixelart deleted the deps/types-node-floor branch November 17, 2026 18:11
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.

1 participant