API Announcement for March 4, 2021
On April 30, 2021, the Coupon API will limit the characters allowed in a coupon name. An error will result if any special characters other than the following are used in the Coupon code field:
-
Alphanumeric values
-
White spaces
-
Underscores ( _ )
-
Hyphens ( - )
To prevent a disruption in service, remove special characters from all coupon codes.
Storefront Data Hooks & Theme Updates for March 4, 2021
Storefront Hooks
1.0.1
- Initial public release in support of https://nextjs.org/commerce
1.1.0
**Fix ****useUpdateItem**
-
Fix typo in storefront-data-hooks repo
-
Add missing types to the
Cartbody
Resolves #22
Login SSO
-
Accept
optionsin theuseLoginhook to allow Login SSO -
Update Readme with a quick guide of using Login SSO
Allow to get products of different categories
-
Add a new key to
useSearch:categoryIds -
Stringify
categoryIdsto use as a key in SWR -
Add a deprecation warning to
categoryId
Resolves #9
Fix **useAddItem** types
- Set
variantIdas optional
Resolves #21
Theme
- Added improvements focusing on WCAG 2.1 Level AA compliance. To learn how to develop a theme to meet the needs of all users, see Developing Themes for Accessibility.