Skip to content

Commit

Permalink
[ci] release v1.x-2022-07 (#1916)
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] authored Aug 19, 2022
1 parent 90dfc08 commit 4babc16
Show file tree
Hide file tree
Showing 23 changed files with 95 additions and 127 deletions.
5 changes: 0 additions & 5 deletions .changeset/breezy-garlics-hunt.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/chilly-cobras-shout.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cuddly-dryers-relate.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dull-mirrors-care.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/funny-rats-sneeze.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gentle-moose-study.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/itchy-wombats-speak.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/selfish-teachers-whisper.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/slow-camels-watch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sour-ligers-bathe.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/stupid-lobsters-sip.md

This file was deleted.

40 changes: 0 additions & 40 deletions .changeset/sweet-pugs-enjoy.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tricky-peas-camp.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/twelve-lobsters-check.md

This file was deleted.

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

## 1.3.0

### Patch Changes

- Update links to Stackblitz for starter templates ([#1966](https://github.com/Shopify/hydrogen/pull/1966)) by [@blittle](https://github.com/blittle)

* Update templates to use the latest CLI and have a minimum node version ([#1911](https://github.com/Shopify/hydrogen/pull/1911)) by [@blittle](https://github.com/blittle)

## 1.2.0

## 1.1.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": "1.2.0",
"version": "1.3.0",
"main": "index.js",
"license": "MIT",
"bin": {
Expand Down
81 changes: 80 additions & 1 deletion packages/hydrogen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,84 @@
# Changelog

## 1.3.0

### Minor Changes

- Add the experimental `useFlashSession` hook. This hook reads and clears a session value. It is useful for request validation within the experimental `<Form>` component: ([#1878](https://github.com/Shopify/hydrogen/pull/1878)) by [@blittle](https://github.com/blittle)

```ts
import {Form, useFlashSession} from '@shopify/hydrogen/experimental';

export default function Login() {
const loginError = useFlashSession('loginError');

return (
<Form action="/login">
{loginError ? <div>Invalid user!</div> : null}
<input type="text" name="username" />
<input type="password" name="password" />
<button type="submit">Login</button>
</Form>
);
}

export async function api(request, {session}) {
const data = await request.formData();
const username = data.get('username');
const password = data.get('password');

const userId = await getUser(username, password);

if (!userId) {
await session.set('loginError', 'INVALID_USER');
return new Request('/login');
} else {
await session.set('userId', userId);
return new Request('/account');
}
}
```

Note, `useFlashSession` is experimental, and subject to change at any time.

### Patch Changes

- Pass root to all Vite instances to support building projects from different directories. ([#1987](https://github.com/Shopify/hydrogen/pull/1987)) by [@frandiox](https://github.com/frandiox)

* Added a new option `assetHashVersion` to the Hydrogen plugin in `vite.config.js`. This option can be used to manually change the assets file hash. ([#2000](https://github.com/Shopify/hydrogen/pull/2000)) by [@frandiox](https://github.com/frandiox)

```js
// vite.config.js
export default {
plugins: [hydrogen({assetHashVersion: 'v2'})],
};
```

- Fix accessing `Oxygen.env` in `hydrogen.config.js` file in production. ([#1977](https://github.com/Shopify/hydrogen/pull/1977)) by [@frandiox](https://github.com/frandiox)

* Add null check for `runtime.waitUntil` ([#1958](https://github.com/Shopify/hydrogen/pull/1958)) by [@ascorbic](https://github.com/ascorbic)

- `<Image/>` now sets the attribute `decoding='async'` by default, to potentially improve performance. ([#1969](https://github.com/Shopify/hydrogen/pull/1969)) by [@sanjaiyan-dev](https://github.com/sanjaiyan-dev)

* Fix stale while revalidate when custom cache value is supplied ([#1967](https://github.com/Shopify/hydrogen/pull/1967)) by [@wizardlyhel](https://github.com/wizardlyhel)

- The Typescript types for the `<Image/>` component are now available to import directly from Hydrogen. ([#1913](https://github.com/Shopify/hydrogen/pull/1913)) by [@frehner](https://github.com/frehner)

```ts
import {
type ShopifyImageProps,
type ExternalImageProps,
} from '@shopify/hydrogen';
```

* Change how the RSC plugin communicates with other plugins to support `vanilla-extract`. ([#1944](https://github.com/Shopify/hydrogen/pull/1944)) by [@frandiox](https://github.com/frandiox)

- Adds `merchandise.product.id` to cart line items query ([#1988](https://github.com/Shopify/hydrogen/pull/1988)) by [@juanpprieto](https://github.com/juanpprieto)

* Fix \_\_rsc requests to have a cache-control header ([#2010](https://github.com/Shopify/hydrogen/pull/2010)) by [@blittle](https://github.com/blittle)

- Adds `prevCart` to cart event payloads ([#1982](https://github.com/Shopify/hydrogen/pull/1982)) by [@juanpprieto](https://github.com/juanpprieto)

## 1.2.0

### Minor Changes
Expand Down Expand Up @@ -120,7 +199,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.2.0",
"version": "1.3.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.2.0';
export const LIB_VERSION = '1.3.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.2.0",
"@shopify/hydrogen": "^1.3.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.2.0",
"@shopify/hydrogen": "^1.3.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 @@ -39,7 +39,7 @@
"dependencies": {
"@headlessui/react": "^1.6.4",
"@heroicons/react": "^1.0.6",
"@shopify/hydrogen": "^1.2.0",
"@shopify/hydrogen": "^1.3.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.0"
},
"dependencies": {
"@shopify/hydrogen": "^1.2.0",
"@shopify/hydrogen": "^1.3.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
Expand Down

0 comments on commit 4babc16

Please sign in to comment.