Packages

@peculiar/x509

3.1.0 · 27 Oct 2026MIT24.9M / weekRepositoryHomepagenpmAtom feed

Upgrading @peculiar/x509 From 1.14.0 to 3.1.0

8 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 1.14.0Newest 1.x1.14.3

Before you upgrade

Tick each one off as you go
  • Breaking3.0.0
  • Breaking3.0.0

Release by release

  1. 3.1.0

    27 Oct 20261 new · 3 fixes
    • New

      chain: add bounded path search to explicit trust anchors

    • Fixed

      chain: require a limit for resource exhaustion errors

    • Fixed

      chain: use named parameters for chain build errors

    • Fixed

      chain: validate trust anchors and clarify search diagnostics

  2. 3.0.0

    Migration needed27 Oct 20261 fix
    • Breaking

      DER/BER input that continues after the encoded structure throws "Unexpected data after the ASN.1 structure: <n> trailing bytes" instead of being accepted with the extra bytes kept in rawData.

    • Breaking

      @peculiar/x509 is ESM-only and requires Node.js ^20.19.0 || >=22.12.0 (was >=20.0.0). CommonJS code can still require("@peculiar/x509") on these versions through require(esm); Node.js 20.0-20.18 and 22.0-22.11 can't. build/x509.cjs.js and build/x509.es.js are replaced by build/index.js, and deep imports are blocked by "exports". TypeScript projects compiling to CommonJS need "module": "node20" or "nodenext" (node16 fails with TS1479). build/x509.js (the browser script with the x509 global) and the unpkg/jsdelivr fields are removed; browsers use the ESM build through a bundler or esm.sh, or pin @peculiar/x509@2 for the old script. @peculiar/asn1-schema ^3.0.0 is a peer dependency and the @peculiar/asn1-* dependencies move to 3 (asn1js 4), so ASN.1 objects from asn1-schema 2 packages can't be passed in. pvtsutils is replaced by @peculiar/utils 4. The public API is unchanged and the Reflect polyfill is still required. See "Breaking Changes In v3" in the README.

    • Fixed

      Reject trailing data after DER-encoded input

  3. 2.2.0

    15 Oct 20261 fix
    • Fixed

      Don't apply fromBER limits when parsing our own DER

  4. 2.1.0

    4 Sep 20262 new · 2 fixes
    • New

      algorithm: Register ML-DSA and SLH-DSA AlgorithmProvider handlers (FIPS 204 / FIPS 205)

    • New

      Expose asn1 parse options

    • Fixed

      Add crypto arg to findRevoked

    • Fixed

      Encode CRL revoked serial numbers as positive INTEGERs

  5. 2.0.0

    23 Mar 20262 new
    • New

      Optimize PEM encoding and decoding

    • New

      Add tests for X509Crl and X509CrlGenerator

  6. 1.14.3nothing new or fixed in the note

  7. 1.14.2

    16 Nov 20251 fix
    • Fixed

      Pass crypto

  8. 1.14.1nothing new or fixed in the note

6 other lines we could not sort, mostly version bumps
  • Make reflect polyfill required

    2.0.0
  • Test/x509 crl generator duplicate serial 14597853205968635182

    2.0.0
  • Relax Node.js engine requirement from >=22.0.0 ro >=20.0.0

    1.14.3
  • Update documentation workflow and package management

    1.14.1
  • Migrate library from Yarn to npm

    1.14.1
  • Update ESLint configuration and dependencies

    1.14.1

7 internal lines (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.