github getAlby/js-sdk v6.0.0

one month ago

Migration

⚠️ Breaking Changes

We removed the legacy namespace exports from the main SDK bundle, so importing like this won't work anymore:

- import { nwc } from '@getalby/sdk'
console.log(nwc.NWCWalletService)

Instead you can do it like:

+ import { NWCWalletService } from '@getalby/sdk'
console.log(NWCWalletService)

or you can use subpath imports.

✨ New Subpath Import (Recommended)

For better tree-shaking, you can also import directly from the nwc subpath (and similarly for lnclient, oauth and webln)

+ import { NWCWalletService } from '@getalby/sdk/nwc'
console.log(NWCWalletService)

What's Changed

Full Changelog: v5.1.2...v6.0.0

Don't miss a new js-sdk release

NewReleases is sending notifications on new releases.