Skip to content

refactor(types)!: drop support for Node <26#466

Open
favna wants to merge 2 commits into
mainfrom
feat/update-to-node-26
Open

refactor(types)!: drop support for Node <26#466
favna wants to merge 2 commits into
mainfrom
feat/update-to-node-26

Conversation

@favna

@favna favna commented Jun 23, 2026

Copy link
Copy Markdown
Member

This is a type-only breaking change that raises the minimum supported Node version to 26. The update aligns the error inspection types with the Node util package change from InspectOptionsStylized to InspectContext, so consumers on @types/node below 26 will now hit type errors when upgrading to this major.

Changes

  • Updated the custom error inspection signatures across the error hierarchy to use InspectContext.
  • Adjusted the BaseError unit test to match the new Node 26 inspect type.
  • Bumped the package engine requirement to Node 26 and refreshed the Yarn/tooling metadata.

Testing

  • Updated the error test coverage to compile against the new inspect type.
  • No runtime behavior changes were introduced; this is a types-only compatibility break.

Breaking Change

  • Minimum supported Node version is now 26.
  • Projects pinned to @types/node below 26 must upgrade before adopting this release.

Squash Commit

refactor(types)!: drop support for Node <26

BREAKING CHANGE: This is a type-only breaking change caused by the node util InspectContext change.
BREAKING CHANGE: Projects using @types/node below 26 will now get type errors on this major.

BREAKING CHANGE: This is a type-only breaking change caused by the node util InspectContext change.
BREAKING CHANGE: Projects using @types/node below 26 will now get type errors on this major.
@favna favna requested review from kyranet and vladfrangu as code owners June 23, 2026 11:38
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
8.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

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