From 641b0219d42d0a16532a8cc0ce08b0ffde30d164 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 29 Sep 2026 20:00:04 +0000 Subject: [PATCH 1/2] Prepare the 2.0.0 changelog Move the Unreleased entries into a dated 2.0.0 section and add the Keep a Changelog comparison links. Major rather than minor because the section lists four changes that stop previously-compiling code from compiling: RawBytes moving off the default encode signatures, encode() rejecting values that do not fit, SchemaNode's collections becoming readonly, and the removal of the cli/ scripts. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01KPw4YEzoKtskJR9n33a1yS --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 47d0cc6..1fd17fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,10 @@ Releases before this file was added are documented in the ## [Unreleased] +Nothing yet. + +## [2.0.0] - 2026-09-29 + Typed encoding and decoding. `decode()` used to return `unknown` and `encode()` used to accept `unknown`, so callers wrote their own interfaces and cast. The types are now derived from the schema, three ways: from an inline `SchemaNode` @@ -104,3 +108,6 @@ and the emitted JavaScript is unchanged. documented a `{ name: value }` shape the codecs stopped producing, with a hex string that threw when decoded. They now show `{ key, value }` with working hex. + +[Unreleased]: https://github.com/sysdevrun/asn1-per-ts/compare/v2.0.0...HEAD +[2.0.0]: https://github.com/sysdevrun/asn1-per-ts/compare/v1.4.0...v2.0.0 From 4476d92c13d1b11e50316c278d20b2a1b3ddd160 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 29 Sep 2026 20:00:04 +0000 Subject: [PATCH 2/2] Release v2.0.0 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 85c829c..bccafbf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "asn1-per-ts", - "version": "1.4.0", + "version": "2.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "asn1-per-ts", - "version": "1.4.0", + "version": "2.0.0", "license": "MIT", "dependencies": { "peggy": "^5.0.6" diff --git a/package.json b/package.json index 09861de..278d4b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "asn1-per-ts", - "version": "1.4.0", + "version": "2.0.0", "description": "PER (Packed Encoding Rules) unaligned encoder/decoder for ASN.1 types in TypeScript", "type": "module", "exports": {