@nestjs/jwt breaking changes
@nestjs/jwt 12.0.5 (November 13, 2026) is its newest release with breaking changes. The first: Call-level asymmetric keys now take priority over the module secret in @nestjs/jwt 12.0.5. Every breaking API change we have recorded in @nestjs/jwt on npm: 11 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 12.0.5, released November 13, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
@nestjs/jwt 12.0.5 breaking changes
- Behavior changed
When asymmetric keys are passed in a call, they are now used instead of the module-level secret. Code that relied on the module secret overriding call-level keys may now get different results and should be checked. github.com
@nestjs/jwt 12.0.4 breaking changes
- Signature changed
JwtSignOptions.secret
Was secret?: string | Buffer; now secret?: jwt.Secret. npmjs.com - Signature changed
JwtVerifyOptions.publicKey
Was publicKey?: string | Buffer; now publicKey?: jwt.Secret. npmjs.com - Signature changed
JwtVerifyOptions.secret
Was secret?: string | Buffer; now secret?: jwt.Secret. npmjs.com
@nestjs/jwt 12.0.0 breaking changes
- Removed
The root index.js, index.d.ts and index.ts shims are gone, so code relying on them must import from the package's exports map. github.com - Removed
@nestjs.jwt.dist.jwt.service
Code that imports from dist/ paths of the package must import from the package root instead. github.com - Behavior changed
The package is published as pure ES module; CommonJS apps keep working on supported Node versions, but on older Node require() throws ERR_REQUIRE_ESM. github.com
@nestjs/jwt 11.0.1 breaking changes
- Signature changed
JwtModuleOptions.publicKey
Was publicKey?: string | Buffer; now publicKey?: jwt.Secret. npmjs.com - Signature changed
JwtModuleOptions.secret
Was secret?: string | Buffer; now secret?: jwt.Secret. npmjs.com - Signature changed
JwtService.sign
Was sign(payload: Buffer | object, options?: JwtSignOptions): string; now sign(payload: Buffer, options?: JwtSignOptions): string sign<T extends object = any>(payload: T, options?: JwtSignOptions): string. npmjs.com - Signature changed
JwtService.signAsync
Was signAsync(payload: Buffer | object, options?: JwtSignOptions): Promise<string>; now signAsync(payload: Buffer, options?: JwtSignOptions): Promise<string> signAsync<T extends object = any>(payload: T, options?: JwtSignOptions)... npmjs.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.