@pack/react Changelog
Release notes for every published version of @pack/react. For usage, see the @pack/react reference.
4.6.2
Released October 29, 2026
Patch Changes
cms.idis now always the section id, matching the wrapper'sdata-comp-id. In 4.6.1 anidalready stored in the section data was kept, so sections seeded from Pack's default content (tiles-stack,tabbed-tiles-slider) and some sections from 2023 store upgrades passed a stale or shared id instead.
4.6.1
Released October 29, 2026
Patch Changes
RenderSections/RenderSectionnow pass the section id on thecmsprop (cms.id), matching the wrapper'sdata-comp-id. A section field already namedidis left unchanged.
4.6.0
Released October 6, 2026
Minor Changes
- Adds
setPackConsent(), andPackProvidernow forwards the visitor's answer to Shopify's privacy banner to Pack. Both take effect with@pack/hydrogen4.0, which records and honors the answer, and do nothing on earlier versions. Addswindow.packDebug.getTestInfos(), listing every test the visitor is in.
Patch Changes
PackProviderandsetPackConsent()stop posting to/pack/consentfor 30 minutes at a time once the answer can't be Pack's endpoint (a 404, 405, redirect or non-JSON response), as on servers without@pack/hydrogen4.0, then try again, so a tab left open across an upgrade to 4.0 starts recording.
4.5.0
Released September 16, 2026
Minor Changes
-
Replace the preview toast with a movable on-site toolbar. A draggable pill docks to any viewport edge (position remembered in
localStorageunderpack-preview-toolbar-dock) and opens a read-only details panel showing the active preview link, content release, environment, locale, A/B test, and drafts. Exiting preview now asks for confirmation and reports a failed request inline. A Hide action tucks the pill away until the page is reloaded or the storefront navigates to another path.The old
[data-pack-preview-toast]and[data-pack-preview-toast-content]attributes and theExit preview modebutton label are gone; target[data-pack-preview-toolbar],[data-pack-preview-toolbar-pill],[data-pack-preview-toolbar-panel], and[data-pack-preview-toolbar-hide]instead. Production pages with preview off mount nothing. Hiding announces how to restore the toolbar and returns focus to the previous storefront control when available. Toolbar and Customizer history subscriptions preserve navigation wrappers installed by other scripts.
4.4.0
Released September 3, 2026
Minor Changes
-
Add
usePlaybookCart, an opt-in bridge that lets Playbook's collection-grid "Add to cart" button use the storefront's own cart.Playbook adds a line on a Liquid theme through Shopify's AJAX Cart API, which Hydrogen has no equivalent for. It deliberately will not write the line through the Storefront API instead: a Hydrogen cart's UI renders from React state no third-party script can reach, so the line would land in Shopify while the cart icon still read zero and the drawer never opened. Playbook falls back to linking to the product page rather than looking broken.
This hook lets the storefront — the only code that can update its own cart UI — supply the write:
const { linesAdd } = useCart(); usePlaybookCart(async ({ variantId, quantity }) => { await linesAdd([{ merchandiseId: variantId, quantity }]); });Nothing is registered unless a storefront calls it. The hook normalizes Playbook's numeric variant id to a Storefront GID, and clears its
windowhandler by identity on unmount so a route transition can't strip a newer bridge.
4.3.4
Released September 1, 2026
Patch Changes
- Keep customizer page content in the storefront preview when React Router revalidates the loader for the same page. Any action (for example a
fetcher.submitPOST) revalidates every loader and used to handRenderSectionsa freshcontentobject that silently replaced the content received from the customizer, so a just-shown or newly added section rendered briefly and then vanished until the page was saved. Loader content now only takes over on navigation to a different handle, or while nothing has been received from the customizer for that page.
4.3.3
Released August 12, 2026
Patch Changes
- Keep the storefront preview bar within mobile viewports, show preview link or content release context when provided, and use a shorter accessible Exit preview action.
4.3.2
Released June 19, 2026
Patch Changes
- Remove the deprecated Pack error tracking integration from the Hydrogen and React SDK packages.
- Updated dependencies
- @pack/types@0.2.1
4.3.1
Released May 26, 2026
Patch Changes
- Fix
useSectionsexposing a changed element shape after 4.3.0. TheRenderSectionsextraction wrapped each section's<style>/<section>inside theRenderSectioncomponent, so consumers that walkfragment.props.childrento find thedata-comp<section>element no longer found it (the<section>was hidden behind an unrendered component element).useSectionsnow returns the flat<style>+<section>children again, while still sharing a single code path with the exportedRenderSection. Full-pageRenderSectionsoutput is unchanged.
4.3.0
Released May 21, 2026
Minor Changes
- Add
RenderSection: renders a single section by_templateagainst the registry populated byregisterSection. Use inside parent sections that allow nested sections viasectionTypes. For full-page rendering, continue usingRenderSections.
Patch Changes
- Updated dependencies
- @pack/types@0.2.0
4.2.1
Released March 17, 2026
Patch Changes
- Fix customizer showing stale homepage sections when navigating to pages without CMS content
4.2.0
Released February 25, 2026
Minor Changes
- Add packDebug helpers for storefront AB test and rules-cache visibility.
4.1.0
Released February 21, 2026
Minor Changes
-
Add Pack error tracking packages and integrate them into the Hydrogen and React SDKs.
- Introduce
@pack/errorsfor shared DSN parsing, sanitization, fingerprinting, and server error event helpers. - Introduce
@pack/errors-reactfor browser error capture (uncaught,unhandledrejection) and React error boundary reporting. - Wire
@pack/hydrogento send server events for thrown errors and 5xx response fallbacks. - Wire
@pack/reactto include the new React error tracking integration.
- Introduce
Patch Changes
- Updated dependencies
- @pack/errors-react@0.1.1
4.0.0
Released February 9, 2026
Major Changes
-
Upgrade to Shopify Hydrogen 2025.7.x
Breaking Changes:
- @pack/hydrogen: Upgraded to
@shopify/hydrogen ^2025.7.2which requires React Router 7. New peer dependencies:react-router ^7.12.0,@shopify/hydrogen ^2025.7.2. Removed peer dependencies:@remix-run/server-runtime,@shopify/remix-oxygen. Node engine bumped to>=20.0.0. - @pack/packlytics: Updated to support
@shopify/hydrogen ^2025.7.2. New required peer dependency:@shopify/hydrogen ^2025.7.2. Node engine bumped to>=20.0.0. - @pack/react: Major version bump to align with ecosystem upgrade.
- @pack/hydrogen: Upgraded to
3.1.2
Released February 6, 2026
Patch Changes
- Fix schema validation to be non-blocking. Replace .strict() with .passthrough() on Zod field schemas so unrecognized keys no longer prevent section registration. Validation errors are now logged as warnings while still allowing sections to register and render.
- Updated dependencies
- @pack/types@0.1.4
3.1.1
Released November 12, 2025
Patch Changes
- Use
handleinstead ofidto address issue with localization
3.1.0
Released November 10, 2025
Minor Changes
- Adds message handling for locale changes within the Pack Customizer.
Patch Changes
- Add preview context support with locale and draft parameters.
3.0.4
Released September 19, 2025
Patch Changes
- Resolve issue where stale data would cause errors with
<RenderSections />when in preview mode.
3.0.3
Released September 5, 2025
Patch Changes
- Bump @pack/types to v0.1.3.
3.0.2
Released September 4, 2025
Patch Changes
- Bump @pack/types.
3.0.1
Released August 27, 2025
Patch Changes
- Improve storefront setting validation. Fix toggleLabels being required on toggle fields as can be optional.
3.0.0
Released August 25, 2025
Major Changes
- Add comprehensive A/B testing support to Pack.
- Integrate comprehensive Pack A/B testing features.
2.2.3
Released August 21, 2025
Patch Changes
- Use latest types.
2.2.2
Released July 14, 2025
Patch Changes
- Bump patch so deprecated beta is not latest version on npm.
2.2.1
Released June 27, 2025
Patch Changes
- Bump patch so deprecated beta is not latest version on npm.
- Bump @pack/types to v0.0.4.
2.2.0
Released May 19, 2025
Minor Changes
- Render style properties if provided.
2.1.6
Released May 6, 2025
Patch Changes
- Fix: Maintain hook call order in
useSections.
2.1.5
Released April 2, 2025
Patch Changes
- Bump @pack/types.
2.1.4
Released February 20, 2025
Patch Changes
- Fix dependency and update version file.
2.1.3
Released February 20, 2025
Patch Changes
- Updated dependencies
- @pack/types@0.0.2
2.1.2
Released February 19, 2025
Patch Changes
- Add errors code
2.1.1
Released February 19, 2025
Patch Changes
- Update root render implementation.
2.1.0
Released February 14, 2025
Minor Changes
- Utilize @pack/types.
Patch Changes
- Updated dependencies
- @pack/types@0.0.1
2.0.1
Released January 22, 2025
Patch Changes
- Enable SSR with
<RenderContent />. FixuseSections.
2.0.0
Released January 15, 2025
Major Changes
- Utilize new Customizer messaging protocol.
1.0.0
Released January 14, 2025
Major Changes
- Sections now rendered at
<PreviewProvider />level of app via render propsections.<RenderSections />is no longer used at route and instead<PackRenderContent />which is passed thecontentprop containing the content query loader data.
0.1.4
Released August 16, 2024
Patch Changes
- Fix issues where (1) local development is not using content environment and (2) the Customizer is not initializing to the content environment.
0.1.3
Released August 12, 2024
Patch Changes
- Move Packlytics trigger to the front
0.1.2
Released July 19, 2024
Patch Changes
- adds useSection hook to extract and render specific sections anywhere on a page while maintaining live content updates in customizer
0.1.1
Released April 24, 2024
Patch Changes
- Hide hidden sections from DOM and update how client communicates route initialization and changes with Pack.
0.1.0
Released January 17, 2024
Minor Changes
- Add
useOverlayScripthook for overlay script injection inRenderSectionsand other React libraries.
0.0.14
Released December 7, 2023
Patch Changes
- Adds in preview toast for shared link previews
0.0.13
Released November 23, 2023
Patch Changes
-
Ensures that dataSource is attached to section data when rendering sections
- Checks if store is loaded in an iframe before attempting to establish customizer connection.
0.0.12
Released November 3, 2023
Patch Changes
- Catch error when attempting to call parent connection method
0.0.11
Released November 2, 2023
Patch Changes
- Ensure that useCustomizerShell does not cause unnecessary re-renders
0.0.10
Released November 2, 2023
Patch Changes
- Fix section render flash when editing content
0.0.9
Released November 1, 2023
Patch Changes
- Ensure that customizer location is updated when the data handle changes
0.0.8
Released October 30, 2023
Patch Changes
- Add penpal and uuid packages to dependencies
0.0.7
Released August 28, 2023
Patch Changes
- remove @remix-run/react as a dependency
0.0.6
Released August 28, 2023
Patch Changes
- remove @remix-run/react as a dependency
0.0.5
Released August 16, 2023
Patch Changes
- remove @remix-run/react as a dependency
0.0.4
Released August 16, 2023
Patch Changes
- fix renderSection mapping and passed in arg
0.0.3
Released August 16, 2023
Patch Changes
- fix export in react
0.0.2
Released August 16, 2023
Patch Changes
- new hooks and provider updates
0.0.1
Released August 11, 2023
Patch Changes
- Initial publish