unstale

npm / @sd-jwt/core

@sd-jwt/core

What changed in @sd-jwt/core 0.20 to 0.25, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.

30 breaking2 security3 new APIs and options9 fixes and other

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

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

@sd-jwt/core 0.2522 changes

Breaking changes 22

@sd-jwt/core 0.242 changes

Breaking changes 2

  • Verification rejects issuer-signed JWTs and Key Binding JWTs with a crit header the verifier does not understand, as RFC 7515 requires.

    0.24.1release notes

  • Verification rejects SD-JWT VCs where a protected claim arrives in a Disclosure.

    0.24.1release notes

@sd-jwt/core 0.231 changes

Breaking changes 1

  • The CommonJS build is dropped; only ESM is published, avoiding dual-package hazards that caused instanceof checks to fail in some runtimes.

    0.23.0release notes

@sd-jwt/core 0.229 changes

Breaking changes 4

  • This check now applies to the issuer-signed SD-JWT payload rather than the Key Binding JWT or Status List Token.

    0.22.0release notes

  • Use this option to constrain the Key Binding JWT audience; credential expectedAudience no longer applies to it.

    0.22.0release notes

  • Time-claim failures now throw this SDJWTException subclass with structured details and error codes.

    0.22.0release notes

  • The constructor now takes an options object with details, code, and cause instead of positional arguments.

    0.22.0release notes

Security 1

  • Adds a verifier option to restrict Key Binding JWT algorithms; allowedIssuerAlgorithms applies only to issuer-signed JWTs.

    0.22.0release notes

New APIs and options 1

  • Provides structured time-check details, including the claim, its value, current time, allowed clock skew, and maximum age when applicable.

    0.22.0release notes

Fixes and other changes 3

  • Issuer algorithm restrictions apply to issuer-signed JWTs, not Key Binding JWTs or Status List Tokens; status-list signatures remain verified by the configured status verifier.

    0.22.0release notes

  • Time-check failures identify the Key Binding JWT and use dedicated expired, not-yet-valid, and too-old error codes.

    0.22.0release notes

  • Uses the code on SDJWTException rather than matching message substrings; errors without a code are reported as UNKNOWN_ERROR.

    0.22.0release notes

@sd-jwt/core 0.219 changes

Breaking changes 1

  • The CommonJS entrypoint is now dist/index.cjs instead of dist/index.js.

    0.21.0release notes

New APIs and options 2

  • Adds the standard RFC 7519 aud and jti claims to the payload type.

    0.21.1release notes

  • Type declarations are now exposed through the types export condition.

    0.21.0release notes

Fixes and other changes 6

  • Propagates the ExtendedPayload generic through getClaims, improving payload typing.

    0.21.1release notes

  • Propagates the ExtendedPayload generic through keys, improving payload typing.

    0.21.1release notes

  • Propagates the ExtendedPayload generic through presentableKeys, improving payload typing.

    0.21.1release notes

  • Propagates the ExtendedPayload generic through decode, improving payload typing.

    0.21.1release notes

  • Nested disclosure values are cloned before recursive unpacking, preventing mutation during unpack.

    0.21.1release notes

  • Decoding now uses @owf/identity-common; invalid UTF-8 is rejected, and errors remain SDJWTException with the same messages.

    0.21.0release notes

@sd-jwt/core 0.201 changes

Security 1

  • SD JWT JS: Tampered disclosures silently dropped instead of rejected

    0.20.0security advisory