Skip to content

Releases

v3.1.0

Choose a tag to compare

@github-actions github-actions released this 27 Oct 19:40
ca33303

3.1.0 (2026-10-27)

Features

  • chain: add bounded path search to explicit trust anchors (2f397b8)
  • chain: add bounded path search to explicit trust anchors (33aaa42)

Bug Fixes

  • chain: require a limit for resource exhaustion errors (cb7a643)
  • chain: use named parameters for chain build errors (9e8f283)
  • chain: validate trust anchors and clarify search diagnostics (30cfca6)

v3.0.0

Choose a tag to compare

@github-actions github-actions released this 27 Oct 14:41
925ec13

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

  • reject trailing data after DER-encoded input (#163) (47ae36b)

Build System

  • ship ESM-only output for Node.js ^20.19.0 || >=22.12.0 (e7b6ab7)

v2.2.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 09:38

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

Choose a tag to compare

@github-actions github-actions released this 04 Sep 10:33

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

Full Changelog: v2.0.0...v2.1.0

Release v2.0.0

Choose a tag to compare

@github-actions github-actions released this 23 Mar 14:11

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

Choose a tag to compare

@github-actions github-actions released this 12 Jan 09:34

What's Changed

New Contributors

Full Changelog: v1.14.2...v1.14.3

Release v1.14.2

Choose a tag to compare

@github-actions github-actions released this 16 Nov 11:31

What's Changed

New Contributors

Full Changelog: v1.14.1...v1.14.2

Release v1.14.1

Choose a tag to compare

@github-actions github-actions released this 16 Nov 11:12

What's Changed

  • Update documentation workflow and package management by @donskov in #109
  • Migrate library from Yarn to npm by @donskov in #110
  • Update ESLint configuration and dependencies by @donskov in #111

Full Changelog: v1.14.0...v1.14.1

Release v1.14.0

Choose a tag to compare

@github-actions github-actions released this 08 Sep 18:41

What's Changed

Full Changelog: v1.13.0...v1.14.0

Release v1.13.0

Choose a tag to compare

@github-actions github-actions released this 09 Jul 10:54

Full Changelog: v1.12.4...v1.13.0