Skip to main content

@acromedia/gesso-commerce

5.3.9

Patch Changes

  • 13a8b3f: Update: add orderNumber and additonalAdjustments properties to Order type.

5.3.8

Patch Changes

5.3.7

Patch Changes

  • 00be2ab: Deprecate: deprecate logout token prop to be removed in V7 as we no longer need to use JWT logoutToken.

5.3.6

Patch Changes

  • bbf5d9d: Add: Expose updatePrimaryAddress from the commerce object.
  • 5b09db0: Add: update updatePassword method to include existingPassword prop.

5.3.5

Patch Changes

  • 499474f: Add: token prop to logout method for jwt token.
  • Updated dependencies [b07a19a]

5.3.4

Patch Changes

  • fde46e7: Added optional includes parameter to Product and Catalog plugins to commerce.

5.3.3

Patch Changes

5.3.2

Patch Changes

  • fe3a065c2: Adjusted the return type of the customer updatePassword method from commerce.
  • Updated dependencies [af19949e5]

5.3.1

Patch Changes

5.3.0

Minor Changes

  • ede7130: Add facets and sorting to useProductSearch for Shopify

Patch Changes

  • Updated dependencies [9dbfed6]
  • Updated dependencies [ede7130]

5.2.0

Minor Changes

  • 24e76cb: Changed catalog.tsx to properly run via API and work with any sized product catalog, instead of just working with a limited set in-page
  • 8f9c3c8: adds optional accessToken property to the OrderOptions interface
  • e10e52b: Implemented the ability to change defaut address in the backend rather than just hold the address in state on the frontEnd

Patch Changes

  • 517db02: Adds password reset functions to shopify plugin, Adds password reset flow to starter-kit
  • Updated dependencies [8f9c3c8]
  • Updated dependencies [24e76cb]

5.1.0

Minor Changes

  • de7fa73: feat: deprecate customer update method and replace with more individualized methods such as updateName and addAddress.
  • 5a2fc8b: Implemented the getCheckoutUrl call
  • 2386c76: adds optional function to Cart called getCheckoutUrl for getting and providing a redirect or embedded checkout link. May not be available in all commerce plugins.
  • 478fe55: feat: add formatCurrency helper funtion.

Patch Changes

  • 34e0807: Added optional options property to the Customer interface.
  • 352ef12: Update dependencies and clean up dependency tree
  • Updated dependencies [352ef12]

5.0.0

Major Changes

  • bff9b4a: - Removed type UseProductPlugin, use ProductPlugin instead.

    • Removed useCommerce export. You should now be using commerce.

    • Removed exporting all of gesso-core from gesso-commerce. You should now be importing all of gesso-cores contents from gesso-core

Patch Changes

  • e840dfc: ## Breaking Change For GetCustomer

    There was an issue with the getCustomer hook in the commerce package where the type and what the hook actually returned.

    Old Type

    type GetCustomer = () => {
    get: () => Promise<Customer>;
    add: (customer: Customer, password?: string) => Promise<Response<boolean>>;
    login: (email: string, password: string) => Promise<Response<Customer>>;
    logout: () => Promise<Response<boolean>>;
    customer: Response<Customer | undefined>;
    status: Response<boolean>;
    update: (customer: Customer) => Response<boolean>;
    exists: (email: string) => Promise<Response<string>>;
    };

    New Type

    type CustomerPromise = Promise<Response<Customer | undefined>>;

    type GetCustomer = () => {
    get: () => CustomerPromise;
    add: (customer: Customer, password?: string) => CustomerPromise;
    login: (email: string, password: string) => CustomerPromise;
    logout: () => Promise<Response<boolean>>;
    update: (customer: Customer) => CustomerPromise;
    exists: (email: string) => Promise<Response<string>>;
    };
  • Updated dependencies [bff9b4a]

4.10.4

Patch Changes

  • d8a41f2: Adjusted the getCustomer::get interface to accept an options parameter.

4.10.3

Patch Changes

4.10.2

Patch Changes

4.10.1

