V7 Migration
This document outlines the changes introduced in recent versions of the Gesso packages. Please review these changes carefully and update your code accordingly.
Major Changes (Breaking Changes)
These changes require code modifications to ensure continued functionality.
@acromedia/gesso-core
BrandType: RemovedisSelectedandproductCountproperties. Update your code to no longer rely on these properties.FacetTypeType: RemovedBrandSearchFilter,ProductAttributeSearchFilter,ProductPriceFilter, andCategorySearchFilter. UsesubFacetsfor filtering.FacetType: Removedattributesandbrandsproperties. UsesubFacetsinstead.- Removed
AttributeInterface: If you were using this interface directly, update your code to use the newsubFacetsapproach.
@acromedia/gesso-bigcommerce
subFacets: ReplacedentityIdwithid. Update your code to use theidproperty.subFacets: Removedtypeproperty. Passtagsas an argument touseProductSearchanduseFacetinstead.
@acromedia/gesso-cms
ContentType: ReplacedContent[]withContentSearchResult. Update your code to handle the new return type ofgetContentSearch.getContentSearch: Now always returns aContentSearchResult.
@acromedia/gesso-drupal-commerce & @acromedia/gesso-commerce & @acromedia/gesso-next
useCustomer: Removed the genericupdatefunction. Use the following more specific functions instead:updateNameupdateEmailupdatePasswordaddAddressupdateAddressupdatePrimaryAddressdeleteAddress
@acromedia/gesso-commerce
- Next.js App Router Feature Flag: Removed the feature flag for opting into the Next.js App Router. If you were relying on this flag, you'll need to adjust your application to work with the App Router directly.
@acromedia/gesso-erp
UseAccountPlugin: No longer acceptsidoraccountOptions. Update your code to remove these parameters.UseAccount: No longer acceptsaccountOptions. Update your code to remove this parameter.GetAccount: No longer acceptsaccountOptions. Update your code to remove this parameter.
@acromedia/gesso-shopify & @acromedia/gesso-shopify-middleware
- Deprecated Shopify API Attributes: Removed deprecated Shopify API attributes. Refer to the Shopify API documentation for the latest attribute names and usage.
@acromedia/gesso-drupal
- Field Naming: Removed support for old field naming that did not include
_gesso_. Ensure all your field names include the_gesso_suffix. - Regression Testing: Removed regression testing for old field names.
@acromedia/gesso
This package aggregates changes from other Gesso packages. Refer to the individual package changelogs for details. Specifically, this includes changes for @acromedia/gesso-core, @acromedia/gesso-bigcommerce, @acromedia/gesso-cms, @acromedia/gesso-drupal-commerce, @acromedia/gesso-shopify, @acromedia/gesso-commerce, and @acromedia/gesso-next.
Patch Changes
These changes are backwards compatible and should not require code modifications, but it's always good to be aware of them.
All Packages (axios update)
- Updated
axiosdependency. This is a patch update and should not introduce breaking changes. However, it's always recommended to test your application after any dependency update.
General Guidance
- Thorough Testing: After making these changes, thoroughly test your application to ensure everything works as expected.
- Package Updates: Ensure all your Gesso packages are updated to the latest versions.
- Refer to Documentation: Consult the individual package documentation for more detailed information on specific changes.
This migration guide should help you update your code to be compatible with the latest Gesso releases. If you encounter any issues, please don't hesitate to reach out for support.