unstale

npm / @nestjs/jwt

@nestjs/jwt

What changed in @nestjs/jwt 9 to 12, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-27.

3 breaking6 fixes and other

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

npx @unstale/cli init

@unstale/cli 0.2.8 on npm

@nestjs/jwt 128 changes

Breaking changes 3

  • CommonJS applications can require the package on Node 20.19+, 22.12+, and all of 24.x. On older Node releases, require() throws ERR_REQUIRE_ESM.

    12.0.0release notes

  • The package is published as pure ESM with an exports map. Import from the package root; CommonJS consumers can continue using require on supported Node versions.

    12.0.0release notes

  • Deep imports into build internals are no longer resolvable; import from the package root instead.

    12.0.0release notes

Fixes and other changes 5

  • Async signing now rejects when the secret provider rejects.

    12.0.3release notes

  • Async provider rejection is suppressed when signing fails because the payload is a string.

    12.0.3release notes

  • Adds type overloads for decode when the complete option is used, including a nullable return type.

    12.0.2release notes

  • Fixes ESM imports of jsonwebtoken.

    12.0.1release notes

  • The jsonwebtoken error classes are explicitly re-exported by name so they resolve correctly under ESM interop.

    12.0.0release notes

@nestjs/jwt 91 changes

Fixes and other changes 1

  • Peer dependencies were updated, which may affect package compatibility and installation.

    9.0.0release notes