Skip to content

Releases: swellstores/swell-sdk

@swell/[email protected]

15 Feb 14:57
Compare
Choose a tag to compare

Minor Changes

  • 030513a: 0.1.0 Product module

    New Provider

    • SwellContextProvider: Injects the client into the component tree to simplify hooks usage.

    New hooks

    • useProduct: Fetches a product using the product's slug or ID. Will also calculate the active variant using the selected product options.
    • useProductList: Returns a paginated list of the store's products, which can be optionally filtered.

@swell/[email protected]

26 Jan 21:18
1d51255
Compare
Choose a tag to compare

Minor Changes

  • 874f08a: 0.1.0 - Product module

    New methods:

    • getProduct: Fetches a single product by ID or slug.
    • getProductList: Fetches a paginated list of the store's products, which can be optionally filtered.
    • getActiveVariant: Returns the variant that matches the selected product options, with normalized price data.

@swell/[email protected]

15 Dec 15:38
ceffc7b
Compare
Choose a tag to compare

Patch Changes

  • 075b156: Fix published files to include "dist" folder

@swell/[email protected]

15 Dec 14:10
9b3c866
Compare
Choose a tag to compare

Patch Changes