Skip to content

Releases: lightsparkdev/js-sdk

@lightsparkdev/[email protected]

04 Apr 20:57
59051af
Compare
Choose a tag to compare

Patch Changes

  • b21b85e: * Surface error name when the requester hits a graphQL error.
    • Update Turbo
    • Several small UI package improvements.

@lightsparkdev/[email protected]

16 Mar 20:40
845faa9
Compare
Choose a tag to compare

Minor Changes

  • b1f160b: - New UI components & toggles

    • Introduced a new MultiToggle component (replaces or supplements the old IconToggle).

    • Extended the Button component to support new gray/grayGradient kinds and updated forwardRef usage for better integration.

    • CJS + ESM updates

      • Updated package.json with separate index.cjs/index.js exports and refined "exports" to define sub‐paths for ES/cjs usage.
      • Added a .attw.json and a "package-types" script (similar to core) for checking type correctness.
    • Additional icons & styling

      • Added a wide set of “central” icons (e.g. CentralArrowLeft, CentralLoader, CentralTrashCan, etc.).
      • Enhanced existing icons like Satoshi and BitcoinB with an optional square parameter.
      • Modified styling for ButtonRow, DataManagerTable, and CardForm to polish layout and filter UI.
    • Link refactor

      • Converted internal LinkBase to use forwardRef, allowing direct refs and improved usage.
      • Added a blue prop for quick color overrides, plus other small accessibility improvements.
    • Other tweaks

      • The PhoneInput component now supports onBlur and error props.
      • Table now accepts a minHeight prop.
      • DataManagerTable got a mobile-friendly filter UI (e.g., new modals for filter application and clearing).

Patch Changes

@lightsparkdev/[email protected]

16 Mar 20:40
845faa9
Compare
Choose a tag to compare

Minor Changes

  • b1f160b: - Bolt 12 Offer support

    • Introduced new GraphQL mutations and objects for Bolt #12 offers:

      • createOffer() / CreateOffer GQL
      • payOffer() / PayOffer GQL
      • New Offer, OfferData, PayOfferInput, etc.
    • Updated LightsparkClient to include createOffer() and payOffer() methods (with max fees, no‐amount usage, etc.).

    • CJS + ESM reorganization

      • Changed package.json main entry to index.cjs and refined "exports" to ensure correct ESM/CJS usage.
      • Added .attw.json and "package-types" script for type mismatch checks.
    • New typed objects

      • Implemented CurrencyAmountInput plus expansions (e.g. CreateOfferInput), enabling more flexible payments.
      • Extended invoice logic for Bolt12/UMA with new fields (e.g. partial amounts, expiry times).
    • Housekeeping

      • Minor updates for remote signing & LN usage (some expansions to the LightsparkClient for payUmaInvoice, etc.).
      • Consolidated sub‐exports to ensure consistency with the new dual‐module approach.

Patch Changes

@lightsparkdev/[email protected]

16 Mar 20:40
845faa9
Compare
Choose a tag to compare

Minor Changes

  • b1f160b: - Bolt 12 “Offer” commands

    • Added create-offer command to generate a BOLT12 offer, specifying an amount or zero for user-chosen amounts, plus a description.

    • Added pay-offer command allowing you to pay a BOLT12 offer from the CLI, with optional fee/timeouts.

    • Misc. node usage

      • Polished logic for local vs. remote signing in the new BOLT12 commands.
      • Minor improvements to usage strings and help text.
    • General

      • Focus is on new BOLT12 Offer features; the rest is routine housekeeping in index.ts.

Patch Changes

@lightsparkdev/[email protected]

16 Mar 20:40
845faa9
Compare
Choose a tag to compare

Patch Changes

@lightsparkdev/[email protected]

16 Mar 20:40
845faa9
Compare
Choose a tag to compare

Minor Changes

  • b1f160b: - CJS + ESM improvements

    • Updated package.json to provide separate CommonJS (index.cjs) and ES modules (index.js).

    • Added an exports section to explicitly define import/require entry points.

    • attw support

      • Added a .attw.json file and introduced a "package-types" script (yarn attw --pack .) for detecting type issues.
    • Expanded currency utilities

      • Introduced EUR handling in CurrencyUnit and extended the conversion logic to accommodate more fiat/btc transformations.
      • Added new helper methods like isUmaCurrencyAmount and isRecord to strengthen type checks and conversions.
      • Updated formatCurrencyStr() to handle UmaCurrencyAmount and incorporate new format logic.
    • Refined the mapCurrencyAmount() function and improved formatCurrencyStr() to handle short vs. full precision more flexibly.

    • Revised sub‐paths (e.g. ./utils) in package.json exports for both ESM and CJS.

@lightsparkdev/[email protected]

20 Feb 03:10
ae4158c
Compare
Choose a tag to compare

Patch Changes

  • a0aed49: - Testing release workflow

@lightsparkdev/[email protected]

20 Feb 01:30
454017d
Compare
Choose a tag to compare

Patch Changes

@lightsparkdev/[email protected]

20 Feb 01:30
454017d
Compare
Choose a tag to compare

Patch Changes

@lightsparkdev/[email protected]

20 Feb 01:30
454017d
Compare
Choose a tag to compare

Patch Changes