@peculiar/x509
3.1.0 · 27 Oct 2026MIT24.9M / weekRepositoryHomepagenpmAtom feed
59 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 3.x · latest line
3.1.0
27 Oct 2026chain: add bounded path search to explicit trust anchors
chain: add bounded path search to explicit trust anchors
chain: require a limit for resource exhaustion errors
Features
chain: add bounded path search to explicit trust anchors
chain: add bounded path search to explicit trust anchors
Bug Fixes
chain: require a limit for resource exhaustion errors
chain: use named parameters for chain build errors
chain: validate trust anchors and clarify search diagnostics
3.0.0
27 Oct 2026Summary· from the note as AI read it
Read before upgrading: 4 changes to make.
- 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.
Breaking changes
- 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.
Bug Fixes
Reject trailing data after DER-encoded input
- 2.x
2.2.0
15 Oct 2026Don't apply fromBER limits when parsing our own DER
What's Changed
Don't apply fromBER limits when parsing our own DER
2.1.0
4 Sep 2026algorithm: Register ML-DSA and SLH-DSA AlgorithmProvider handlers (FIPS 204 / FIPS 205)
Add crypto arg to findRevoked
Expose asn1 parse options
What's Changed
algorithm: Register ML-DSA and SLH-DSA AlgorithmProvider handlers (FIPS 204 / FIPS 205)
Add crypto arg to findRevoked
Expose asn1 parse options
Encode CRL revoked serial numbers as positive INTEGERs
2.0.0
23 Mar 2026Make reflect polyfill required
Optimize PEM encoding and decoding
Add tests for X509Crl and X509CrlGenerator
What's Changed
Make reflect polyfill required
Optimize PEM encoding and decoding
Add tests for X509Crl and X509CrlGenerator
Test/x509 crl generator duplicate serial 14597853205968635182
- 1.x
1.14.3
12 Jan 2026Relax Node.js engine requirement from >=22.0.0 ro >=20.0.0
What's Changed
Relax Node.js engine requirement from >=22.0.0 ro >=20.0.0
1.14.2
16 Nov 2025Pass crypto
1.14.1
16 Nov 2025Update documentation workflow and package management
Migrate library from Yarn to npm
Update ESLint configuration and dependencies
1.14.0
8 Sep 2025ASN structure reading optimizations
1.13.0
9 Jul 20251.12.4
10 Jun 2025Update GitHub Actions to use checkout and setup-node v4
Update website dependencies to latest versions
Fix PEM validation to handle CR characters
What's Changed
Update GitHub Actions to use checkout and setup-node v4
Update website dependencies to latest versions
Fix PEM validation to handle CR characters
1.2.1 – 1.12.339 releases without a noteShow each
- 1.12.31 Oct 2024no note
- 1.12.217 Sep 2024no note
- 1.12.113 Aug 2024no note
- 1.12.08 Aug 2024no note
- 1.11.03 Jun 2024no note
- 1.10.127 May 2024no note
- 1.10.021 May 2024no note
- 1.9.730 Jan 2024no note
- 1.9.619 Dec 2023no note
- 1.9.518 Aug 2023no note
- 1.9.416 Aug 2023no note
- 1.9.323 Jan 2023no note
- 1.9.217 Nov 2022no note
- 1.9.117 Nov 2022no note
- 1.9.015 Nov 2022no note
- 1.8.48 Nov 2022no note
- 1.8.331 Aug 2022no note
- 1.8.222 Aug 2022no note
- 1.8.125 Jul 2022no note
- 1.8.020 Jul 2022no note
- 1.7.313 Jul 2022no note
- 1.7.217 Jun 2022no note
- 1.7.117 Jun 2022no note
- 1.7.09 Jun 2022no note
- 1.6.419 May 2022no note
- 1.6.317 May 2022no note
- 1.6.217 May 2022no note
- 1.6.117 Dec 2021no note
- 1.6.011 Nov 2021no note
- 1.5.226 Oct 2021no note
- 1.5.126 Oct 2021no note
- 1.5.025 Oct 2021no note
- 1.4.19 Sep 2021no note
- 1.4.027 Aug 2021no note
- 1.3.231 May 2021no note
- 1.3.126 May 2021no note
- 1.3.029 Apr 2021no note
- 1.2.216 Mar 2021no note
- 1.2.11 Mar 2021no note
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.