Skip to content

Commit

Permalink
[ci] release v1.x-2022-07 (#2094)
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 Sep 16, 2022
1 parent 2132616 commit f6f3698
Show file tree
Hide file tree
Showing 23 changed files with 86 additions and 106 deletions.
6 changes: 0 additions & 6 deletions .changeset/beige-singers-play.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/blue-parents-tease.md

This file was deleted.

16 changes: 0 additions & 16 deletions .changeset/empty-rocks-lick.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/late-buses-film.md

This file was deleted.

24 changes: 0 additions & 24 deletions .changeset/mighty-apples-cross.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/moody-spoons-lay.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/neat-months-sparkle.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/nervous-singers-cheat.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/old-tips-act.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silent-cars-watch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/thirty-bees-boil.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/weak-stingrays-design.md

This file was deleted.

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

## 1.4.0

### Patch Changes

- If the demo store e2e tests are sometimes failing, update your `vite.config.js` to make sure that tests only execute on one thread: ([#2144](https://github.com/Shopify/hydrogen/pull/2144)) by [@blittle](https://github.com/blittle)

```diff
export default defineConfig({
plugins: [hydrogen()],
resolve: {
alias: [{find: /^~\/(.*)/, replacement: '/src/$1'}],
},
optimizeDeps: {
include: ['@headlessui/react', 'clsx', 'react-use', 'typographic-base'],
},
test: {
globals: true,
testTimeout: 10000,
hookTimeout: 10000,
+ maxThreads: 1,
+ minThreads: 1,
},
});
```

* Fix the demostore e2e tests to be more stable ([#2006](https://github.com/Shopify/hydrogen/pull/2006)) by [@blittle](https://github.com/blittle)

## 1.3.2

## 1.3.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.3.2",
"version": "1.4.0",
"main": "index.js",
"license": "MIT",
"bin": {
Expand Down
25 changes: 25 additions & 0 deletions packages/hydrogen-ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# @shopify/hydrogen-ui-alpha

## 2022.7.4

### Patch Changes

- - Added `<ProductProvider/>` (which is equivalent to `<ProductOptionsProvider/>` in Hydrogen) ([#2099](https://github.com/Shopify/hydrogen/pull/2099)) by [@frehner](https://github.com/frehner)

- Added `useProduct()` (which is equivalent to `useProductOptions()` in Hydrogen)

* Added ([#2089](https://github.com/Shopify/hydrogen/pull/2089)) by [@frehner](https://github.com/frehner)

- `<Metafields />` component
- `flattenConnection()` function
- `parseMetafield()` function
- `parseMetafieldValue()` function

- Fix package exports and remove the `browser` field. ([#2120](https://github.com/Shopify/hydrogen/pull/2120)) by [@frehner](https://github.com/frehner)

* - Migrated `<ModelViewer />`, and also improved the types for it as well - the types now come directly from the `@google/model-viewer` repo. ([#2115](https://github.com/Shopify/hydrogen/pull/2115)) by [@frehner](https://github.com/frehner)

- Migrated `<MediaFile />` and implemented the `mediaOptions` prop for it as outlined in https://github.com/Shopify/hydrogen/issues/686

- Add `createStorefrontClient` and related documentation, to improve the developer experience when querying the Storefront API. ([#2140](https://github.com/Shopify/hydrogen/pull/2140)) by [@frehner](https://github.com/frehner)

* Add TypeScript type helpers for correctly setting the return types from the Storefront API. ([#2122](https://github.com/Shopify/hydrogen/pull/2122)) by [@frehner](https://github.com/frehner)

## 2022.7.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/hydrogen-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopify/hydrogen-ui-alpha",
"version": "2022.7.3",
"version": "2022.7.4",
"description": "Components for modern custom Shopify storefronts",
"homepage": "https://github.com/Shopify/hydrogen#readme",
"license": "MIT",
Expand Down
27 changes: 26 additions & 1 deletion packages/hydrogen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# Changelog

## 1.4.0

### Minor Changes

- Add the `useDelay` hook for artificial delays when rendering server components. This is useful to debug timing issues or building suspense boundary fallback UI. See the [`useDelay` documentation](https://shopify.dev/api/hydrogen/hooks/global/usedelay). ([#2109](https://github.com/Shopify/hydrogen/pull/2109)) by [@blittle](https://github.com/blittle)

### Patch Changes

- We've exposed the private server-to-server Storefront API token in the Hydrogen config file. This private token is required when deploying to production, otherwise the requests to the storefront API will be rate-limited. This change will make it easier to configure Hydrogen when deploying to non-Oxygen environments. We'll also display a warning in production mode if this token is not defined. ([#1998](https://github.com/Shopify/hydrogen/pull/1998)) by [@blittle](https://github.com/blittle)

We've also added the `storefrontId` property to the config. This enables Hydrogen data to display properly in the Shopify admin analytics dashboard.

Lastly, we've updated all Oxygen environment variables to a more consistent naming convention. The previous variables are still available, but are deprecated, and will be removed in the future. You’ll see a warning in your console if you use the old environment variables. You can update your variable references using this table:

| **Old Oxygen variable** | **New Oxygen variable** |
| ----------------------------------- | ---------------------------- |
| SHOPIFY_STORE_DOMAIN | PUBLIC_STORE_DOMAIN |
| SHOPIFY_STOREFRONT_API_PUBLIC_TOKEN | PUBLIC_STOREFRONT_API_TOKEN |
| SHOPIFY_STOREFRONT_API_SECRET_TOKEN | PRIVATE_STOREFRONT_API_TOKEN |
| SHOPIFY_STOREFRONT_ID | PUBLIC_STOREFRONT_ID |

* Fixed dev-mode Hydrogen builds to properly show `PUBLIC_` prefixed environment variables ([#2142](https://github.com/Shopify/hydrogen/pull/2142)) by [@blittle](https://github.com/blittle)

- An issue with previewing hydrogen in production has been fixed. Make sure that you upgrade both `@shopify/cli` and `@shopify/cli-hydrogen` to 3.12.0. ([#2144](https://github.com/Shopify/hydrogen/pull/2144)) by [@blittle](https://github.com/blittle)

## 1.3.2

### Patch Changes
Expand Down Expand Up @@ -278,7 +303,7 @@ If your Store is based on the "Demo Store" tempate, and you are using the `test:
} from '@shopify/hydrogen/platforms';

// Platform entry handler
export default function (request) {
export default function(request) {
if (isAsset(new URL(request.url).pathname)) {
return platformAssetHandler(request);
}
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.3.2",
"version": "1.4.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.3.2';
export const LIB_VERSION = '1.4.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.3.2",
"@shopify/hydrogen": "^1.4.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.3.2",
"@shopify/hydrogen": "^1.4.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 @@ -38,7 +38,7 @@
"prettier": "@shopify/prettier-config",
"dependencies": {
"@headlessui/react": "^1.7.0",
"@shopify/hydrogen": "^1.3.2",
"@shopify/hydrogen": "^1.4.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 @@ -20,7 +20,7 @@
"vite": "^2.9.13"
},
"dependencies": {
"@shopify/hydrogen": "^1.3.2",
"@shopify/hydrogen": "^1.4.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
Expand Down

0 comments on commit f6f3698

Please sign in to comment.