@acromedia/gesso-commerce
7.1.0
Minor Changes
-
6fa249e: Add useOrders(null) option to block loading if you're still waiting on config to pass
-
6fa249e: MINOR BREAKING CHANGE
Changed placeOrder function return type from boolean to an object containing the order status and ID.
This allows the checkout completion page to properly load the order.
7.0.2
Patch Changes
- Updated dependencies [db9e03d]
- @acromedia/gesso-core@7.1.1
7.0.1
Patch Changes
- a3c8878: Update: update Checkout and Customer hooks to accept selected countries prop so that we can fetch the subLocations for each country when selecting a country. Add feature flag to use raw location values when updating shipping and billing locations in Checkout plugin.
- Updated dependencies [a3c8878]
- @acromedia/gesso-core@7.1.0
7.0.0
Major Changes
-
d8721b7: Removed feature flag for opting into NextJS AppRouter.
Removed generic
update
from useCustomerUse more specific update functions instead:
- updateName
- updateEmail
- updatePassword
- addAddress
- updateAddress
- updatePrimaryAddress
- deleteAddress
Patch Changes
- e0fabdb: Feat: allow placeOrder method to take in a payment object.
- Updated dependencies [d8721b7]
- Updated dependencies [e0fabdb]
- Updated dependencies [92ee5d2]
- Updated dependencies [4dd9862]
- @acromedia/gesso-core@7.0.0
6.2.1
Patch Changes
- e60450e: Skip the useProduct api call if the id and the product options haven't changed
6.2.0
Minor Changes
- da18e67: Update types related to Order and PageInfo, moving them to the Core package
Patch Changes
- Updated dependencies [da18e67]
- @acromedia/gesso-core@6.2.0
6.1.9
Patch Changes
- Updated dependencies [a98eeac]
- Updated dependencies [a98eeac]
- @acromedia/gesso-core@6.1.4
6.1.8
Patch Changes
- ff21b16: fix: allow formatCurrency currency argument to be undefined and if it is return an empty string to stop NumberFormat from crashing.
6.1.7
Patch Changes
- Updated dependencies [3bcf44c]
- @acromedia/gesso-core@6.1.3
6.1.6
Patch Changes
- ae8c363: Fix: allow checkout plugin to return the full order from its methods to allow for a full update if needed.
6.1.5
Patch Changes
-
7f61668: Update: add shippingInfo to Order type so the methods can be returned in checkout response.
-
66ed396: Add: shippingInfo.shippingMethods property on Order type as type ShippingMethodsOptions.
Deprecate: shippingInfo.methods removing V8 use shippingInfo.shippingMethods instead.
-
Updated dependencies [66ed396]
- @acromedia/gesso-core@6.1.2
6.1.4
Patch Changes
- Updated dependencies [baa721c]
- @acromedia/gesso-core@6.1.1
6.1.3
Patch Changes
- 80eddc0: Update conditional check to ditch the cart cookie to look for any status that is not currently open. This change should be a better guarantee that we are looking for a new cart instead of strictly looking for carts that have completed fulfillment.
6.1.2
Patch Changes
- eae6356: cleans up grammar/spelling errors in console output upon generation of provider files.
- 0902248: Allow an optional and configurable purchase order field on a gesso order
6.1.1
Patch Changes
- e8fa722: TS type fixes
- d0235aa: update: add a methods property to the paymentInfo property on the Order type.
- Updated dependencies [0a5c916]
- @acromedia/gesso-core@6.1.0
6.1.0
Minor Changes
- 26b270a: Adds optional data and offset to order type and order options. This will allow us to solve REST pagination.
6.0.0
Major Changes
-
609c5e9: # Checkout Provider Update
Deprecated Definitions Removed
Deprecated
ApplyCoupon
andRemoveCoupon
hook definitions have been removed.Use:
applyCoupon
andremoveCoupon
instead.Commerce Provider Update
Deprecated Types Removed
The use of deprecated
getCustomer
type has been removed. UseuseCustomer
instead. These were both types as CustomerPlugin and there was no need to export two of the same type.Customer Provider Update
Deprecated Types Removed
The use of deprecated
UseCustomerPlugin
type has been removed. UseCustomerPlugin
instead.The
update
plugin is now required and has been added to all current commerce plugins. NOTE: this will be removed in v7 in favour of individual update methods (i.e updatePassword, updateEmail etc.)Product Provider Update
Deprecated Types Removed
The use of deprecated
UseProductSearchResult
type has been removed. Responses are now of type ProductSearchResult, which matches this interface:export type ProductSearchResult = {
products: Product[];
facets: Facet[];
pageInfo?: {
products: PageInfo;
};
};
Patch Changes
- Updated dependencies [609c5e9]
- @acromedia/gesso-core@6.0.0
5.4.2
Patch Changes
- Updated dependencies [cc252ca]
- @acromedia/gesso-core@5.3.2
5.4.1
Patch Changes
- b1e515e: Adjust context so they are not immediately created and only created if needed, currently behind a feature flag for backwards compatibility
5.4.0
Minor Changes
- 2b606f9: Add cartReference argument to UseCart hook. This allows us to pass a cart reference item which can be used to pass through a cart id for certain cart data requests.
Patch Changes
- Updated dependencies [2b606f9]
- @acromedia/gesso-core@5.3.1
5.3.9
Patch Changes
- 13a8b3f: Update: add orderNumber and additonalAdjustments properties to Order type.
5.3.8
Patch Changes
- Updated dependencies [6f94395]
- @acromedia/gesso-core@5.3.0
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]
- @acromedia/gesso-core@5.2.4
5.3.4
Patch Changes
- fde46e7: Added optional includes parameter to Product and Catalog plugins to commerce.
5.3.3
Patch Changes
- Updated dependencies [eda72b5]
- @acromedia/gesso-core@5.2.3
5.3.2
Patch Changes
- fe3a065c2: Adjusted the return type of the customer updatePassword method from commerce.
- Updated dependencies [af19949e5]
- @acromedia/gesso-core@5.2.2
5.3.1
Patch Changes
- Updated dependencies [29d64f7]
- @acromedia/gesso-core@5.2.1
5.3.0
Minor Changes
- ede7130: Add facets and sorting to useProductSearch for Shopify
Patch Changes
- Updated dependencies [9dbfed6]
- Updated dependencies [ede7130]
- @acromedia/gesso-core@5.2.0
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]
- @acromedia/gesso-core@5.1.0
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]
- @acromedia/gesso-core@5.0.1
5.0.0
Major Changes
-
bff9b4a: - Removed type
UseProductPlugin
, useProductPlugin
instead.-
Removed
useCommerce
export. You should now be usingcommerce
. -
Removed exporting all of
gesso-core
fromgesso-commerce
. You should now be importing all of gesso-cores contents fromgesso-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]
- @acromedia/gesso-core@5.0.0
4.10.4
Patch Changes
- d8a41f2: Adjusted the getCustomer::get interface to accept an options parameter.