Skip to content

v5.0.0

Choose a tag to compare

@commercelayer-ci commercelayer-ci released this 01 Sep 16:49
· 41 commits to main since this release

What's Changed

💥 Breaking Change

🚀 Enhancement

  • Create getAccessToken function by @acasazza in #618
  • Add getPrices function by @acasazza in #620
  • Add retrievePrice function. Resolve #621 by @acasazza in #622
  • Add updatePrice function, and tests, remove package jwt-decode by @acasazza in #627
  • Create usePrices hook by @acasazza in #695
  • Implement SWR into hooks by @acasazza in #701
  • ✨ feat(PrivacyAndTermsCheckbox): fallback to org config for privacy_url and terms_url by @acasazza in #722
  • ✨ feat(skus): migrate SkuListsContainer and AvailabilityContainer to hooks by @acasazza in #731
  • feat(core,hooks): add SKU resource and useSkus hook by @acasazza in #720
  • 📚 docs(document): add SKUs story and upgrade Storybook to v10 by @acasazza in #735
  • refactor(availability): remove dead reducer, export SkuAvailability, add hook tests & stories by @acasazza in #745
  • 📚 docs + feat(skus): getting-started docs, SkuList context fix, SkuListsContainer params by @acasazza in #738
  • feat(#748): add interceptors prop to SDK hooks and CommerceLayer component by @acasazza in #750
  • ✨ feat(prices): standalone Price with module-level batch store, deprecate PricesContainer by @acasazza in #752
  • ✨ feat(skus): standalone Sku and SkuList components, deprecate containers by @acasazza in #758
  • ✨ feat(availability): standalone Availability component, deprecate AvailabilityContainer by @acasazza in #761
  • ✨ feat(orders): extract order logic to core+hooks, slim OrderContainer by @acasazza in #764
  • ✨ feat(orders): add standalone Order component and deprecate OrderContainer by @acasazza in #766
  • feat: refactor CheckoutLink component, add stories & specs by @acasazza in #770
  • ♻️ refactor(line-items): deprecate LineItemsContainer, add LineItems standalone component by @acasazza in #776
  • ♻️ refactor(line-items): refactor child components and add 100% coverage tests by @acasazza in #777
  • ♻️ refactor(gift_cards): standalone GiftCard, remove reducer, rapid-form v4, 100% coverage by @acasazza in #779
  • ♻️ Refactor customers and addresses domain by @acasazza in #784
  • ♻️ refactor: addresses domain — standalone BillingAddress and ShippingAddress by @acasazza in #786
  • ✨ feat: in_stock_subscriptions — standalone component, hook, and core fn by @acasazza in #792
  • Migrate to @commercelayer/sdk v8 by @gciotola in #806

🐛 Bug Fix

  • Fix payment response handling and validation by @acasazza in #717
  • Exclude gift card/coupon errors from blocking place order by @acasazza in #725
  • 🐛 fix(HostedCart): refresh minicart URL when persistKey changes — v5 port (#740) by @acasazza in #741
  • 🐛 fix(HostedCart): refresh minicart URL when persistKey changes (#685) by @acasazza in #740
  • 🔒 fix(security): remediate HIGH/CRITICAL vulnerabilities (CVE-2026-4867, CVE-2026-33671, CVE-2026-39363) by @acasazza in #759
  • Stop the Drop-in reloading on every order update by @acasazza in #807
  • fix(place-order): keep the button disabled until privacy & terms are accepted by @acasazza in #825
  • fix(adyen): send the shopper locale so redirect pages match the Drop-in language by @acasazza in #824
  • fix(adyen): remount the Drop-in when the session identity changes by @acasazza in #818

📝 Documentation

  • 📚 docs(stories): extract deprecated containers into own story files by @acasazza in #768
  • ✨ feat(stories): add HostedCart stories in document package by @acasazza in #774
  • docs(getting-started): add the v4 to v5 upgrade guide by @acasazza in #826

Other Changes

  • Remove lodash dependency by @acasazza in #743
  • fix(MyAccountLink): add returnUrl prop + fix HostedCart minicart glitch by @acasazza in #747
  • 🔧 chore(ci): update GitHub Actions to latest versions by @acasazza in #754
  • ♻️ refactor(HostedCart): fix hooks order, extract domain constant and url resolver by @acasazza in #772
  • ♻️ refactor: shipments domain — standalone Shipments component and hooks by @acasazza in #789
  • Update GitHub Actions and publish hooks and core on pkg-pr-new by @malessani in #794
  • Remediate HIGH/CRITICAL vulnerabilities by @acasazza in #800
  • build: replace tsup with tsdown and apply React Compiler to published dist by @acasazza in #799
  • Refactor payment methods: standalone components without deprecated containers by @acasazza in #796
  • chore: rename core → core-components and hooks → react-hooks-components by @acasazza in #802
  • Accumulate state.include instead of replacing it by @acasazza in #805
  • Close payment-gateway render loop and repair gift-card/coupon submit by @acasazza in #804
  • Merge main into v5.0.0 and drop the legacy docs package by @acasazza in #814
  • Fix the Netlify build from the repo and rename document to docs by @acasazza in #815
  • Build the libraries before the storybook by @acasazza in #816
  • chore: bump pnpm to 11.24.0 by @acasazza in #827

Full Changelog: v4.29.4...v5.0.0