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
- feat: add subpath imports and fix bundling issues by @im-adithya in #263
- chore(deps-dev): bump typescript from 5.8.3 to 5.9.2 by @dependabot[bot] in #264
- fix: package json and examples fixes by @im-adithya in #270
- chore: upgrade dev dependencies by @im-adithya in #271
- chore: bump version to 6.0.0 by @im-adithya in #265
Full Changelog: v5.2.1...v6.0.0