Skip to content

Commit 67526a6

Browse files
[ci] release 2023-07 (#1307)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 71a0737 commit 67526a6

File tree

15 files changed

+160
-60
lines changed

15 files changed

+160
-60
lines changed

.changeset/shiny-tables-pretend.md

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

.changeset/silent-baboons-love.md

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

.changeset/thin-carpets-walk.md

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

packages/cli/CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,44 @@
11
# @shopify/cli-hydrogen
22

3+
## 5.2.3
4+
5+
### Patch Changes
6+
7+
- Delay installing certain dependencies to speed up project initialization time. ([#1272](https://github.com/Shopify/hydrogen/pull/1272)) by [@frandiox](https://github.com/frandiox)
8+
9+
- (Unstable) server-side network request debug virtual route ([#1284](https://github.com/Shopify/hydrogen/pull/1284)) by [@wizardlyhel](https://github.com/wizardlyhel)
10+
11+
1. Update your `server.ts` so that it also passes in the `waitUntil` and `env`.
12+
13+
```diff
14+
const handleRequest = createRequestHandler({
15+
build: remixBuild,
16+
mode: process.env.NODE_ENV,
17+
+ getLoadContext: () => ({session, storefront, env, waitUntil}),
18+
});
19+
```
20+
21+
If you are using typescript, make sure to update `remix.env.d.ts`
22+
23+
```diff
24+
declare module '@shopify/remix-oxygen' {
25+
export interface AppLoadContext {
26+
+ env: Env;
27+
cart: HydrogenCart;
28+
storefront: Storefront;
29+
session: HydrogenSession;
30+
+ waitUntil: ExecutionContext['waitUntil'];
31+
}
32+
}
33+
```
34+
35+
2. Run `npm run dev` and you should see terminal log information about a new virtual route that you can view server-side network requests at http://localhost:3000/debug-network
36+
37+
3. Open http://localhost:3000/debug-network in a tab and your app another tab. When you navigate around your app, you should see server network requests being logged in the debug-network tab
38+
39+
- Updated dependencies [[`71a07374`](https://github.com/Shopify/hydrogen/commit/71a0737438d51bae79330d3251f47355e814a453)]:
40+
- @shopify/[email protected]
41+
342
## 5.2.2
443

544
### Patch Changes

packages/cli/oclif.manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "5.2.2",
2+
"version": "5.2.3",
33
"commands": {
44
"hydrogen:build": {
55
"id": "hydrogen:build",

packages/cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"access": "public",
55
"@shopify:registry": "https://registry.npmjs.org"
66
},
7-
"version": "5.2.2",
7+
"version": "5.2.3",
88
"license": "MIT",
99
"type": "module",
1010
"scripts": {
@@ -49,7 +49,7 @@
4949
"@remix-run/dev": "1.19.1",
5050
"@remix-run/react": "1.19.1",
5151
"@shopify/hydrogen-react": "^2023.7.4",
52-
"@shopify/remix-oxygen": "^1.1.3"
52+
"@shopify/remix-oxygen": "^1.1.4"
5353
},
5454
"peerDependenciesMeta": {
5555
"@remix-run/dev": {

packages/create-hydrogen/CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
# @shopify/create-hydrogen
22

3+
## 4.2.4
4+
5+
### Patch Changes
6+
7+
- (Unstable) server-side network request debug virtual route ([#1284](https://github.com/Shopify/hydrogen/pull/1284)) by [@wizardlyhel](https://github.com/wizardlyhel)
8+
9+
1. Update your `server.ts` so that it also passes in the `waitUntil` and `env`.
10+
11+
```diff
12+
const handleRequest = createRequestHandler({
13+
build: remixBuild,
14+
mode: process.env.NODE_ENV,
15+
+ getLoadContext: () => ({session, storefront, env, waitUntil}),
16+
});
17+
```
18+
19+
If you are using typescript, make sure to update `remix.env.d.ts`
20+
21+
```diff
22+
declare module '@shopify/remix-oxygen' {
23+
export interface AppLoadContext {
24+
+ env: Env;
25+
cart: HydrogenCart;
26+
storefront: Storefront;
27+
session: HydrogenSession;
28+
+ waitUntil: ExecutionContext['waitUntil'];
29+
}
30+
}
31+
```
32+
33+
2. Run `npm run dev` and you should see terminal log information about a new virtual route that you can view server-side network requests at http://localhost:3000/debug-network
34+
35+
3. Open http://localhost:3000/debug-network in a tab and your app another tab. When you navigate around your app, you should see server network requests being logged in the debug-network tab
36+
37+
- Updated dependencies [[`291115da`](https://github.com/Shopify/hydrogen/commit/291115da68625c5f992b7bc6e10480d4ec54c246), [`71a07374`](https://github.com/Shopify/hydrogen/commit/71a0737438d51bae79330d3251f47355e814a453)]:
38+
- @shopify/[email protected]
39+
340
## 4.2.3
441

542
### Patch Changes

packages/create-hydrogen/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
"@shopify:registry": "https://registry.npmjs.org"
66
},
77
"license": "MIT",
8-
"version": "4.2.3",
8+
"version": "4.2.4",
99
"type": "module",
1010
"scripts": {
1111
"build": "tsup --clean",
1212
"dev": "tsup --watch",
1313
"typecheck": "tsc --noEmit"
1414
},
1515
"dependencies": {
16-
"@shopify/cli-hydrogen": "^5.2.1"
16+
"@shopify/cli-hydrogen": "^5.2.3"
1717
},
1818
"bin": "dist/create-app.js",
1919
"files": [

packages/hydrogen/CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
11
# @shopify/hydrogen
22

3+
## 2023.7.7
4+
5+
### Patch Changes
6+
7+
- Supress the hydration warning in the new `<Script>` component when `nonce` values differ between the server and client, which is expected. ([#1312](https://github.com/Shopify/hydrogen/pull/1312)) by [@frandiox](https://github.com/frandiox)
8+
9+
- (Unstable) server-side network request debug virtual route ([#1284](https://github.com/Shopify/hydrogen/pull/1284)) by [@wizardlyhel](https://github.com/wizardlyhel)
10+
11+
1. Update your `server.ts` so that it also passes in the `waitUntil` and `env`.
12+
13+
```diff
14+
const handleRequest = createRequestHandler({
15+
build: remixBuild,
16+
mode: process.env.NODE_ENV,
17+
+ getLoadContext: () => ({session, storefront, env, waitUntil}),
18+
});
19+
```
20+
21+
If you are using typescript, make sure to update `remix.env.d.ts`
22+
23+
```diff
24+
declare module '@shopify/remix-oxygen' {
25+
export interface AppLoadContext {
26+
+ env: Env;
27+
cart: HydrogenCart;
28+
storefront: Storefront;
29+
session: HydrogenSession;
30+
+ waitUntil: ExecutionContext['waitUntil'];
31+
}
32+
}
33+
```
34+
35+
2. Run `npm run dev` and you should see terminal log information about a new virtual route that you can view server-side network requests at http://localhost:3000/debug-network
36+
37+
3. Open http://localhost:3000/debug-network in a tab and your app another tab. When you navigate around your app, you should see server network requests being logged in the debug-network tab
38+
339
## 2023.7.6
440

541
### Patch Changes

packages/hydrogen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"@shopify:registry": "https://registry.npmjs.org"
66
},
77
"type": "module",
8-
"version": "2023.7.6",
8+
"version": "2023.7.7",
99
"license": "MIT",
1010
"main": "dist/index.cjs",
1111
"module": "dist/production/index.js",

0 commit comments

Comments
 (0)