Latest Release
- Repository: cashubtc/cashu-ts
- Published on: 2025-08-04 15:04:43 UTC
- Version Tag: v2.6.0
- By: Egge21M
- On GitHub: cashubtc/cashu-ts/releases
v2.6.0 (since v2.5.3)
Added
- Browser & Testing
test:prepare
script to download Chromium binaries for browser tests- Removed
test/__screenshots__/
and deprecatedbrowser-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 onWSConnection
Logger
class + replaced all console statementsmeasureTime
utility function- Crypto / Wallet
- P2PK multisig support (NUT-11):
getP2PKWitnessPubkeys
/getP2PKWitnessRefundkeys
withbeStrict
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 inOnOpenError
, 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
- [FIX] Proof Selection and Fee Calculation by @lollerfirst in https://github.com/cashubtc/cashu-ts/pull/312
- Modular exports by @gandlafbtc in https://github.com/cashubtc/cashu-ts/pull/297
- Remove
stripDleq
fromCashuWallet.send
by @Egge21M in https://github.com/cashubtc/cashu-ts/pull/309 - Ensure active keyset chosen has the wallet unit by @robwoodgate in https://github.com/cashubtc/cashu-ts/pull/300
- Added NUT-11 P2PK multisig support and corresponding tests by @robwoodgate in https://github.com/cashubtc/cashu-ts/pull/299
- New online swap order by @lollerfirst in https://github.com/cashubtc/cashu-ts/pull/319
- Streamline API-Extractor flow by @Egge21M in https://github.com/cashubtc/cashu-ts/pull/326
- Adds Logger Interface and ConsoleLogger class to make logging opt-in and flexible by @robwoodgate in https://github.com/cashubtc/cashu-ts/pull/324
- Don't throw when unsubscribe is attempted on non open socket by @jbojcic1 in https://github.com/cashubtc/cashu-ts/pull/316
- Implements RGLI algorithm for selectProofsToSend(), plus tests by @robwoodgate in https://github.com/cashubtc/cashu-ts/pull/314
- Add onClose method to WSConnection by @gudnuf in https://github.com/cashubtc/cashu-ts/pull/329
- Move to extensionless imports by @robwoodgate in https://github.com/cashubtc/cashu-ts/pull/335
- Fix linting errors by @robwoodgate in https://github.com/cashubtc/cashu-ts/pull/333
Full Changelog: https://github.com/cashubtc/cashu-ts/compare/v2.5.3...v2.6.0
Data updated on: 2025-08-09 14:47 UTC