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!

Reply to this note

Please Login to reply.

Discussion

Like watching your child take it's first steps 🄳 šŸ¾

Best team in the world, thank you guys šŸ‘ šŸ™

amazing work rob šŸ‘

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!