Repository navigation
Releases
Releases · PeculiarVentures/ASN1.js
v4.1.0
v4.0.0
4.0.0 (2026-10-19)
⚠ BREAKING CHANGES
- asn1js is ESM-only and requires Node.js ^20.19.0 || >=22.12.0 (previously >=12.0.0), so Node.js versions below 20.19 and 22.0-22.11 are no longer supported. The CommonJS build is removed: build/index.js (CommonJS) and build/index.es.js are replaced by a single ES module, build/index.js, with build/index.d.ts, and the new exports map blocks deep imports into build/. CommonJS code can still require("asn1js") on supported Node.js versions through require(esm). TypeScript projects that compile to CommonJS need "module": "node20" or "nodenext". pvtsutils and pvutils are replaced by @peculiar/utils ^4.1. The exported API is unchanged, but new Integer({ value }) and the valueDec setter throw a RangeError for non-integer numbers (v3 truncated them), and encoding a UTCTime with a year outside 1950-2049 throws a RangeError, including new UTCTime({ valueDate }) (v3 wrapped 2050 to 1950; use GeneralizedTime). Integer.fromBigInt encodes negative values correctly, UniversalString encodes characters outside the BMP as single UCS-4 code points (v3 wrote surrogate pairs, which still decode), OID arcs and tag numbers from 2^49 to 2^53 now encode, and an odd-length BMPString or a UniversalString whose length isn't a multiple of 4 returns a decode error instead of throwing. Libraries that check instanceof against asn1js classes (pkijs, @peculiar/asn1-schema) must use the same asn1js major as the application. See "Breaking Changes In v4" in the README.
Build System
v3.1.0
What's Changed
- chore(deps): bump @babel/plugin-transform-modules-systemjs from 7.29.0 to 7.29.4 in /website by @dependabot[bot] in #153
- chore(deps): bump fast-uri from 3.1.0 to 3.1.2 in /website by @dependabot[bot] in #152
- chore(deps): bump qs and express in /website by @dependabot[bot] in #155
- chore(deps): bump shell-quote from 1.8.3 to 1.8.4 in /website by @dependabot[bot] in #156
- chore(deps): bump markdown-it from 14.1.0 to 14.2.0 in /website by @dependabot[bot] in #157
- chore(deps): bump launch-editor from 2.11.1 to 2.14.1 in /website by @dependabot[bot] in #158
- chore(deps): bump ws in /website by @dependabot[bot] in #159
- chore(deps): bump webpack-dev-server from 5.2.2 to 5.2.5 in /website by @dependabot[bot] in #160
- chore(deps): bump js-yaml from 3.14.2 to 3.15.0 in /website by @dependabot[bot] in #161
- chore(deps): bump websocket-driver from 0.7.4 to 0.7.5 in /website by @dependabot[bot] in #162
- chore(deps): bump immutable from 5.1.5 to 5.1.9 in /website by @dependabot[bot] in #163
- chore(deps): bump postcss from 8.5.10 to 8.5.22 in /website by @dependabot[bot] in #169
- chore(deps): bump shell-quote from 1.8.4 to 1.10.0 in /website by @dependabot[bot] in #168
- chore(deps): bump webpack-dev-server from 5.2.5 to 5.2.6 in /website by @dependabot[bot] in #166
- chore(deps): bump body-parser from 1.20.5 to 1.20.6 in /website by @dependabot[bot] in #167
- chore(deps): bump svgo from 3.3.3 to 3.3.4 in /website by @dependabot[bot] in #165
- chore(deps): bump fast-uri from 3.1.2 to 3.1.4 in /website by @dependabot[bot] in #164
- chore(deps): bump linkify-it from 5.0.1 to 5.0.2 in /website by @dependabot[bot] in #170
- Migrate test runner from Jest to Vitest by @donskov in #171
- chore(deps): bump fast-uri from 3.1.4 to 3.1.5 in /website by @dependabot[bot] in #172
- chore(deps): bump postcss from 8.5.22 to 8.5.25 in /website by @dependabot[bot] in #173
- Migrate eslint to oxlint, oxfmt by @TeoBonza in #175
- chore(deps): bump js-yaml from 3.15.0 to 3.15.1 in /website by @dependabot[bot] in #176
- chore(deps): bump brace-expansion from 1.1.14 to 1.1.18 in /website by @dependabot[bot] in #178
- Update dependencies by @TeoBonza in #177
- ci(release): align Trusted Publisher flow with PKI.js by @microshine in #180
- chore(deps): bump postcss-selector-parser in /website by @dependabot[bot] in #181
- chore(deps): bump browserslist from 4.28.2 to 4.28.8 in /website by @dependabot[bot] in #182
- chore(deps): bump fast-uri from 3.1.5 to 3.1.7 in /website by @dependabot[bot] in #183
- fix(build): exclude tests from production type checking by @microshine in #185
- chore(deps): bump colord from 2.9.3 to 2.10.0 in /website by @dependabot[bot] in #187
- chore(deps-dev): bump vitest from 4.1.10 to 4.1.11 by @dependabot[bot] in #188
- chore(deps): bump svgo from 3.3.4 to 3.3.5 in /website by @dependabot[bot] in #189
- chore(deps): bump joi from 17.13.3 to 17.13.7 in /website by @dependabot[bot] in #190
- chore(deps): bump http-proxy-middleware from 2.0.9 to 2.0.10 in /website by @dependabot[bot] in #192
- chore(deps): bump js-yaml from 3.15.1 to 3.15.2 in /website by @dependabot[bot] in #191
- chore(deps): bump image-size from 2.0.2 to 2.0.4 in /website by @dependabot[bot] in #193
- chore(deps): bump markdown-it from 14.2.0 to 14.3.2 in /website by @dependabot[bot] in #194
- chore(deps): bump @babel/core from 7.29.0 to 7.29.7 in /website by @dependabot[bot] in #198
- chore(deps): bump brace-expansion from 1.1.18 to 1.1.21 in /website by @dependabot[bot] in #197
- chore(deps): bump fast-uri from 3.1.7 to 3.1.8 in /website by @dependabot[bot] in #195
- chore(deps): bump nanoid from 3.3.16 to 3.3.19 in /website by @dependabot[bot] in #196
- chore(deps): bump Docusaurus to 3.10.2 in /website by @donskov in #199
- chore(deps): bump joi from 17.13.3 to 17.13.8 in /website by @dependabot[bot] in #200
- chore(deps): bump compression from 1.8.1 to 1.8.2 in /website by @dependabot[bot] in #202
- chore(deps): bump proxy-addr from 2.0.7 to 2.0.8 in /website by @dependabot[bot] in #201
- chore(deps-dev): bump source-map-js from 1.2.1 to 1.2.2 by @dependabot[bot] in #203
- chore(deps): update development dependencies and Vitest config by @microshine in #186
- chore(deps): bump fast-uri from 3.1.4 to 3.1.8 in /website by @dependabot[bot] in #204
- chore(deps): bump shell-quote from 1.10.0 to 1.12.0 in /website by @dependabot[bot] in #206
- fix(GeneralizedTime): omit trailing zeros in fractional seconds (DER) by @cllo-nl in #207
- perf: reduce ASN.1 parsing and BER encoding allocations by @microshine in #184
New Contributors
Full Changelog: v3.0.10...v3.1.0
Release v3.0.10
What's Changed
- Added parser limits to
asn1js.fromBER()to prevent unbounded BER parsing. - Optimized long-form ASN.1 tag parsing to avoid quadratic buffer growth.
Full Changelog: v3.0.9...v3.0.10
Release v3.0.7
What's Changed
- chore(deps): bump image-size from 1.1.1 to 1.2.1 in /website by @dependabot[bot] in #118
- chore(deps): bump estree-util-value-to-estree from 3.0.1 to 3.3.3 in /website by @dependabot[bot] in #119
- chore(deps): bump http-proxy-middleware from 2.0.7 to 2.0.9 in /website by @dependabot[bot] in #120
- Update website GitHub Actions and package dependencies by @donskov in #124
- Fixed Example to only use asn1js by @StaticBR in #82
- Migrate from Yarn to npm for dependency management by @donskov in #125
- Website: Fix npm audit issues by @donskov in #126
- fix: empty bitstring ber encoding output should be 0x030100 by @justin-tay in #123
New Contributors
- @StaticBR made their first contribution in #82
- @justin-tay made their first contribution in #123
Full Changelog: v3.0.6...v3.0.7
Bug-fix release
Fixed bug with zero-length OCTETSTRING
Release v1.1.0
- Fixed minor bugs;
- Syncronization for "common.js" with PKIjs;
Release v1.0.2
Append information about how to use ASN1.js in Node.js environment