unstale

npm / @whatwg-node/promise-helpers

@whatwg-node/promise-helpers

What changed in @whatwg-node/promise-helpers 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-26.

3 breaking1 performance

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.8 on npm

@whatwg-node/promise-helpers 24 changes

Breaking changes 3

  • The minimum supported Node.js version is now 22.15.0; Node.js 18 and 20 are no longer supported.

    2.0.0release notes

  • The input is now an input factory (thunk) rather than a bare value, so synchronous throws are handled like promise rejections; an optional finallyFactory supports cleanup.

    2.0.0release notes

  • The deprecated mapMaybePromise API is removed; use handleMaybePromise instead.

    2.0.0release notes

Performance 1

  • On the synchronous path, when no finally callback is provided and the input factory returns a non-thenable, success/error factories run directly without temporary fake-promise wrappers. Promise and thenable inputs retain the existing normalization path.

    2.0.1release notes