Skip to content

2.2.0

Choose a tag to compare

@paulmillr paulmillr released this 21 Apr 19:06
· 17 commits to main since this release
2.2.0
1389ed6
  • April 2026 self-audit (all files): no major issues found
    • Audited for spec compliance and security
  • Fix all Byte Array types, to ensure proper work in both TypeScript 5.6 & TypeScript 5.9+
    • TS 5.6 has Uint8Array, while TS 5.9+ made it generic Uint8Array<ArrayBuffer>
    • This creates incompatibility of code between versions
    • Previously, it was hard to use and constantly emitted errors similar to TS2345
    • See typescript#62240 for more context
  • Fix compilation issues on TypeScript v6
  • Improve tree-shaking, reduce bundle sizes
  • utf8: make decoder strict, use isWellFormed (polyfilled in some envs)
  • Add strict ascii decoder (char range 0..127)
  • Bech32 examples in the docs by @davay42 in #44
  • Add overload to Bech32.decode to handle arbitrary string input by @webmaster128 in #45
  • perf: trust Uint8Array.fromBase64 to check non-whitespace chars by @ChALkeR in #47

New Contributors

(We're skipping v2.1, to align with other noble / scure packages)

Full Changelog: 2.0.0...2.2.0