github getAlby/js-sdk v9.0.0

5 hours ago

This release fixes a few issues in NWC client publishing and reply handling.

⚠️ Breaking changes

  • Nip47TimeoutValues.publishTimeout is removed. How long a relay takes to accept a request event does not depend on the method, so the publish timeout is fixed per client. The per-method timing (for example 60 s for payments vs 10 s for get_info) is replyTimeout's job, which is unchanged.
  • A relay that does not reply OK within 5s now rejects with Nip47PublishTimeoutError instead of Nip47PublishError.
  • Remove deprecated nwc multi_* methods (removed from NIP-47 due to lack of use and implementation complexity)
  • Use Nip47Method instead of Nip47SingleMethod (as multi methods no longer exist)

What's Changed

  • fix: point UNPKG at the published UMD bundle by @maydalabs in #593
  • fix: reject when an NWC reply fails to decrypt by @rolznz in #596
  • fix: keep relay failure reasons and report a missing relay OK as a publish timeout by @rolznz in #597
  • chore: remove NWC multi-payment methods by @rolznz in #599

New Contributors

Full Changelog: v8.1.1...v9.0.0

Don't miss a new js-sdk release

NewReleases is sending notifications on new releases.