Cashu-TS Version 3.0.0
We're excited to announce version 3.0.0 of cashu-ts! This release brings significant improvements to the API design, making it more intuitive and powerful. While this version includes breaking changes, we've streamlined the developer experience and added new features that make working with Cashu easier than ever.
Highlights
- Simplified Class Names & Initialization
- Introducing WalletOps - a beautiful, chainable API for wallet operations:
const { keep, send } = await wallet.ops
.send(amount, proofs)
.asP2PK({ pubkey: bytesToHex(pubKeyBob) })
.includeFees(true)
.run();
- Simplified Exports
- Better Organization
- Enhanced Authentication
- API Cleanup
- Developer Experience and Type Safety
Please see the full migration guide for detailed instructions on upgrading your code:
https://github.com/cashubtc/cashu-ts/blob/v3.0.0/migration-3.0.0.md
Thanks to all contributors who made this release possible! Special thanks to nostr:nprofile1qy2hwumn8ghj7etyv4hzumn0wd68ytnvv9hxgqgdwaehxw309ahx7uewd3hkcqpqemq0gngdvntdn4apepxrxr65vln49nytqe0hyr58fg9768z5zmfqsd2lex who led the redesign effort and showed incredible dedication in building this release!