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!
Login to reply
Replies (10)
OMG... it's finally here! š„³ š š¾ š„
nostr:nevent1qvzqqqqqqypzph0s8t9gtt0q88n8gt2mau7lx5klrxws6v0z9wv93eld4pwt8wa7qy2hwumn8ghj7un9d3shjtnyv9kh2uewd9hj7qgwwaehxw309ahx7uewd3hkctcpr4mhxue69uhkummnw3ezucnfw33k76twv4ezuum0vd5kzmp0qqs965uc0xt6uzwr8fn89xm74t0glkf0je0v3fuhh8tjh9n0sgc0pzs2clf0q
Like watching your child take it's first steps š„³ š¾
Best team in the world, thank you guys š š
nostr:nevent1qqsp9tkaa2za29e8et8ts76unqhvcmhtj5wpakvkspy45mh7xkc9wfqpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhsyg8zvtkn5g4d33rckpm77htu26ev83a9xpgea45ka5h903j7z3lmevpsgqqqqqqs6q299n
Iām ashamed to ask but can someone tell me what this does?
1) does it affect UX in any way?
2) does the mint need to update for these changes?
3) will wallets based on previous versions still work?
cashu-ts is a library, not an app, neither a mint or a wallet itself. The cashu-ts library is used for the client side, which means that it'll be used in some wallets. So answering your questions:
1) It doesn't affect the UX, rather the DX.
2) cashu-ts has nothing to do with mints.
3) Yes, wallets will still work, the Cashu protocol hasn't changed. But the existent wallets already using cashu-ts will have to put some effort in the migration.
Could we have a simplified explanation of Cashu for non-coders? I hear a lot about it but it's hard to work out what it is and what it does based the on Nostr posts.
There is plenty of videos already. In English Iād recommend nostr:npub12rv5lskctqxxs2c8rf2zlzc7xx3qpvzs3w4etgemauy9thegr43sf485vg ās talk at the Freedom Forum: https://youtu.be/uMBa7C34Uts
Start here: https://cashu.space
If you have specific questions afterwards, please ask!
amazing work rob š