Patch Changes

  • 89d020c: Correct prop checking so useProductSearch will always update when props are changed
  • 0a5b573: useProductSearch should now return correct loading state on prop changes
  • Updated dependencies [0fa3efa]

4.10.0

Minor Changes

  • f9ab59d: Created Inventory plugin interface in Commerce provider

Patch Changes

  • 427f62f: Adjusted CartItemProperties interface in in core Cart. Also adjusted shopify's useCart hook to set merchandiseId as product variantId.
  • 54f1216: Remove outdated license settings in package.json
  • Updated dependencies [427f62f]
  • Updated dependencies [a257243]

4.9.0

Minor Changes

  • fa9550e: Changed most parameter naming of useProduct sku to id to be more accurate

Patch Changes

  • 8606ed3: rename generateCommerce function to be generic (generateProvider) to allow dynamic import in scaffold command
  • Updated dependencies [5afc784]
  • Updated dependencies [11e619c]

4.8.0

Minor Changes

  • 72b712a7: ## Commerce Function Refactoring:

    • Refactored commerce function for generic usage, supporting various platform plugins.
    • Moved refactored commerce function to the commerce package.

    Config Function Refactoring:

    • Config function now generic, accepts a generateTokens function for any needed platform tokens.
    • Refactored config function moved to the core package.

Patch Changes

  • 1bc2882: Removed a number of small leftover bigcommerce dependencies that would install in non-BigCommerce installs
  • Updated dependencies [8990ef8]
  • Updated dependencies [72b712a7]

4.7.0

Minor Changes

  • f849e7c: Add forgot password support, primarily for bigcommerce

4.6.0

Minor Changes

  • a0ae478d: Extend product options to include isVariantOption. useProduct/getProduct hook now split product options into 'variant' option types and all option options to feed into separate parts of the gql query. These options will allow us to pass customizations through to the product and provide a more accurate gql response, in the case of picklist products this means updating the price with the various selected product options.
  • ce731d1b: Set standardized gesso-auth cookie name to be used to check if a user is logged in. It doesn't handle security, just used as a flag for making additional API calls.
  • 6115e3df: "Add pageinfo to allow for pagination on product search results."

Patch Changes

  • e8e54cb4: add password to customer type
  • cfa64829: Remove unnecessary api calls for customer when not logged in
  • 3f5bf9bc: Add support for addOns as part of CartItem properties. Adjust starter kit formData so payload can handle big commerce customizations in add cart.
  • Updated dependencies [570cf1c7]
  • Updated dependencies [a1dff1d2]
  • Updated dependencies [3f5bf9bc]

4.5.1

Patch Changes

  • e5321ff: Set state to updated customer when update is used.

4.5.0

Minor Changes

  • 5008386: adjusts types to align Orders response and frontend requirements
  • 2f3eb9c: implemented signIn functionality
  • 7f95e51: "Add getProductSearch and getCatalog hooks. Required for SSR driven approach in consuming clients."
  • a3e1ad5: Create commerce provider orders plugin

Patch Changes

  • Updated dependencies [5008386]
  • Updated dependencies [33ec202]

4.4.0

Minor Changes

  • 00c2594: Implemented overridable queries for Customer

Patch Changes

  • Updated dependencies [4b19bf6]
  • Updated dependencies [0072813]

4.3.1

Patch Changes

4.3.0

Minor Changes

  • 14f323f: "Updating ProductDetails for new product options data."
  • 98613c6: Add variant and improved option support to Commerce

Patch Changes

  • Updated dependencies [14f323f]
  • Updated dependencies [98613c6]

4.2.0

Minor Changes

  • 6353016: Add filters and facet data types for bigcommerce filter data.

Patch Changes

  • 04e2826: Fix infinite cart reload loop
  • Updated dependencies [6353016]

4.1.0

Minor Changes

  • 23386f9: Add placeOrder method to useCheckout

Patch Changes

  • 23386f9: Deprecate RemoveCoupon and ApplyCoupon and add correctly named removeCoupon and applyCoupon
  • 03f2414: Fixed login sometimes setting customer to a boolean
  • 12c9aeb: add query type to config
  • 3e3c515: add the update method to the commerce customer hook provider
  • Updated dependencies [12c9aeb]

