Turns out the new stable release of NextJS depends on a React version that is a release candidate.
I really do love TypeScript, but this whole ecosystem is simply f'ed up...
Just released a tiny cashu-ts update (v2.1) π₯ π₯
Added a MintInfo class that makes it easier to check wether a mint supports a certain optional NUT:
This is turning out to be the biggest change I have made to cashu-ts so far... But the possibilities are endless!
In this example we receive a token and swap it into proofs locked to two pubkeys, as well as some standard secret locked proofs. All in one operation.
Implementing fully customisable blinded messages in cashu-ts nearly drove me insane.
Maybe it had something to do with the fact that my phone had deleted my local music and I listened to the same 4 songs on the plane, over and over again for 4 hoursβ¦ idkβ¦ but at the end I decided that the blinding / unblinding logic inside cashu-ts needs a massive refactor before we can continue the custom messages. So LFGN π₯
cashu-ts v2.0 released!
I am thrilled to announce that v2.0 of your favourite cashu lib for the web has just been released! Next to adding a bunch of awesome new features, this release streamlines a lot of the libraries API and improves DX. Here's a quick overview:
What's New:
- Enhanced token handling with V4 Tokens as the default.
- Payment requests and WebSocket updates with NUT-17 and NUT-18 support.
- Send, receive and verify DELQs with NUT-12 support.
- Streamlined the API, as well as most of the typing.
- Added functionalities like fees and coin selection and the new checkProofsStates() method.
If you want to get started using cashu-ts: npm i @cashu/cashu-ts
If you are upgrading from an older version make sure to check out the migration doc: π.md