Skip to content

Release v2.0.0 - #44

Merged
chtitux merged 2 commits into
mainfrom
claude/typed-encode-decode-api-a0zy2g
Sep 29, 2026
Merged

chtitux merged 2 commits into
mainfrom
claude/typed-encode-decode-api-a0zy2g

Conversation

@chtitux

@chtitux chtitux commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Version bump and changelog for the 2.0.0 release, following PUBLISH.md.

Major rather than minor: the release contains four changes that stop previously-compiling code from compiling, all listed under Changed and Removed in CHANGELOG.md.

  • RawBytes moved off the default encode signatures to codec.raw
  • encode() now rejects values that do not fit the schema
  • SchemaNode's collections are readonly
  • The cli/generate-schema.ts and cli/generate-types.ts scripts were removed in favour of the asn1-per-ts bin

The runtime behaviour and the emitted JavaScript are unchanged; every break is at the type level.

Contents

  • CHANGELOG.md — [Unreleased] moved into a dated [2.0.0] section, with Keep a Changelog comparison links
  • package.json / package-lock.json — 1.4.0 → 2.0.0 (via npm version major)

Verification

Run against a clean npm ci, matching what publish.yml does before it publishes:

  • npm run build — clean
  • npm test — 587 tests, 33 suites, all passing
  • npx tsc --noEmit — clean
  • npm pack --dry-run — 166 files, 77.4 kB, with dist/cli/main.js present for the bin entry

After merging

Publishing is triggered by a published GitHub release, not by the merge. Create a release for tag v2.0.0 targeting main; publish.yml then runs npm ci, build and tests before npm publish over OIDC.

No tag is pushed by this PR — creating the release will create v2.0.0 at main's head.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KPw4YEzoKtskJR9n33a1yS


Generated by Claude Code

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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KPw4YEzoKtskJR9n33a1yS
@chtitux
chtitux merged commit 73ad1fa into main Sep 29, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants