Skip to content

Releases: getAlby/js-sdk

v8.0.3

20 May 08:47
07ed0f4

Choose a tag to compare

What's Changed

Full Changelog: v8.0.2...v8.0.3

v8.0.2

20 May 08:38
5ba0c8b

Choose a tag to compare

What's Changed

Full Changelog: v8.0.1...v8.0.2

v8.0.1

15 May 10:21
919b2e3

Choose a tag to compare

What's Changed

In this release we improve NWC relay subscription support for multiple relays, and also remove unwanted console logs by introducing an injectable logger interface. We also improve NWC connection secret validation.

Breaking changes
In this release there is a breaking change to remove the websocket polyfill support. For NodeJS users, make sure to upgrade to NodeJS 22 or higher.

New features

Fixes

  • fix: replaced references of nwc.getalby.com to my.albyhub.com by @DSanich in #543
  • fix: add p tag to NIP-47 response events by @ajaysehwal in #546
  • fix: remove websocket polyfill by @rolznz in #547

Misc

  • chore: add example for wrapped invoices by @rolznz in #529
  • chore: convert wallet-service example to TypeScript by @Dunsin-cyber in #518
  • chore: add minimal Playwright smoke test by @DSanich in #534
  • chore: add NWC faucet integration test by @DSanich in #535
  • chore: e2e nwc payment tests by @DSanich in #537
  • chore: add missing typings to hold invoice example by @rolznz in #513
  • chore: remove comment about accepted state not being spec compliant by @rolznz in #548
  • chore: move dev dependencies in examples out of dependencies by @rolznz in #549
  • chore: remove unused dev dependencies from main package.json by @rolznz in #552
  • docs: add link to developer sandbox by @rolznz in #522
  • chore(deps): bump handlebars from 4.7.8 to 4.7.9 by @dependabot[bot] in #551
  • chore(deps): bump flatted from 3.2.7 to 3.4.2 by @dependabot[bot] in #554
  • chore(deps-dev): bump rollup from 4.52.5 to 4.60.3 by @dependabot[bot] in #508
  • chore(deps-dev): bump @rollup/plugin-commonjs from 28.0.8 to 29.0.2 by @dependabot[bot] in #507
  • chore(deps-dev): bump @types/node from 24.9.1 to 25.7.0 by @dependabot[bot] in #505
  • chore(deps-dev): bump lint-staged from 16.2.5 to 17.0.4 by @dependabot[bot] in #504
  • chore(deps): bump picomatch from 4.0.2 to 4.0.4 in /examples by @dependabot[bot] in #553
  • chore(deps): bump tar from 7.4.3 to 7.5.15 in /examples by @dependabot[bot] in #555
  • chore(deps): bump minimatch from 9.0.5 to 9.0.9 in /examples by @dependabot[bot] in #556
  • chore(deps): bump qs from 6.14.0 to 6.15.1 in /examples by @dependabot[bot] in #557

New Contributors

Full Changelog: v7.0.0...v8.0.0

v8.0.0

15 May 09:11
8e0cc61

Choose a tag to compare

What's Changed

In this release we improve NWC relay subscription support for multiple relays, and also remove unwanted console logs by introducing an injectable logger interface. We also improve NWC connection secret validation.

Breaking changes
In this release there is a breaking change to remove the websocket polyfill support. For NodeJS users, make sure to upgrade to NodeJS 22 or higher.

New features

Fixes

  • fix: replaced references of nwc.getalby.com to my.albyhub.com by @DSanich in #543
  • fix: add p tag to NIP-47 response events by @ajaysehwal in #546
  • fix: remove websocket polyfill by @rolznz in #547

Misc

  • chore: add example for wrapped invoices by @rolznz in #529
  • chore: convert wallet-service example to TypeScript by @Dunsin-cyber in #518
  • chore: add minimal Playwright smoke test by @DSanich in #534
  • chore: add NWC faucet integration test by @DSanich in #535
  • chore: e2e nwc payment tests by @DSanich in #537
  • chore: add missing typings to hold invoice example by @rolznz in #513
  • chore: remove comment about accepted state not being spec compliant by @rolznz in #548
  • chore: move dev dependencies in examples out of dependencies by @rolznz in #549
  • chore: remove unused dev dependencies from main package.json by @rolznz in #552
  • docs: add link to developer sandbox by @rolznz in #522
  • chore(deps): bump handlebars from 4.7.8 to 4.7.9 by @dependabot[bot] in #551
  • chore(deps): bump flatted from 3.2.7 to 3.4.2 by @dependabot[bot] in #554
  • chore(deps-dev): bump rollup from 4.52.5 to 4.60.3 by @dependabot[bot] in #508
  • chore(deps-dev): bump @rollup/plugin-commonjs from 28.0.8 to 29.0.2 by @dependabot[bot] in #507
  • chore(deps-dev): bump @types/node from 24.9.1 to 25.7.0 by @dependabot[bot] in #505
  • chore(deps-dev): bump lint-staged from 16.2.5 to 17.0.4 by @dependabot[bot] in #504
  • chore(deps): bump picomatch from 4.0.2 to 4.0.4 in /examples by @dependabot[bot] in #553
  • chore(deps): bump tar from 7.4.3 to 7.5.15 in /examples by @dependabot[bot] in #555
  • chore(deps): bump minimatch from 9.0.5 to 9.0.9 in /examples by @dependabot[bot] in #556
  • chore(deps): bump qs from 6.14.0 to 6.15.1 in /examples by @dependabot[bot] in #557

New Contributors

Full Changelog: v7.0.0...v8.0.0

v7.0.0

06 Nov 16:49
a4d7460

Choose a tag to compare

In this release we add support for multiple NWC relays.

A breaking change is in this release to accept relayUrls instead of a single relayUrl.

What's Changed

  • feat: support multiple relays by @rolznz in #486
  • chore(deps-dev): bump ts-jest from 29.4.1 to 29.4.5 by @dependabot[bot] in #497
  • chore(deps-dev): bump @commitlint/cli from 19.8.1 to 20.1.0 by @dependabot[bot] in #498
  • chore(deps-dev): bump jest from 30.0.5 to 30.2.0 by @dependabot[bot] in #499
  • chore(deps-dev): bump rollup from 4.46.2 to 4.52.5 by @dependabot[bot] in #500
  • chore(deps-dev): bump @rollup/plugin-typescript from 12.1.4 to 12.3.0 by @dependabot[bot] in #502

Full Changelog: v6.0.2...v7.0.0

v6.0.2

21 Oct 10:24
02292b3

Choose a tag to compare

In this release we fix an issue where subscriptions were no longer working after a relay disconnection (fixed by updating nostr-tools dependency), and an issue with the Alby Wallet API when querying transactions using nested filtering parameters.

What's Changed

Fixes

  • fix(query): improve buildQueryString for nested params and update GetInvoicesRequestParams by @Dunsin-cyber in #475

Misc

  • chore: Rewrite Examples in examples/oauth in Typescript by @Dunsin-cyber in #471
  • chore: introduce helper for auth flow + test in invoices.ts by @Dunsin-cyber in #480
  • chore: use Helper Function in OAuth Exmaples by @Dunsin-cyber in #485
  • chore: Allow passing additional scopes to getAuthClient in examples helper function by @Dunsin-cyber in #489
  • chore: add decrypt error handling in subscribeNotifications by @rolznz in #490
  • chore: bump nostr tools (fixes subscription onclose not firing) by @rolznz in #491
  • chore(deps): bump @getalby/lightning-tools from 5.2.1 to 6.0.0 by @dependabot[bot] in #455
  • chore(deps-dev): bump jest and @types/jest by @dependabot[bot] in #454
  • chore(deps-dev): bump lint-staged from 16.1.4 to 16.2.4 by @dependabot[bot] in #487
  • chore(deps-dev): bump rollup-plugin-dts from 6.2.1 to 6.2.3 by @dependabot[bot] in #477
  • chore(deps-dev): bump typescript from 5.8.3 to 5.9.3 by @dependabot[bot] in #483
  • chore(deps-dev): bump @types/node from 24.2.0 to 24.9.1 by @dependabot[bot] in #492
  • chore(deps-dev): bump @commitlint/config-conventional from 19.8.1 to 20.0.0 by @dependabot[bot] in #493
  • chore(deps-dev): bump @rollup/plugin-node-resolve from 16.0.1 to 16.0.3 by @dependabot[bot] in #494
  • chore(deps-dev): bump @rollup/plugin-commonjs from 28.0.6 to 28.0.8 by @dependabot[bot] in #495
  • chore: bump version to 6.0.2 by @rolznz in #496

Full Changelog: v6.0.1...v6.0.2

v6.0.1

07 Sep 05:23

Choose a tag to compare

What's Changed

Full Changelog: v6.0.0...v6.0.1

v6.0.0

05 Aug 09:02
5720e6e

Choose a tag to compare

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

v5.1.2

02 Aug 14:11
ce872b8

Choose a tag to compare

What's Changed

Full Changelog: v5.1.1...v5.1.2

v5.1.1

04 Jul 07:08
761d8da

Choose a tag to compare

In this change we remove preimage presence validation (preimage can be fully validated using Alby js-lightning-tools).

Also we migrate a number of examples to typescript. Thanks @Dunsin-cyber !

What's Changed

Fixes

  • fix: remove preimage presence validation in pay_invoice method by @rolznz in #430

Misc

New Contributors

Full Changelog: v5.1.0...v5.1.1