Packages

@peculiar/asn1-schema

3.1.0 · 19 Nov 2026MIT37.8M / weekRepositoryHomepagenpmAtom feed

Your version

3.0.0

major26 Oct 2026Where it was published

3.1.0 is the newest release of 3.x.

Summary· from the note as AI read it

Migration neededRead before upgrading: 2 changes to make.

New minimums

  • Upgrade Node to ^20.19 or >=22.12, use ESM, install asn1js ^4 peer
  • Package is ESM-only; requires Node.js ^20.19.0 or >=22.12.0

In short

2 breaking

  • Breaking

    All @peculiar/asn1-* packages are ESM-only and require Node.js ^20.19.0 || >=22.12.0 (was >=14). CommonJS code can still require() them on those versions; Node.js 22.0-22.11 cannot. build/cjs, build/es2015 and build/types are replaced by build/.js and build/.d.ts, and deep imports are blocked by exports. TypeScript projects compiling to CommonJS need "module": "node20" or "nodenext" (node16 fails with TS1479). @peculiar/asn1-schema ^3 and asn1js ^4 are now peer dependencies, and asn1js 3 objects fail the instanceof checks. tslib is no longer a dependency, and @peculiar/utils moves to ^4.1.

  • Breaking

    ship ESM-only output for Node.js ^20.19.0 || >=22.12.0

Release note

Breaking changes

  • Breaking

    All @peculiar/asn1-* packages are ESM-only and require Node.js ^20.19.0 || >=22.12.0 (was >=14). CommonJS code can still require() them on those versions; Node.js 22.0-22.11 cannot. build/cjs, build/es2015 and build/types are replaced by build/.js and build/.d.ts, and deep imports are blocked by exports. TypeScript projects compiling to CommonJS need "module": "node20" or "nodenext" (node16 fails with TS1479). @peculiar/asn1-schema ^3 and asn1js ^4 are now peer dependencies, and asn1js 3 objects fail the instanceof checks. tslib is no longer a dependency, and @peculiar/utils moves to ^4.1.0. The public API is unchanged. Migration notes: the "Breaking Changes In v3" section of github.com/PeculiarVentures/asn1-schema

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.