-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
'@shopify/hydrogen': patch | ||
--- | ||
|
||
Fix redirect bug | ||
Fix a bug that allowed undesired redirect to external domains |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
--- | ||
'@shopify/cli-hydrogen': patch | ||
'@shopify/cli-hydrogen': minor | ||
--- | ||
|
||
Remove hidden attribute from `deploy` command | ||
Add `deploy` command to Hydrogen CLI | ||
|
||
You can now deploy your Hydrogen storefront without connecting to GitHub. Run the `deploy` command from your local terminal or configure a CI/CD (e.g. Bitbucket) for continuous deployment. | ||
You can now deploy your Hydrogen app without connecting to GitHub. Run the `deploy` command from your local terminal or configure your own CI/CD workflows from any platform. | ||
|
||
Run `h2 deploy --help` to see additional features of the command. | ||
Run `npx shopify hydrogen deploy --help` for more details. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
--- | ||
'@shopify/hydrogen': patch | ||
'@shopify/cli-hydrogen': patch | ||
'@shopify/hydrogen': major | ||
--- | ||
|
||
Better Hydrogen error handling | ||
|
||
* Fix storefront client throwing on partial successful errors | ||
* Fix subrequest profiler to better display network errors with url information for SFAPI requests | ||
* Fix subrequest profiler to better display network errors with URL information for Storefront API requests | ||
|
||
### Breaking change | ||
|
||
Mutation methods of `createCartHandler` used to return an `errors` object that contains `userErrors`. This is now changed back to `userErrors` to be consistent with SFAPI schema. | ||
This update changes the shape of the error objects returned by the `createCartHandler` method. | ||
|
||
The `errors` object will now be used for Graphql execution errors. | ||
Previously, mutations could return an `errors` array that contained a `userErrors` array. | ||
|
||
`storefront.isApiError` is deprecated. | ||
With this change, these arrays are no longer nested. The response can contain both an `errors` array and a `userErrors` array. `errors` contains GraphQL execution errors. `userErrors` contains errors caused by the cart mutation itself (such as adding a product that has zero inventory). | ||
|
||
Updated types: | ||
`storefront.isApiError` is deprecated. | ||
|
||
* `cart.get()` used to return a `Cart` type. Now it returns `CartReturn` type to accommodate the `errors` object | ||
* All other `cart` methods (ie. `cart.addLines`) used to return a `CartQueryData` type. Now it returns `CartQueryDataReturn` type to accommodate the `errors` object. | ||
### Updated return types for `createCartHandler` methods | ||
|
||
* `cart.get()` used to return a `Cart` type. Now it returns `CartReturn` type to accommodate the `errors` object. | ||
* All other `cart` methods (ie. `cart.addLines`) used to return a `CartQueryData` type. Now it returns `CartQueryDataReturn` type to accommodate the `errors` object. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
'@shopify/hydrogen': patch | ||
'@shopify/hydrogen': major | ||
--- | ||
|
||
💥 Change the behaviour of `createContentSecurityPolicy` where the custom rules passed in will extends the default Shopify and development domains instead of overriding them. | ||
Custom rules passed to `createContentSecurityPolicy` now extend the default Shopify and development domains, instead of overriding them |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
--- | ||
'@shopify/remix-oxygen': patch | ||
'skeleton': patch | ||
'@shopify/cli-hydrogen': patch | ||
'@shopify/create-hydrogen': patch | ||
--- | ||
|
||
* Update example and template Remix versions to `^2.5.1` | ||
* Enable future flags: | ||
* `v3_fetcherPersist` - <https://remix.run/docs/en/main/hooks/use-fetchers#additional-resources> | ||
* `v3_relativeSplatpath` - <https://remix.run/docs/en/main/hooks/use-resolved-path#splat-paths> | ||
* Enable Remix future flags: | ||
* [`v3_fetcherPersist`](https://remix.run/docs/en/main/hooks/use-fetchers#additional-resources) | ||
* [`v3_relativeSplatpath`](https://remix.run/docs/en/main/hooks/use-resolved-path#splat-paths) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,5 @@ | ||
--- | ||
'@shopify/remix-oxygen': patch | ||
'@shopify/hydrogen': patch | ||
'@shopify/cli-hydrogen': patch | ||
'@shopify/create-hydrogen': patch | ||
'@shopify/hydrogen': minor | ||
--- | ||
|
||
Subrequest Profiler (stable) - Provides an overview of network requests happening on the server side | ||
|
||
#### How to use: | ||
|
||
1. Run `h2 dev` | ||
2. Visit http://localhost:3000/subrequest-profiler | ||
|
||
#### Set request display name with `storefront.query`: | ||
|
||
```tsx | ||
context.storefront.query( | ||
HOMEPAGE_FEATURED_PRODUCTS_QUERY, | ||
{ | ||
displayName: 'Feature products', | ||
variables: { | ||
country, | ||
language, | ||
}, | ||
}, | ||
) | ||
``` | ||
|
||
#### Set request debug information with `createWithCache`: | ||
|
||
```tsx | ||
const withCache = createWithCache({ | ||
cache, | ||
waitUntil, | ||
request, | ||
}); | ||
|
||
const data3p = async () => { | ||
return await withCache( | ||
['Some unique cache keys'], | ||
CacheLong(), | ||
({addDebugData}) => { | ||
return fetch('https://some-3p-endpoint.com').then(async (response) => { | ||
if (process.env.NODE_ENV === 'development') { | ||
addDebugData({ | ||
displayName: '3p endpoint display name', | ||
response, | ||
}); | ||
} | ||
|
||
return await response.json(); | ||
}); | ||
}, | ||
); | ||
}; | ||
``` | ||
|
||
Add [Subrequest Profiler](https://shopify.dev/docs/custom-storefronts/hydrogen/debugging/subrequest-profiler) developer tool to enable better observability of server-side network requests and caching behaviors |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
'@shopify/hydrogen': patch | ||
'@shopify/hydrogen': minor | ||
--- | ||
|
||
✨ Make customer client utility official. | ||
Introduce the new [`createCustomerAccountClient`](https://shopify.dev/docs/api/hydrogen/2024-01/utilities/createcustomeraccountclient) for interacting with the Customer Account API |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
--- | ||
'@shopify/hydrogen-react': patch | ||
'skeleton': patch | ||
'@shopify/hydrogen': patch | ||
'@shopify/cli-hydrogen': patch | ||
'@shopify/create-hydrogen': patch | ||
'@shopify/hydrogen-react': major | ||
'@shopify/hydrogen': major | ||
--- | ||
|
||
Update to SFAPI 2024-01 | ||
Upgrade to [Storefront API v2024-01](https://shopify.dev/docs/api/release-notes/2024-01#storefront-api-changes) |