Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/shiny-tables-pretend.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silent-baboons-love.md

This file was deleted.

36 changes: 0 additions & 36 deletions .changeset/thin-carpets-walk.md

This file was deleted.

39 changes: 39 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
# @shopify/cli-hydrogen

## 5.2.3

### Patch Changes

- Delay installing certain dependencies to speed up project initialization time. ([#1272](https://github.com/Shopify/hydrogen/pull/1272)) by [@frandiox](https://github.com/frandiox)

- (Unstable) server-side network request debug virtual route ([#1284](https://github.com/Shopify/hydrogen/pull/1284)) by [@wizardlyhel](https://github.com/wizardlyhel)

1. Update your `server.ts` so that it also passes in the `waitUntil` and `env`.

```diff
const handleRequest = createRequestHandler({
build: remixBuild,
mode: process.env.NODE_ENV,
+ getLoadContext: () => ({session, storefront, env, waitUntil}),
});
```

If you are using typescript, make sure to update `remix.env.d.ts`

```diff
declare module '@shopify/remix-oxygen' {
export interface AppLoadContext {
+ env: Env;
cart: HydrogenCart;
storefront: Storefront;
session: HydrogenSession;
+ waitUntil: ExecutionContext['waitUntil'];
}
}
```

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

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

- Updated dependencies [[`71a07374`](https://github.com/Shopify/hydrogen/commit/71a0737438d51bae79330d3251f47355e814a453)]:
- @shopify/[email protected]

## 5.2.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/oclif.manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "5.2.2",
"version": "5.2.3",
"commands": {
"hydrogen:build": {
"id": "hydrogen:build",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/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": "5.2.2",
"version": "5.2.3",
"license": "MIT",
"type": "module",
"scripts": {
Expand Down Expand Up @@ -49,7 +49,7 @@
"@remix-run/dev": "1.19.1",
"@remix-run/react": "1.19.1",
"@shopify/hydrogen-react": "^2023.7.4",
"@shopify/remix-oxygen": "^1.1.3"
"@shopify/remix-oxygen": "^1.1.4"
},
"peerDependenciesMeta": {
"@remix-run/dev": {
Expand Down
37 changes: 37 additions & 0 deletions packages/create-hydrogen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
# @shopify/create-hydrogen

## 4.2.4

### Patch Changes

- (Unstable) server-side network request debug virtual route ([#1284](https://github.com/Shopify/hydrogen/pull/1284)) by [@wizardlyhel](https://github.com/wizardlyhel)

1. Update your `server.ts` so that it also passes in the `waitUntil` and `env`.

```diff
const handleRequest = createRequestHandler({
build: remixBuild,
mode: process.env.NODE_ENV,
+ getLoadContext: () => ({session, storefront, env, waitUntil}),
});
```

If you are using typescript, make sure to update `remix.env.d.ts`

```diff
declare module '@shopify/remix-oxygen' {
export interface AppLoadContext {
+ env: Env;
cart: HydrogenCart;
storefront: Storefront;
session: HydrogenSession;
+ waitUntil: ExecutionContext['waitUntil'];
}
}
```

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

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

- Updated dependencies [[`291115da`](https://github.com/Shopify/hydrogen/commit/291115da68625c5f992b7bc6e10480d4ec54c246), [`71a07374`](https://github.com/Shopify/hydrogen/commit/71a0737438d51bae79330d3251f47355e814a453)]:
- @shopify/[email protected]

## 4.2.3

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/create-hydrogen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
"@shopify:registry": "https://registry.npmjs.org"
},
"license": "MIT",
"version": "4.2.3",
"version": "4.2.4",
"type": "module",
"scripts": {
"build": "tsup --clean",
"dev": "tsup --watch",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@shopify/cli-hydrogen": "^5.2.1"
"@shopify/cli-hydrogen": "^5.2.3"
},
"bin": "dist/create-app.js",
"files": [
Expand Down
36 changes: 36 additions & 0 deletions packages/hydrogen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# @shopify/hydrogen

## 2023.7.7

### Patch Changes

- 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)

- (Unstable) server-side network request debug virtual route ([#1284](https://github.com/Shopify/hydrogen/pull/1284)) by [@wizardlyhel](https://github.com/wizardlyhel)

1. Update your `server.ts` so that it also passes in the `waitUntil` and `env`.

```diff
const handleRequest = createRequestHandler({
build: remixBuild,
mode: process.env.NODE_ENV,
+ getLoadContext: () => ({session, storefront, env, waitUntil}),
});
```

If you are using typescript, make sure to update `remix.env.d.ts`

```diff
declare module '@shopify/remix-oxygen' {
export interface AppLoadContext {
+ env: Env;
cart: HydrogenCart;
storefront: Storefront;
session: HydrogenSession;
+ waitUntil: ExecutionContext['waitUntil'];
}
}
```

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

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

## 2023.7.6

### 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 @@ -5,7 +5,7 @@
"@shopify:registry": "https://registry.npmjs.org"
},
"type": "module",
"version": "2023.7.6",
"version": "2023.7.7",
"license": "MIT",
"main": "dist/index.cjs",
"module": "dist/production/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 = '2023.7.6';
export const LIB_VERSION = '2023.7.7';
34 changes: 34 additions & 0 deletions packages/remix-oxygen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
# @shopify/remix-oxygen

## 1.1.4

### Patch Changes

- (Unstable) server-side network request debug virtual route ([#1284](https://github.com/Shopify/hydrogen/pull/1284)) by [@wizardlyhel](https://github.com/wizardlyhel)

1. Update your `server.ts` so that it also passes in the `waitUntil` and `env`.

```diff
const handleRequest = createRequestHandler({
build: remixBuild,
mode: process.env.NODE_ENV,
+ getLoadContext: () => ({session, storefront, env, waitUntil}),
});
```

If you are using typescript, make sure to update `remix.env.d.ts`

```diff
declare module '@shopify/remix-oxygen' {
export interface AppLoadContext {
+ env: Env;
cart: HydrogenCart;
storefront: Storefront;
session: HydrogenSession;
+ waitUntil: ExecutionContext['waitUntil'];
}
}
```

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

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

## 1.1.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/remix-oxygen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"@shopify:registry": "https://registry.npmjs.org"
},
"type": "module",
"version": "1.1.3",
"version": "1.1.4",
"license": "MIT",
"main": "dist/index.cjs",
"module": "dist/production/index.js",
Expand Down
6 changes: 3 additions & 3 deletions templates/hello-world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"dependencies": {
"@remix-run/react": "1.19.1",
"@shopify/cli": "3.48.0",
"@shopify/cli-hydrogen": "^5.2.2",
"@shopify/hydrogen": "^2023.7.6",
"@shopify/remix-oxygen": "^1.1.3",
"@shopify/cli-hydrogen": "^5.2.3",
"@shopify/hydrogen": "^2023.7.7",
"@shopify/remix-oxygen": "^1.1.4",
"@total-typescript/ts-reset": "^0.4.2",
"graphql": "^16.6.0",
"graphql-tag": "^2.12.6",
Expand Down
6 changes: 3 additions & 3 deletions templates/skeleton/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"dependencies": {
"@remix-run/react": "1.19.1",
"@shopify/cli": "3.48.0",
"@shopify/cli-hydrogen": "^5.2.2",
"@shopify/hydrogen": "^2023.7.6",
"@shopify/remix-oxygen": "^1.1.3",
"@shopify/cli-hydrogen": "^5.2.3",
"@shopify/hydrogen": "^2023.7.7",
"@shopify/remix-oxygen": "^1.1.4",
"graphql": "^16.6.0",
"graphql-tag": "^2.12.6",
"isbot": "^3.6.6",
Expand Down