This release brings Cashu-TS into line with the latest NUT spec, by allowing expired mint quotes to be minted. It also makes the internal keyset snapshot (cache) self-repair if a mint rotates keysets during wallet lifetime.
Consumers who persist the caches can subscribe to a new keychainUpdated event to be notified when the cache snapshot has updated. Consumers who wish to fully manage keyset caches themselves can instantiate Wallet with the new strictCachedKeysets option enabled. Cashu-TS will then strictly use the provided cache and throw if required keyset data is unavailable.
The library now ships with two new errors: StaleKeysetError and UnknownKeysetError .
What's Changed
- fix(wallet): allow minting paid expired quotes by @Egge21M in #969
- feat(wallet): size request batches from the mint's advertised cap by @robwoodgate in #965
- chore(docker): update CDK_IMAGE to cashubtc/mintd:0.17.4 by @robwoodgate in #975
- chore(docker): update CDK_IMAGE to cashubtc/mintd:0.17.5 by @robwoodgate in #982
- chore(lint): ban double assertions through unknown/any in src by @robwoodgate in #974
- feat(wallet): follow keyset rotations and check melt inputs against the snapshot by @robwoodgate in #978
- chore(main): release 5.0.0-rc.7 by @robwoodgate in #976
Full Changelog: v5.0.0-rc.6...v5.0.0-rc.7