github cashubtc/cashu-ts v2.6.0

latest releases: v2.7.1, v2.7.0
one month ago

v2.6.0 (since v2.5.3)

Added

  • Browser & Testing
    • test:prepare script to download Chromium binaries for browser tests
    • Removed test/__screenshots__/ and deprecated browser-integration project
    • Separate integration projects (work around CLI-excludes)
  • Formatting & Linting
    • .editorconfig file
    • Switched to short-form array syntax & trailingComma=all (Prettier v3 default)
    • TSDOC formatting via Prettier, removed unused packages
    • Prettier v3 + ESLint integration (plugins, rules for type imports/exports)
  • CI & Tooling
    • Linting CI check, lint, format, api:check chore scripts
    • Updated Vitest (no-nodejs-modules rule, browser fixes)
    • Engine bumped to ≥22.4.0, GH workflows → v22
  • New APIs
    • onClose method on WSConnection
    • Logger class + replaced all console statements
    • measureTime utility function
  • Crypto / Wallet
    • P2PK multisig support (NUT-11):
      • getP2PKWitnessPubkeys / getP2PKWitnessRefundkeys with beStrict option
    • RGLI algorithm for selectProofsToSend() (coin-selection) + tests

Changed

  • Removed .js extensions on imports
  • Modular-exports refactor (replaced manual exports)
  • API updates: stricter Error type in OnOpenError, changed logger signature, deprecations & TSDOC notes
  • Engine/workflows bumped as above

Fixed

  • Merge-commit fixes for Playwright & styles
  • Lint warnings/errors across WebSocket, JSON-RPC, CBOR modules
  • Browser-testing quirks & API-extractor CI failures
  • Coin-selection bugs (replacement logic, max-over-amount, fee calculations)
  • Unsubscribe on closed socket no longer throws

What's Changed

Full Changelog: v2.5.3...v2.6.0

Don't miss a new cashu-ts release

NewReleases is sending notifications on new releases.