Skip to content

Commit

Permalink
[ci] release 2024-07
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 12, 2024
1 parent 4751f8e commit cc24b10
Show file tree
Hide file tree
Showing 21 changed files with 111 additions and 112 deletions.
5 changes: 0 additions & 5 deletions .changeset/bright-wombats-count.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fifty-melons-film.md

This file was deleted.

65 changes: 0 additions & 65 deletions .changeset/red-lamps-switch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/six-pumas-allow.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tall-elephants-drum.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wet-apricots-fix.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/young-gifts-learn.md

This file was deleted.

4 changes: 2 additions & 2 deletions examples/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"@remix-run/react": "^2.9.2",
"@remix-run/server-runtime": "^2.9.2",
"@shopify/cli": "3.61.2",
"@shopify/cli-hydrogen": "^8.1.0",
"@shopify/hydrogen": "2024.4.3",
"@shopify/cli-hydrogen": "^8.1.1",
"@shopify/hydrogen": "2024.4.4",
"compression": "^1.7.4",
"cross-env": "^7.0.3",
"express": "^4.19.2",
Expand Down
4 changes: 2 additions & 2 deletions examples/multipass/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"dependencies": {
"@remix-run/react": "^2.9.2",
"@shopify/cli": "3.61.2",
"@shopify/cli-hydrogen": "^8.1.0",
"@shopify/hydrogen": "2024.4.3",
"@shopify/cli-hydrogen": "^8.1.1",
"@shopify/hydrogen": "2024.4.4",
"@shopify/remix-oxygen": "^2.0.4",
"crypto-js": "^4.2.0",
"graphql": "^16.6.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/partytown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"@builder.io/partytown": "^0.8.1",
"@remix-run/react": "^2.9.2",
"@shopify/cli": "3.61.2",
"@shopify/cli-hydrogen": "^8.1.0",
"@shopify/hydrogen": "2024.4.3",
"@shopify/cli-hydrogen": "^8.1.1",
"@shopify/hydrogen": "2024.4.4",
"@shopify/remix-oxygen": "^2.0.4",
"graphql": "^16.6.0",
"graphql-tag": "^2.12.6",
Expand Down
4 changes: 2 additions & 2 deletions examples/subscriptions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"dependencies": {
"@remix-run/react": "^2.9.2",
"@shopify/cli": "3.61.2",
"@shopify/cli-hydrogen": "^8.1.0",
"@shopify/hydrogen": "2024.4.3",
"@shopify/cli-hydrogen": "^8.1.1",
"@shopify/hydrogen": "2024.4.4",
"@shopify/remix-oxygen": "^2.0.4",
"graphql": "^16.6.0",
"graphql-tag": "^2.12.6",
Expand Down
12 changes: 12 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @shopify/cli-hydrogen

## 8.1.1

### Patch Changes

- Fix CLI upgrade notification when running from a globla process. ([#2184](https://github.com/Shopify/hydrogen/pull/2184)) by [@frandiox](https://github.com/frandiox)

- skeleton template was updated to do session commit in server call instead of routes ([#2137](https://github.com/Shopify/hydrogen/pull/2137)) by [@michenly](https://github.com/michenly)

- Remove `PUBLIC_STORE_DOMAIN` environment variable from `.env` when creating new projects with mock.shop. ([#2221](https://github.com/Shopify/hydrogen/pull/2221)) by [@frandiox](https://github.com/frandiox)

- Added an `--auth-bypass-token-duration` flag to the `deploy` command to allow for specified token duration between 1 to 12 hours. ([#2182](https://github.com/Shopify/hydrogen/pull/2182)) by [@NelsonLee-Code](https://github.com/NelsonLee-Code)

## 8.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/oclif.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1680,5 +1680,5 @@
]
}
},
"version": "8.1.0"
"version": "8.1.1"
}
2 changes: 1 addition & 1 deletion 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": "8.1.0",
"version": "8.1.1",
"license": "MIT",
"type": "module",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions packages/create-hydrogen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @shopify/create-hydrogen

## 5.0.0

### Major Changes

- The code is now bundled to enhance installation speed. ([#2184](https://github.com/Shopify/hydrogen/pull/2184)) by [@frandiox](https://github.com/frandiox)

## 4.3.10

### 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,7 +5,7 @@
"@shopify:registry": "https://registry.npmjs.org"
},
"license": "MIT",
"version": "4.3.10",
"version": "5.0.0",
"type": "module",
"scripts": {
"build": "tsup --clean",
Expand All @@ -17,7 +17,7 @@
"@ast-grep/napi": "0.11.0"
},
"devDependencies": {
"@shopify/cli-hydrogen": "^8.1.0",
"@shopify/cli-hydrogen": "^8.1.1",
"tempy": "3.0.0"
},
"bin": "dist/create-app.js",
Expand Down
6 changes: 6 additions & 0 deletions packages/hydrogen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @shopify/hydrogen

## 2024.4.4

### Patch Changes

- `customerAccount` no longer commit session automatically in any situation. ([#2137](https://github.com/Shopify/hydrogen/pull/2137)) by [@michenly](https://github.com/michenly)

## 2024.4.3

### 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": "2024.4.3",
"version": "2024.4.4",
"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 = '2024.4.3';
export const LIB_VERSION = '2024.4.4';
70 changes: 70 additions & 0 deletions templates/skeleton/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,75 @@
# skeleton

## 2024.4.6

### Patch Changes

- Remove manual setting of session in headers and recommend setting it in server after response is created. ([#2137](https://github.com/Shopify/hydrogen/pull/2137)) by [@michenly](https://github.com/michenly)

Step 1: Add `isPending` implementation in session

```diff
// in app/lib/session.ts
export class AppSession implements HydrogenSession {
+ public isPending = false;

get unset() {
+ this.isPending = true;
return this.#session.unset;
}

get set() {
+ this.isPending = true;
return this.#session.set;
}

commit() {
+ this.isPending = false;
return this.#sessionStorage.commitSession(this.#session);
}
}
```

Step 2: update response header if `session.isPending` is true

```diff
// in server.ts
export default {
async fetch(request: Request): Promise<Response> {
try {
const response = await handleRequest(request);

+ if (session.isPending) {
+ response.headers.set('Set-Cookie', await session.commit());
+ }

return response;
} catch (error) {
...
}
},
};
```

Step 3: remove setting cookie with session.commit() in routes

```diff
// in route files
export async function loader({context}: LoaderFunctionArgs) {
return json({},
- {
- headers: {
- 'Set-Cookie': await context.session.commit(),
- },
},
);
}
```

- Updated dependencies [[`4337200c`](https://github.com/Shopify/hydrogen/commit/4337200c7908d56c039171c283a4d92c31a8b7b6), [`10a419bf`](https://github.com/Shopify/hydrogen/commit/10a419bf1db79cdfd8c41c0223ce695959f60da9), [`4337200c`](https://github.com/Shopify/hydrogen/commit/4337200c7908d56c039171c283a4d92c31a8b7b6), [`9eb60d73`](https://github.com/Shopify/hydrogen/commit/9eb60d73e552c3d22b9325ecbcd5878810893ad3), [`83cb96f4`](https://github.com/Shopify/hydrogen/commit/83cb96f42078bf79b20a153d8a8461f75d573ab1)]:
- @shopify/[email protected]
- @shopify/[email protected]

## 2024.4.5

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions templates/skeleton/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "skeleton",
"private": true,
"sideEffects": false,
"version": "2024.4.5",
"version": "2024.4.6",
"type": "module",
"scripts": {
"build": "shopify hydrogen build --codegen",
Expand All @@ -17,8 +17,8 @@
"@remix-run/react": "^2.9.2",
"@remix-run/server-runtime": "^2.9.2",
"@shopify/cli": "3.61.2",
"@shopify/cli-hydrogen": "^8.1.0",
"@shopify/hydrogen": "2024.4.3",
"@shopify/cli-hydrogen": "^8.1.1",
"@shopify/hydrogen": "2024.4.4",
"@shopify/remix-oxygen": "^2.0.4",
"graphql": "^16.6.0",
"graphql-tag": "^2.12.6",
Expand Down

0 comments on commit cc24b10

Please sign in to comment.