Skip to content

Commit

Permalink
[ci] release v1.x-2022-07 (#1750)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] committed Jul 13, 2022
1 parent c8b90ab commit 9e9a841
Show file tree
Hide file tree
Showing 19 changed files with 67 additions and 89 deletions.
5 changes: 0 additions & 5 deletions .changeset/bright-ants-tap.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/clever-clocks-stare.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/eight-dots-sleep.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/hot-drinks-juggle.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/large-hotels-shout.md

This file was deleted.

24 changes: 0 additions & 24 deletions .changeset/late-moons-hide.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/perfect-worms-rhyme.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/slow-crabs-beg.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tender-adults-fry.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/violet-mice-sing.md

This file was deleted.

2 changes: 2 additions & 0 deletions packages/create-hydrogen-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changelog

## 1.1.0

## 1.0.2

## 1.0.1
Expand Down
2 changes: 1 addition & 1 deletion packages/create-hydrogen-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"access": "public",
"@shopify:registry": "https://registry.npmjs.org"
},
"version": "1.0.2",
"version": "1.1.0",
"main": "index.js",
"license": "MIT",
"bin": {
Expand Down
58 changes: 58 additions & 0 deletions packages/hydrogen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,63 @@
# Changelog

## 1.1.0

### Minor Changes

- Replace graphiql with graphql/graphql-playground in local development at '/graphql` route. ([#1710](https://github.com/Shopify/hydrogen/pull/1710)) by [@cartogram](https://github.com/cartogram)

* Expose utilities for integrating Hydrogen with 3rd party platforms in `@shopify/hydrogen/platforms`. These utilities can resolve the project build path automatically and also find the client build assets. ([#1772](https://github.com/Shopify/hydrogen/pull/1772)) by [@frandiox](https://github.com/frandiox)

```js
import {
handleRequest, // Instead of './src/App.server'
indexTemplate, // Instead of './dist/client/index.html?raw'
isAsset, // Access a list of files in './dist/client/**/*'
} from '@shopify/hydrogen/platforms';

// Platform entry handler
export default function(request) {
if (isAsset(new URL(request.url).pathname)) {
return platformAssetHandler(request);
}

return handleRequest(request, {indexTemplate});
}
```

Note that user apps don't need to be changed.

### Patch Changes

- Fix server props to properly reset on page navigation. Fixes https://github.com/Shopify/hydrogen/issues/1817 ([#1830](https://github.com/Shopify/hydrogen/pull/1830)) by [@blittle](https://github.com/blittle)

* Serve assets in `public` directory from the same origin when deploying to Oxygen. ([#1815](https://github.com/Shopify/hydrogen/pull/1815)) by [@frandiox](https://github.com/frandiox)

Normally, public assets are served from a CDN domain that is different from the storefront URL. This creates issues in some situations where the assets need to be served from the same origin, such as when using service workers in PWA or tools like Partytown. This change adds a proxy so that the browser can download assets from the same origin.

Note that, for performance reasons, it is still recommended placing assets in `/src/assets` instead of `/public` whenever possible.

- The payload returned by `fetchSync` was supposed to mimic `react-fetch` but it wrongly moved the Response data to a sub-property `response`. This has been fixed to have the Response at the top level. Also, cached responses are now correctly serialized and retrieved to avoid issues on cache hit. ([#1760](https://github.com/Shopify/hydrogen/pull/1760)) by [@frandiox](https://github.com/frandiox)

```diff
const response = fetchSync('...');
-response.response.headers.get('...');
+response.headers.get('...');
const jsonData = response.json();
```

Note that the sub-property `response` is still available but marked as deprecated.

* Improve error messaging when there is an error in the Storefront API's GraphQL response. ([#1837](https://github.com/Shopify/hydrogen/pull/1837)) by [@frehner](https://github.com/frehner)

- `null` shopId fix on the `PerformanceMetrics` component ([#1722](https://github.com/Shopify/hydrogen/pull/1722)) by [@wizardlyhel](https://github.com/wizardlyhel)

* Make sure full page caching only caches on GET request ([#1839](https://github.com/Shopify/hydrogen/pull/1839)) by [@wizardlyhel](https://github.com/wizardlyhel)

- Fix server props when using non UTF-8 characters in URL. ([#1780](https://github.com/Shopify/hydrogen/pull/1780)) by [@frandiox](https://github.com/frandiox)

* Fix HMR in client components. It should now update only the modified client component in the browser instead of refreshing the entire page. ([#1818](https://github.com/Shopify/hydrogen/pull/1818)) by [@frandiox](https://github.com/frandiox)

## 1.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/hydrogen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"engines": {
"node": ">=14"
},
"version": "1.0.2",
"version": "1.1.0",
"description": "Modern custom Shopify storefronts",
"license": "MIT",
"main": "dist/esnext/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/hydrogen/src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const LIB_VERSION = '1.0.2';
export const LIB_VERSION = '1.1.0';
2 changes: 1 addition & 1 deletion packages/playground/async-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"dependencies": {
"@cloudflare/kv-asset-handler": "*",
"@shopify/hydrogen": "^1.0.2",
"@shopify/hydrogen": "^1.1.0",
"miniflare": "^1.3.3",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/server-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"dependencies": {
"@cloudflare/kv-asset-handler": "*",
"@shopify/hydrogen": "^1.0.2",
"@shopify/hydrogen": "^1.1.0",
"miniflare": "^1.3.3",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
2 changes: 1 addition & 1 deletion templates/demo-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"dependencies": {
"@headlessui/react": "^1.6.4",
"@heroicons/react": "^1.0.6",
"@shopify/hydrogen": "^1.0.2",
"@shopify/hydrogen": "^1.1.0",
"clsx": "^1.1.1",
"graphql-tag": "^2.12.6",
"react": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion templates/hello-world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"vite": "^2.9.0"
},
"dependencies": {
"@shopify/hydrogen": "^1.0.2",
"@shopify/hydrogen": "^1.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
Expand Down

0 comments on commit 9e9a841

Please sign in to comment.