@peculiar/asn1-adobe-acrobat
v3.1.0
Published
ASN.1 schema for Adobe Acrobat DC digital signature OIDs and X.509 extensions.
Readme
ASN.1 schema for Adobe Acrobat DC digital signature OIDs and X.509 extensions.
Use the exported classes with @peculiar/asn1-schema helpers such as AsnConvert, AsnParser, and AsnSerializer to parse or serialize DER-encoded data defined by the referenced specification.
Installation
npm install @peculiar/asn1-adobe-acrobatBreaking Changes In v3
v3 is ESM-only and requires Node.js ^20.19.0 || >=22.12.0 (was >=14). CommonJS code can still require("@peculiar/asn1-adobe-acrobat") on these versions; Node.js 22.0–22.11 can't. The public API is unchanged. See the full notes.
- TypeScript compiling to CommonJS: use
"module": "node20"or"nodenext"(node16fails with TS1479). ESM and bundler setups need no changes. - Jest in CommonJS mode: switch to ESM mode or Vitest, or configure an ESM-to-CommonJS transformer and make sure
transformIgnorePatternsdoesn't exclude the@peculiar/*packages andasn1js. - Deep imports (
@peculiar/asn1-adobe-acrobat/build/...) are blocked byexports; import from@peculiar/asn1-adobe-acrobat. - Peer dependencies:
@peculiar/asn1-schema(^3.0.0) is a peer instead of a dependency, so your app shares one copy with the other@peculiar/asn1-*packages. npm installs peers automatically.
