Skip to content

v6.0.0

Latest

Choose a tag to compare

@im-adithya im-adithya released this 05 Aug 09:05
b06a4e8

Migration

⚠️ Breaking Changes

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

- import { fiat } from '@getalby/lightning-tools'
console.log(fiat.getFiatValue)

Instead you can do it like:

+ import { getFiatValue } from '@getalby/lightning-tools'
console.log(getFiatValue)

or you can use subpath imports.

✨ New Subpath Import (Recommended)

For better tree-shaking, you can also import directly from the fiat subpath (and similarly for bolt11, lnurl, l402 and podcasting)

+ import { getFiatValue } from '@getalby/lightning-tools/fiat'
console.log(getFiatValue)

What's Changed

Full Changelog: v5.2.1...v6.0.0