4.0.2

Patch Changes

4.0.1

Patch Changes

  • edc0ea0: Update @types/react

  • 76904a0: Cart now uses a context and will update if changed elsewhere

    Note: You will need to wrap with CommerceProvider or CartProvider for this to work. CommerceProvider handles providers for all of commerce, including cart.

  • 2984fd1: export getProduct through commerce

4.0.0

Major Changes

  • f49ee1f: gesso v4 version bump

Patch Changes

3.3.0

Minor Changes

  • 3e14ca8: Components can now use a commerce context to get commerce hooks

3.2.3

Patch Changes

  • 89df947: Consolidated a number of disconnected types into @acromedia/gesso-core, products and carts can now be shared between components and hooks
  • 89df947: Allow sku to be optional in case it comes from something async
  • Updated dependencies [89df947]

3.2.2

Patch Changes

  • 6347b5a: Fixes issue with incorrect id returning for product from bigcommerce useProduct

3.2.1

Patch Changes

  • 948d5fe: Make a few cart properties required, that should always have been required

3.2.0

Minor Changes

  • 35d4708: Add getProduct option w/ backwards compatibility

3.1.1

Patch Changes

  • b4eb3f5: fix: updates types and related component fixes for cartpage implementation

3.1.0

Minor Changes

  • 496af45: updated cartItem for bigcommerce and fixed typo in the Currency interface

3.0.2

Patch Changes

  • fdadc4d: Updates interfaces for plugin config

3.0.1

Patch Changes

  • c210469: Corrected naming of useCommerce to commerce, although old way is still supported, just deprecated

3.0.0

Major Changes

  • a11ea27: Release v3 Gesso packages

Features

  • update review type to allow for summary data (f1911a8)

1.25.0 (2022-10-28)

Features

  • added cart item parameters and add for add & update methods (43da659)

1.24.0 (2022-10-21)

Features

1.23.6 (2022-10-03)

Bug Fixes

  • allow properties and search properties to be overwritten seperately (e2dbb2a)

1.23.5 (2022-09-29)

Bug Fixes

  • remove leftover only tag and fix tests (9e6526d)
  • stop infinite product search looping (9e16dd3)

1.23.4 (2022-09-28)

Bug Fixes

1.23.3 (2022-09-23)

Bug Fixes

  • missing dependencies in use effect calls (8f31654)

1.23.2 (2022-09-22)

Bug Fixes

  • add empty defaults for hooks that do not return undefined (d01976e)

1.23.1 (2022-09-21)

Bug Fixes

1.23.0 (2022-09-21)

Features

  • added url and children to catalog (9fa6426)

1.22.2 (2022-09-20)

Bug Fixes

  • add useCatalog to useCommerce (d72422e)

1.22.1 (2022-09-20)

Bug Fixes

1.22.0 (2022-09-20)

Features

1.21.1 (2022-07-20)

Bug Fixes

  • set useProductSearch to default to an empty array (7466bde)

1.21.0 (2022-07-06)

Features

  • added more properties for the product type (413024a)

1.20.2 (2022-06-13)

Bug Fixes

  • deploy package to acromedia namespace (1ed82b8)

1.20.1 (2022-06-03)

Bug Fixes

  • gitlab 15 needs a new cobertura set up in ci (a92b811)

1.20.0 (2022-05-12)

Bug Fixes

  • remove remain auth hook references (a04ca60)
  • rmv pswrd from Customer, set customer in each function, updt tests (f53641b)

Features

  • consolidate login and logout functionality into customer hook. Tests to be updated (11d5cab)
  • consolidate login and logout into customer hooks, cypress tests (9853c7a)

1.19.0 (2022-05-05)

Features

  • add get call to useCart and cleanup some type inconsistencies (a981036)
  • change cart to 1 hook and functions (233deb0)

1.18.0 (2022-05-04)

Bug Fixes

  • removed some extra logout types and fix documentation (eb66549)

Features

  • convert auth to only have useLogin that provides login and logout functions (29d12a1)

1.17.1 (2022-05-04)

