Skip to content

Commit

Permalink
[ci] release v1.x-2022-07
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 14, 2022
1 parent 5b2f3b0 commit 91458bc
Show file tree
Hide file tree
Showing 26 changed files with 112 additions and 147 deletions.
5 changes: 0 additions & 5 deletions .changeset/brown-boxes-tell.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/eight-eagles-clap.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/funny-horses-look.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/funny-jokes-dance.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fuzzy-pianos-give.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/giant-carrots-build.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/loud-timers-pay.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/my-magic-unicorn.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/nasty-rules-knock.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/proud-trainers-turn.md

This file was deleted.

30 changes: 0 additions & 30 deletions .changeset/purple-elephants-battle.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rude-scissors-report.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/short-buttons-reply.md

This file was deleted.

16 changes: 0 additions & 16 deletions .changeset/strong-parrots-sneeze.md

This file was deleted.

28 changes: 0 additions & 28 deletions .changeset/weak-poets-tease.md

This file was deleted.

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

## 0.25.0

### Patch Changes

- [#1475](https://github.com/Shopify/hydrogen/pull/1475) [`689aa68f`](https://github.com/Shopify/hydrogen/commit/689aa68ff1b4600e75121e0d88e100f4394c9107) Thanks [@cartogram](https://github.com/cartogram)! - Deprecate create-hydrogen-app in favor of @shopify/create-hydrogen

## 0.24.0

## 0.23.0
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": "0.24.0",
"version": "0.25.0",
"main": "index.js",
"license": "MIT",
"bin": {
Expand Down
97 changes: 97 additions & 0 deletions packages/hydrogen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,102 @@
# Changelog

## 0.25.0

### Minor Changes

- [#1506](https://github.com/Shopify/hydrogen/pull/1506) [`58d6ef55`](https://github.com/Shopify/hydrogen/commit/58d6ef55be2929c9a1680a6a372bb2e5fdfb7ee6) Thanks [@wizardlyhel](https://github.com/wizardlyhel)! - Hydrogen now supports full-page caching out of the box. Previously, Hydrogen relied on the network edge to provide full-page caching for dynamic responses (HTML).

* [#1523](https://github.com/Shopify/hydrogen/pull/1523) [`4ef2e5b9`](https://github.com/Shopify/hydrogen/commit/4ef2e5b93cd537a213334211113c224194d9dd68) Thanks [@blittle](https://github.com/blittle)! - We've simplified the built-in Hydrogen caching strategies. Instead of `CacheSeconds`, `CacheMinutes`, `CacheHours`, `CacheDays`, `CacheMonths`, and `NoStore`, there is no simply `CacheLong`, `CacheShort`, and `CacheNone`. Please remember that you can [build your own caching strategies](https://shopify.dev/custom-storefronts/hydrogen/framework/cache#build-your-own-caching-strategies).

- [#1513](https://github.com/Shopify/hydrogen/pull/1513) [`8d67b559`](https://github.com/Shopify/hydrogen/commit/8d67b559e8d59d02ca353ec43fb5b2b3ff2f5961) Thanks [@frandiox](https://github.com/frandiox)! - **Breaking change:** We are starting to use [`exports` property in `package.json`](https://nodejs.org/api/packages.html#package-entry-points) to list all the entry points in this package.

This might incur breaking changes in some rare cases when importing private properties from Hydrogen `dist` files. Notice that we **discourage** doing so for anything that is not publicly documented but, if your app was relying on some private properties, then this might help:

```diff
-import {xyz} from '@shopify/hydrogen/dist/esnext/<internal-path>';
+import {xyz} from '@shopify/hydrogen/<internal-path>';
```

Aside from that, it is recommended that TypeScript projects update the `tsconfig.json` file to use `compilerOptions.moduleResolution: "node16"` to make sure Hydrogen types are loaded in your editor.
For JavaScript projects, create or edit `<root>/jsconfig.json` file with the following information to improve typings:

```json
{
"compilerOptions": {
"target": "es2020",
"module": "esnext",
"moduleResolution": "node16",
"lib": ["dom", "dom.iterable", "scripthost", "es2020"],
"jsx": "react",
"types": ["vite/client"]
},
"exclude": ["node_modules", "dist"],
"include": ["**/*.js", "**/*.jsx"]
}
```

* [#1517](https://github.com/Shopify/hydrogen/pull/1517) [`68b8185e`](https://github.com/Shopify/hydrogen/commit/68b8185e74805a6453e246f01ce69a38988078ef) Thanks [@frandiox](https://github.com/frandiox)! - **Breaking change:** The utilities used in `hydrogen.config.js` file are now exported from `@shopiy/hydrogen/config` instead of `@shopify/hydrogen`:

```diff
-import {defineConfig} from '@shopify/hydrogen/config';
import {
+ defineConfig,
CookieSessionStorage,
PerformanceMetricsServerAnalyticsConnector,
ShopifyServerAnalyticsConnector,
-} from '@shopify/hydrogen';
+} from '@shopify/hydrogen/config'

export default defineConfig({
shopify: {/* ... */},
session: CookieSessionStorage('__session', {
path: '/',
/* ... */
}),
serverAnalyticsConnectors: [
PerformanceMetricsServerAnalyticsConnector,
ShopifyServerAnalyticsConnector,
],
});
```

### Patch Changes

- [#1494](https://github.com/Shopify/hydrogen/pull/1494) [`3b549439`](https://github.com/Shopify/hydrogen/commit/3b549439bae1ec43ae9171744c576c53d8e8f6f1) Thanks [@jplhomer](https://github.com/jplhomer)! - Update `flattenConnection` to accept `nodes` and `edges` payloads

* [#1562](https://github.com/Shopify/hydrogen/pull/1562) [`d38f6413`](https://github.com/Shopify/hydrogen/commit/d38f6413361d1ecb49c52d8389547d2b064081f7) Thanks [@wizardlyhel](https://github.com/wizardlyhel)! - Add storefront id to useShopQuery calls when available

- [#1504](https://github.com/Shopify/hydrogen/pull/1504) [`cc453242`](https://github.com/Shopify/hydrogen/commit/cc4532426509fd216f1bc036d5a095a18812b0cb) Thanks [@jplhomer](https://github.com/jplhomer)! - Fix read-only request.status in worker environments.

* [#1548](https://github.com/Shopify/hydrogen/pull/1548) [`923cb140`](https://github.com/Shopify/hydrogen/commit/923cb140b44fe989388f8754a8ca88bbfc68ab71) Thanks [@cartogram](https://github.com/cartogram)! - Add new devTools interface for performance, settings and graphQL tracking

- [#1375](https://github.com/Shopify/hydrogen/pull/1375) [`217b5f23`](https://github.com/Shopify/hydrogen/commit/217b5f23613da794bb6879ab0c897b66ef6204cf) Thanks [@blittle](https://github.com/blittle)! - Add a built-in healthcheck route available at `/__health`. It responds with a 200 and no body. Also suppresses server logs for built-in routes like healthcheck and analytics.

* [#1541](https://github.com/Shopify/hydrogen/pull/1541) [`4fde81f9`](https://github.com/Shopify/hydrogen/commit/4fde81f9d9ee739a6fbe5a8a903d3e6901144bf0) Thanks [@frandiox](https://github.com/frandiox)! - Fix support for latest React@experimental version.

- [#1497](https://github.com/Shopify/hydrogen/pull/1497) [`3364225f`](https://github.com/Shopify/hydrogen/commit/3364225ff62d283893643ea28c0135ff22af1dff) Thanks [@blittle](https://github.com/blittle)! - Improve waterfall detection

1. Show a summary in dev mode with instructions on getting details
2. Only show the waterfall warning the second time the page is loaded
3. Don't show the waterfall warning on preloaded queries

* [#1519](https://github.com/Shopify/hydrogen/pull/1519) [`d54b1072`](https://github.com/Shopify/hydrogen/commit/d54b10725b635f4531e94b9391cfd56f31a1d2e5) Thanks [@frandiox](https://github.com/frandiox)! - Improve CPU performance of the `useMoney` hook.

- [#1518](https://github.com/Shopify/hydrogen/pull/1518) [`f0b69477`](https://github.com/Shopify/hydrogen/commit/f0b6947762acdfd617c9ccd34615a36a64ab36f2) Thanks [@frandiox](https://github.com/frandiox)! - Compile code to latest supported ES version in workers and Node.

* [#1556](https://github.com/Shopify/hydrogen/pull/1556) [`06f3d174`](https://github.com/Shopify/hydrogen/commit/06f3d174ff286ece0a7175ac7c2ae37e574f73b0) Thanks [@blittle](https://github.com/blittle)! - Add support for `Request.formData()` within API Routes for Node 16-17. Example:

```ts
export async function api(request) {
const formData = await request.formData();

const username = formData.get('user');
const password = formData.get('pass');

...
}
```

## 0.24.0

### Minor 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": "0.24.0",
"version": "0.25.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 = '0.24.0';
export const LIB_VERSION = '0.25.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": "^0.24.0",
"@shopify/hydrogen": "^0.25.0",
"miniflare": "^1.3.3",
"react": "^18.1.0",
"react-dom": "^18.1.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": "^0.24.0",
"@shopify/hydrogen": "^0.25.0",
"miniflare": "^1.3.3",
"react": "^18.1.0",
"react-dom": "^18.1.0"
Expand Down
2 changes: 1 addition & 1 deletion templates/demo-store-neue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"dependencies": {
"@headlessui/react": "^1.6.4",
"@heroicons/react": "^1.0.6",
"@shopify/hydrogen": "^0.24.0",
"@shopify/hydrogen": "^0.25.0",
"clsx": "^1.1.1",
"eslint-plugin-react": "^7.29.3",
"eslint-plugin-react-hooks": "^4.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 @@ -31,7 +31,7 @@
},
"dependencies": {
"@headlessui/react": "^1.6.4",
"@shopify/hydrogen": "^0.24.0",
"@shopify/hydrogen": "^0.25.0",
"body-parser": "^1.20.0",
"compression": "^1.7.4",
"react": "^18.1.0",
Expand Down
2 changes: 1 addition & 1 deletion templates/hello-world-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"vite": "^2.9.0"
},
"dependencies": {
"@shopify/hydrogen": "^0.24.0",
"@shopify/hydrogen": "^0.25.0",
"react": "^18.1.0",
"react-dom": "^18.1.0"
}
Expand Down
2 changes: 1 addition & 1 deletion templates/hello-world-ts/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": "^0.24.0",
"@shopify/hydrogen": "^0.25.0",
"react": "^18.1.0",
"react-dom": "^18.1.0"
}
Expand Down

0 comments on commit 91458bc

Please sign in to comment.