@fast-simon/shopify-hydrogen 1.0.12 → 1.0.14-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -71,9 +71,10 @@ describe('legacy hydrogen categories_navigation — regression (byte-identical w
71
71
  CategoriesNavigation.get({ ...baseProps, personalization: undefined });
72
72
  expect(lastRequestedUrl).toBe(urlA);
73
73
  });
74
- it('preserves the historical narrow=undefined quirk when narrow is not provided', () => {
74
+ it('omits narrow when it is not provided', () => {
75
+ // The URL builder drops undefined params, and JSON.stringify(undefined) is undefined.
75
76
  CategoriesNavigation.get({ ...baseProps });
76
- expect(lastRequestedUrl).toMatch(/[?&]narrow=undefined/);
77
+ expect(lastRequestedUrl).not.toMatch(/[?&]narrow=/);
77
78
  });
78
79
  it('appends personalization keys after core params', () => {
79
80
  CategoriesNavigation.get({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fast-simon/shopify-hydrogen",
3
- "version": "1.0.12",
3
+ "version": "1.0.14-beta.0",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "npm run build:plugin:cjs && npm run build:esm",