@acromedia/gesso-core
6.2.0
Minor Changes
- da18e67: Update types related to Order and PageInfo, moving them to the Core package
6.1.4
Patch Changes
- a98eeac: Fix: Adjust CartItemProductOption to accept a string for the optionValue property.
- a98eeac: Deprecate: CartItem
properties
currently typed asCartItemProperties | CartItemProperties[]
will becomeCartItemProperties
in V8.
6.1.3
Patch Changes
- 3bcf44c: add an optional subtitle field to the product properties type
6.1.2
Patch Changes
- 66ed396: Update: move ShippingMethodsOptions type from design-system to core.
6.1.1
Patch Changes
- baa721c: Add: data prop to Cart type and and CartItem type so extra data can be mapped to the useCart response.
6.1.0
Minor Changes
- 0a5c916: add quotes to core and erp packages
6.0.0
Major Changes
-
609c5e9: ### Cart Interface: Deprecated Properties Removed
The
Cart
interface has been updated to remove deprecated properties.Changes:
- Removed the following deprecated properties:
subtotal
(useadjustments
withid: 'subtotal'
instead)total
(useadjustments
withid: 'total'
instead)totalItems
(useadjustments
withid: 'totalItems'
instead)
Rationale:
- Simplifies the
Cart
interface by consolidating total-related information into theadjustments
array, providing a more consistent structure.
Impact:
- Code that directly accessed the removed properties (
subtotal
,total
,totalItems
) will need to be updated to retrieve the information from theadjustments
array.
Example Update:
const subtotal = cart.adjustments?.find(
(adj) => adj.id === "subtotal"
)?.value;Invoice Interface: Deprecated Properties Removed
The
Invoice
andDetails
interfaces have been updated to remove deprecated properties.Changes:
- Invoice Interface:
- Removed
shippingTotal
(deprecated).
- Removed
- Details Interface:
- Removed
orderNumber
(deprecated).
- Removed
Note: No alternative properties or adjustments are needed as these fields were simply removed without replacement.
Product Interface: Deprecated Properties Removed
The
Product
interface has been updated to remove deprecated properties.Changes:
- Removed
formatedDescription
(deprecated).
Note: This property was removed in favour of the correctly spelled formattedDescription property. Internal implementations within Gesso have been updated, but if you do have any code accessing product.formatedDescription you will just want to update to product.formattedDescription.
- Removed the following deprecated properties:
5.3.2
Patch Changes
- cc252ca: Add: add type prop to CartItem type.
5.3.1
Patch Changes
- 2b606f9: Change the items property to optional in our cart type. This is required for our type-checking when needing to pass a cart object with only an id property.
5.3.0
Minor Changes
- 6f94395: Migrating decodeHTMLEntities to only impact clientside components.
5.2.4
Patch Changes
- b07a19a: Return unmapped product data under data property
5.2.3
Patch Changes
- eda72b5: Moved the PasswordValidationOptions interface to Gesso core.
5.2.2
Patch Changes
- af19949e5: add: type property to cart item properties so we can pass the product type to the add method of useCart.
5.2.1
Patch Changes
- 29d64f7: feat: Add type prop to product type to allow drupal-commerce products to be added to a cart.