Bug Fixes

  • correct code coverage (f848bdb)
  • specify only src folder so cypress doesn't get picked up in ci (d8affb6)
  • switch to cypress only and fix code coverage (b63f811)

1.17.0 (2022-05-03)

Features

  • update auth hooks touse useEffect, migrate to cypress tests (7d22366)

1.16.1 (2022-05-03)

Bug Fixes

  • pass the config variable to plugin (3bc5651)

1.16.0 (2022-05-03)

Bug Fixes

  • set state with default customer rather than empty object (144069d)
  • set state with default customer rather than empty object (ab7fd9e)

Features

  • use react hooks with useCustomer, update useCommerce (edcce28)
  • use react hooks with useCustomer, update useCommerce (e253001)

1.15.0 (2022-05-02)

Features

  • Update cart add, update, delete plugin and tests (3e4f33d)

1.14.0 (2022-04-27)

Features

  • add a plugin type to the auth model (f10d7f7)
  • add a plugin type to the auth model (1e79424)

1.13.1 (2022-04-22)

Bug Fixes

  • add missing config parameter to commerce hook (f28c7cf)

1.13.0 (2022-04-22)

Features

  • add product search plugin type (ca8f79d)
  • add product search requriements to commerce hook (f17412a)
  • make useProductSearc use react hooks (e3e1ed2)

1.12.0 (2022-04-20)

Bug Fixes

  • add cypress fixtures auto generated to git ignore (b384c79)
  • correct typo in package type settings (f466ce2)
  • make jest and cypress play nicely (24d450b)
  • move custom processing comments to correct location (f0b41c4)
  • remove unused packages (2967f76)
  • update CI for Cypress (ad08084)

Features

  • add config for product hook (d60a059)
  • add cypress component testing (53f7de9)
  • add Product react tests (ec8613b)
  • change useCart to react hook, add cypress tests (c79e528)
  • convert useProduct to a proper react hook (2b8d0a4)

1.11.0 (2022-04-14)

Features

1.10.1 (2022-04-13)

Bug Fixes

  • make password optional so hooks do not need to return password with returning User (1899aaf)

1.10.0 (2022-04-11)

Features

  • export Auth, Checkout and Customer modules from top level index file (1920646)

1.9.0 (2022-04-04)

Features

  • add auth, cart, product and product search hook imports to commerce hook (8e2af3b)

1.8.0 (2022-03-31)

Bug Fixes

  • add comment to data model (c52da9b)
  • add missing comments to hook (9c67642)
  • add name to stored card type (d7d9747)
  • update tests to accomodate currency and subtotal (2068540)
  • use consistent naming for testing variables (d33d0d9)

Features

  • add checkout directory and file structure (4fed617)
  • add checkout directory and file structure (f6e9425)
  • add tests for default and plugin (b264c66)
  • add tests for default and plugin (560c13b)
  • complete Payment, Card, StoredCard types (7723557)
  • temp customer and address types, UseCheckout type, useCheckout hook (63781c9)
  • temp customer and address types, UseCheckout type, useCheckout hook (b429722)
  • update Card, StoredCard and Payment types, add tests that use new types (90be0df)
  • update CartItem and Cart datatypes with unitPrice, subtotal and currency parameters (3d56745)

1.7.0 (2022-03-31)

Bug Fixes

  • assert true or false rather than truthy or falsy (a52907b)
  • assert true or false rather than truthy or falsy (62f932f)
  • assert true or false rather than truthy or falsy (bfa3489)
  • change outer scope user variable name in tests (36fbbf5)
  • change outer scope user variable name in tests (0b80f4f)
  • change outer scope user variable name in tests (e9d2809)
  • give User type email, tests for failed login,out & clean comments (148ed33)
  • give User type email, tests for failed login,out & clean comments (fcbf501)
  • give User type email, tests for failed login,out & clean comments (08586be)
  • improve documentaion comments (ef86ce9)
  • improve documentaion comments (ccbcfbc)
  • improve documentaion comments (21c30f9)
  • make esline disable comment single line (ccf8d6e)
  • make user id optional parameter, change usename to usernameOrEmail (d8f3a81)
  • make user id optional parameter, change usename to usernameOrEmail (85231c5)
  • make user id optional parameter, change usename to usernameOrEmail (1644de2)

