Repository navigation
Releases
Releases · PeculiarVentures/x509
v3.1.0
v3.0.0
3.0.0 (2026-10-27)
⚠ BREAKING CHANGES
- DER/BER input that continues after the encoded structure throws "Unexpected data after the ASN.1 structure: trailing bytes" instead of being accepted with the extra bytes kept in rawData.
- @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
Build System
- ship ESM-only output for Node.js ^20.19.0 || >=22.12.0 (e7b6ab7)
v2.2.0
What's Changed
- fix: don't apply fromBER limits when parsing our own DER by @hacdias in #150
- chore(deps): update non-major dependencies by @microshine in #153
Full Changelog: v2.1.0...v2.2.0
v2.1.0
What's Changed
- test: drop access to private X509Crl.tbs getter by @dotCooCoo in #134
- feat(algorithm): register ML-DSA and SLH-DSA AlgorithmProvider handlers (FIPS 204 / FIPS 205) by @dotCooCoo in #135
- fix: add crypto arg to findRevoked by @hacdias in #137
- feat: expose asn1 parse options by @hacdias in #141
- fix: encode CRL revoked serial numbers as positive INTEGERs by @hacdias in #140
- chore: upgrade dependencies and migrate to TypeScript 6 by @microshine in #146
- chore: migrate linting and formatting from ESLint to Oxc by @microshine in #147
- ci: update GitHub Actions and expand package compatibility checks by @microshine in #149
New Contributors
- @dotCooCoo made their first contribution in #134
- @hacdias made their first contribution in #137
Full Changelog: v2.0.0...v2.1.0
Release v2.0.0
What's Changed
- Make reflect polyfill required by @donskov in #130
- perf: optimize PEM encoding and decoding by @aww-aww in #128
- Add tests for X509Crl and X509CrlGenerator by @aww-aww in #127
- Test/x509 crl generator duplicate serial 14597853205968635182 by @aww-aww in #126
New Contributors
Full Changelog: v1.14.3...v2.0.0
Release v1.14.3
What's Changed
- Relax Node.js engine requirement from >=22.0.0 ro >=20.0.0 by @floriannari in #119
- chore(deps): bump glob from 11.0.3 to 11.1.0 by @floriannari in #120
New Contributors
- @floriannari made their first contribution in #119
Full Changelog: v1.14.2...v1.14.3
Release v1.14.2
What's Changed
- fix: pass crypto by @TimoGlastra in #108
New Contributors
- @TimoGlastra made their first contribution in #108
Full Changelog: v1.14.1...v1.14.2
Release v1.14.1
Release v1.14.0
What's Changed
- ASN structure reading optimizations by @microshine in #107
Full Changelog: v1.13.0...v1.14.0
Release v1.13.0
Full Changelog: v1.12.4...v1.13.0