Skip to content

Commit b7bb012

Browse files
committed
Remove redundant in skeleton template; update changesets to be more consistent with 2025-07 PR
1 parent f80c9fc commit b7bb012

File tree

6 files changed

+22
-18
lines changed

6 files changed

+22
-18
lines changed

.changeset/cold-rules-wave.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@shopify/hydrogen': patch
3+
---
4+
5+
This version adds support for the new cookie system in Shopify (`_shopify_analytics` and `_shopify_marketing` http-only cookies). It is backward compatible and still supports the deprecated `_shopify_y` and `_shopify_s` cookies.
6+
7+
- `createRequestHandler` can now be used for every Hydrogen app, not only the ones deployed to Oxygen. It is now exported from `@shopify/hydrogen`.
8+
- A new Storefront API proxy is now available in Hydrogen's `createRequestHandler`. This will be used to obtain http-only cookies from Storefront API. In general, it should be transparent but it can be disabled with the `proxyStandardRoutes` option.
9+
- `Analytics.Provider` component and `useCustomerPrivacy` hook now make a request internally to the mentioned proxy to obtain cookies in the storefront domain.

.changeset/hydrogen-cookies-migration.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

.changeset/remix-oxygen-proxy.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,5 @@
22
'@shopify/remix-oxygen': minor
33
---
44

5-
Added built-in Storefront API proxy support to `createRequestHandler`.
65

7-
- New `proxyStandardRoutes` option (default: `true`) automatically proxies `/api/.../graphql.json` requests via `storefront.forward()`
8-
- New `collectTrackingInformation` option (default: `true`) forwards cookies and server-timing headers from SFAPI subrequests to the browser
9-
- Sets `_sfapi_proxy` server-timing header for document requests to signal proxy availability
10-
- Updated `getStorefrontHeaders` to check `sec-purpose` header before `purpose` header
6+
Support Shopify's new consolidated cookie architecture. Adds built-in Storefront API proxy support to `createRequestHandler`.

.changeset/rotten-bobcats-grab.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@shopify/hydrogen-react': patch
3+
---
4+
5+
New export `getTrackingValues` to obtain information for analytics and marketing. Use this instead of `getShopifyCookies` (which is now deprecated).
6+
7+
`useShopifyCookies` now accepts a `fetchTrackingValues` parameter that can be used to make a Storefront API request and obtain Shopify http-only cookies, `_shopify_analytics` and `_shopify_marketing` (which replace the deprecated `_shopify_y` and `_shopify_s` cookies).

.changeset/two-melons-design.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/hydrogen': patch
3+
---
4+
5+
Fixed a number of issues related to irregular behaviors between Privacy Banner and Hydrogen's analytics events.

templates/skeleton/server.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export default {
3030
build: remixBuild,
3131
mode: process.env.NODE_ENV,
3232
getLoadContext: () => appLoadContext,
33-
proxyStandardRoutes: true,
3433
});
3534

3635
const response = await handleRequest(request);

0 commit comments

Comments
 (0)