Features

  • add tests for default and plugin (374dbe4)
  • add tests for default and plugin (843b717)
  • add tests for default and plugin (3723d80)
  • change return type for useLogin, change tests accordingly (bb13ad0)
  • change return type for useLogin, change tests accordingly (cf9e57d)
  • change return type for useLogin, change tests accordingly (1f07ce2)
  • initial directory setup and add Auth data types (4faf828)
  • initial directory setup and add Auth data types (1071e2f)
  • initial directory setup and add Auth data types (567bec8)

1.6.0 (2022-03-25)

Bug Fixes

Features

1.5.0 (2022-03-25)

Bug Fixes

  • change customterInfo parameter name to customer for improved readability (febeefe)
  • change customterInfo parameter name to customer for improved readability (cf6e277)
  • make default customer for DRY code, simplify useCustomer mock plugin, make address arrays (47ab05c)
  • update types and add address type, remove conditional paths in tests, fix export and import (708e164)
  • update types and add address type, remove conditional paths in tests, fix export and import (d54ddd2)

Features

  • add customer usecustomer and usecustomeradd types, add usecustomer hook (e55b508)
  • add customer usecustomer and usecustomeradd types, add usecustomer hook (566ced4)
  • add default test (cb55fa1)
  • add default test (96b8732)
  • add plugin test for useCustomer hook (a15a36a)
  • add plugin test for useCustomer hook (171d933)
  • add the useCustomerAdd hook and tests (31db944)
  • add the useCustomerAdd hook and tests (c77fd5d)
  • initial file and folder skeleton (9e65aa3)
  • initial file and folder skeleton (ba16a18)

1.4.0 (2022-03-17)

Bug Fixes

  • remove unneccessary comments (855b2aa)
  • remove unneccessary comments (c024480)
  • update default return object format, remove export default, clean up tests (2fa3dfb)

Features

  • add parameters to Product and UseProductSearch types, add test for plugin true (f10f563)
  • add parameters to Product and UseProductSearch types, add test for plugin true (3ecd30c)
  • add useProductSearch hook, corresponding data type and default test (10d6da6)
  • add useProductSearch hook, corresponding data type and default test (494da58)

1.3.0 (2022-03-17)

Bug Fixes

  • refactor tests to pass linter (04b4322)
  • replace forEach with some method in mock plugins (8344d84)

Features

  • add tests to mock plugin behaviour for useCartRemove hook (3533efa)
  • add useCartRemove hook, type and default test (ff31c27)
  • add useCartUpdate hook, and corresponding type and unit tests (d0f1eea)

1.2.2 (2022-03-08)

Bug Fixes

  • add eslint-config-prettier module to avoid linting conflicts (d6d0039)

1.2.1 (2022-03-07)

Bug Fixes

  • add prettier rules and checking (008b7d0)
  • correct some devDependencies (962c2c9)

1.2.0 (2022-02-09)

Bug Fixes

  • correct jest settings so tests don't run twice (f2ec637)

Features

  • switch useX hooks to async (f32bcc5)

1.1.5 (2022-02-08)

Bug Fixes

  • properly export types in root index.ts (71538e0)

1.1.4 (2022-02-08)

Bug Fixes

1.1.3 (2022-02-07)

Bug Fixes

  • add typings setting to package.json (086eb85)

1.1.2 (2022-02-07)

Bug Fixes

  • publish to root namespace (dde454d)

1.1.1 (2022-02-07)

Bug Fixes

  • publish to root namespace (1cf4f0a)

1.1.0 (2022-02-07)

Features

1.0.0 (2022-02-07)

Bug Fixes

  • add type definitions (adc9b66)
  • adjust npm settings to match gitlab documentation (db0b4b8)
  • adjust npm settings to match gitlab documentation (103452b)
  • change to docker image that has git (afeb6d8)
  • convert release config to commonjs style (b78049b)
  • set correct NPM_TOKEN (6134247)
  • tweak some test settings and types (8b91782)

Features