---
title: "asn1js 4.1.0: release notes, upgrades and advisories"
description: "asn1js 4.1.0: release notes, breaking changes by major version and no known security advisory."
url: https://inlinr.com/packages/asn1js
lang: en
---

[Packages](https://inlinr.com/packages)

# asn1js

4.1.0 · 19 Nov 2026 BSD-3-Clause 38.6M / week [Repository](https://github.com/PeculiarVentures/ASN1.js) [Homepage](https://github.com/PeculiarVentures/ASN1.js#readme) [npm](https://www.npmjs.com/package/asn1js) [Atom feed](https://inlinr.com/packages/feed/asn1js)

Your version 

## Where each line stands

[Plan an upgrade](https://inlinr.com/packages/asn1js/upgrade)

LineNewestSecurity

- 4.x 4.1.0 No known advisory Latest line
- 3.x 3.1.0 No known advisory [To 4.1.0](https://inlinr.com/packages/asn1js/upgrade/3.1.0-4.1.0)
- 2.x 2.4.0 No known advisory [To 4.1.0](https://inlinr.com/packages/asn1js/upgrade/2.4.0-4.1.0)
- 1.x 1.2.12 No known advisory [To 4.1.0](https://inlinr.com/packages/asn1js/upgrade/1.2.12-4.1.0)

## Latest releases

[All 46 releases](https://inlinr.com/packages/asn1js/releases)

1. 4.x · latest line
2. ### [4.1.0](https://inlinr.com/packages/asn1js/releases/4.1.0 "Open this release") [](https://github.com/PeculiarVentures/ASN1.js/releases/tag/v4.1.0 "Read this release where it was published")  
19 Nov 2026

  - **der:** add strict DER decoding and validation helpers
  - **oid:** add opt-in strict validation and encoding
  - **boolean:** print the value in toString()
3. ### [4.0.0](https://inlinr.com/packages/asn1js/releases/4.0.0 "Open this release") [](https://github.com/PeculiarVentures/ASN1.js/releases/tag/v4.0.0 "Read this release where it was published")  
19 Oct 2026

  - Breaking  
  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.
4. 3.x · maintenance
5. ### [3.1.0](https://inlinr.com/packages/asn1js/releases/3.1.0 "Open this release") [](https://github.com/PeculiarVentures/ASN1.js/releases/tag/v3.1.0 "Read this release where it was published")  
16 Oct 2026

  - Migrate test runner from Jest to Vitest
  - Migrate eslint to oxlint, oxfmt
  - **build:** Exclude tests from production type checking

Dependency tracking

## Know when your own dependencies move

asn1js shipped a new major in the last 12 months, among 6 releases. inlinr shows which of your projects are behind, and what the upgrade breaks.

- Advisories reach you  
An email when a critical or high advisory affects a project, before the next install.
- Upgrades checked first  
Peer ranges, Node, ESM-only and types changes read before you bump.
- Only what matters  
Majors and breaking notes stay; patches and sibling bumps fold into one line.

[How dependency tracking works](https://inlinr.com/dependencies)

## Security

No known security advisory.

## Health

[Details](https://inlinr.com/packages/asn1js/security#signals)

- **Provenance**:
- **Publisher**:
- **Maintainers**:
- **Scorecard**:
- **Size**:

## Weekly downloads

Reading releases, release notes and advisories…

Registry facts last checked 20 Nov 2026\. Releases and advisories last read 20 Nov 2026.

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
