Releases: lightsparkdev/js-sdk
@lightsparkdev/[email protected]
Patch Changes
- b21b85e: * Surface error name when the requester hits a graphQL error.
- Update Turbo
- Several small UI package improvements.
@lightsparkdev/[email protected]
Minor Changes
-
b1f160b: - New UI components & toggles
-
Introduced a new
MultiToggle
component (replaces or supplements the oldIconToggle
). -
Extended the
Button
component to support newgray
/grayGradient
kinds and updatedforwardRef
usage for better integration. -
CJS + ESM updates
- Updated
package.json
with separateindex.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 tocore
) for checking type correctness.
- Updated
-
Additional icons & styling
- Added a wide set of “central” icons (e.g.
CentralArrowLeft
,CentralLoader
,CentralTrashCan
, etc.). - Enhanced existing icons like
Satoshi
andBitcoinB
with an optionalsquare
parameter. - Modified styling for
ButtonRow
,DataManagerTable
, andCardForm
to polish layout and filter UI.
- Added a wide set of “central” icons (e.g.
-
Link
refactor- Converted internal
LinkBase
to useforwardRef
, allowing direct refs and improved usage. - Added a
blue
prop for quick color overrides, plus other small accessibility improvements.
- Converted internal
-
Other tweaks
- The
PhoneInput
component now supportsonBlur
anderror
props. Table
now accepts aminHeight
prop.DataManagerTable
got a mobile-friendly filter UI (e.g., new modals for filter application and clearing).
- The
-
Patch Changes
- Updated dependencies [b1f160b]
- @lightsparkdev/[email protected]
@lightsparkdev/[email protected]
Minor Changes
-
b1f160b: - Bolt 12 Offer support
-
Introduced new GraphQL mutations and objects for Bolt #12 offers:
createOffer()
/CreateOffer
GQLpayOffer()
/PayOffer
GQL- New
Offer
,OfferData
,PayOfferInput
, etc.
-
Updated
LightsparkClient
to includecreateOffer()
andpayOffer()
methods (with max fees, no‐amount usage, etc.). -
CJS + ESM reorganization
- Changed
package.json
main entry toindex.cjs
and refined"exports"
to ensure correct ESM/CJS usage. - Added
.attw.json
and"package-types"
script for type mismatch checks.
- Changed
-
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).
- Implemented
-
Housekeeping
- Minor updates for remote signing & LN usage (some expansions to the
LightsparkClient
forpayUmaInvoice
, etc.). - Consolidated sub‐exports to ensure consistency with the new dual‐module approach.
- Minor updates for remote signing & LN usage (some expansions to the
-
Patch Changes
- Updated dependencies [b1f160b]
- @lightsparkdev/[email protected]
- @lightsparkdev/[email protected]
@lightsparkdev/[email protected]
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
.
- Focus is on new BOLT12 Offer features; the rest is routine housekeeping in
-
Patch Changes
- Updated dependencies [b1f160b]
- Updated dependencies [b1f160b]
- @lightsparkdev/[email protected]
- @lightsparkdev/[email protected]
- @lightsparkdev/[email protected]
@lightsparkdev/[email protected]
Patch Changes
- Updated dependencies [b1f160b]
- @lightsparkdev/[email protected]
@lightsparkdev/[email protected]
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.
- Added a
-
Expanded currency utilities
- Introduced
EUR
handling inCurrencyUnit
and extended the conversion logic to accommodate more fiat/btc transformations. - Added new helper methods like
isUmaCurrencyAmount
andisRecord
to strengthen type checks and conversions. - Updated
formatCurrencyStr()
to handleUmaCurrencyAmount
and incorporate new format logic.
- Introduced
-
Refined the
mapCurrencyAmount()
function and improvedformatCurrencyStr()
to handle short vs. full precision more flexibly. -
Revised sub‐paths (e.g.
./utils
) inpackage.json
exports for both ESM and CJS.
-
@lightsparkdev/[email protected]
Patch Changes
- a0aed49: - Testing release workflow
@lightsparkdev/[email protected]
Patch Changes
- 47733a2: - New icon, minor update to Flex component
- Updated dependencies [47733a2]
- @lightsparkdev/[email protected]
@lightsparkdev/[email protected]
Patch Changes
- 47733a2: - Allow injecting a custom fetchImpl into the JS SDK. This is helpful for clients who need custom requesting logic, logging, etc.
- Updated dependencies [47733a2]
- @lightsparkdev/[email protected]
- @lightsparkdev/[email protected]
@lightsparkdev/[email protected]
Patch Changes
- Updated dependencies [47733a2]
- @lightsparkdev/[email protected]
- @lightsparkdev/[email protected]
- @lightsparkdev/[email protected]