Skip to content

Commit

Permalink
Edit and clean up changesets for April release (#1965)
Browse files Browse the repository at this point in the history
* Initial edit

* Delete changeset already added in 2024.1.6
  • Loading branch information
gfscott committed Apr 10, 2024
1 parent f4d6e5b commit 70f7f47
Show file tree
Hide file tree
Showing 27 changed files with 53 additions and 66 deletions.
2 changes: 1 addition & 1 deletion .changeset/angry-games-train.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'skeleton': patch
---

Updated internal libraries for parsing `.env` file.
Update internal libraries for parsing `.env` files.

Please update the `@shopify/cli` dependency in your app to avoid duplicated subdependencies:

Expand Down
5 changes: 1 addition & 4 deletions .changeset/big-camels-fold.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,4 @@
'@shopify/cli-hydrogen': minor
---

Hydrogen CLI's `env push` command is released

- Hydrogen CLI's `env push` command is the counterpart for the `env pull` command. It is used to push environment variables found in the `.env` file to Admin. Refer to [docs](https://shopify.dev/docs/custom-storefronts/hydrogen/cli) for full usage details.
- Updated internal libraries for parsing `.env` file.
Move the Hydrogen CLI's `env push` command to stable.
2 changes: 1 addition & 1 deletion .changeset/big-impalas-brush.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@shopify/hydrogen': patch
---

Change StorefrontRedirect to base case insensitive in querying redirect URLs from the Storefront API.
Make `StorefrontRedirect` case insensitive when querying redirect URLs from the Storefront API.
5 changes: 0 additions & 5 deletions .changeset/clean-rocks-camp.md

This file was deleted.

3 changes: 2 additions & 1 deletion .changeset/healthy-owls-lay.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
'@shopify/mini-oxygen': major
---

The main runtime exported from `@shopify/mini-oxygen` is now based on workerd.
The default runtime exported from `@shopify/mini-oxygen` is now based on workerd.

The previous Node.js sandbox runtime has been moved to the `@shopify/mini-oxygen/node` export.

Example usage:
Expand Down
39 changes: 20 additions & 19 deletions .changeset/itchy-weeks-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,27 @@
'@shopify/hydrogen': patch
---

Allow calling the cart `.get()` method right after creating a new cart with
Fix a bug where `cart` could be null, even though a new cart was created by adding a line item.

This allows calling the cart `.get()` method right after creating a new cart with
one of the mutation methods: `create()`, `addLines()`, `updateDiscountCodes()`, `updateBuyerIdentity()`, `updateNote()`, `updateAttributes()`, `setMetafields()`.

```ts
import {
createCartHandler,
cartGetIdDefault,
cartSetIdDefault,
} from '@shopify/hydrogen';
```ts
import {
createCartHandler,
cartGetIdDefault,
cartSetIdDefault,
} from '@shopify/hydrogen';

const cartHandler = createCartHandler({
storefront,
getCartId: cartGetIdDefault(request.headers),
setCartId: cartSetIdDefault(),
cartQueryFragment: CART_QUERY_FRAGMENT,
cartMutateFragment: CART_MUTATE_FRAGMENT,
});
const cartHandler = createCartHandler({
storefront,
getCartId: cartGetIdDefault(request.headers),
setCartId: cartSetIdDefault(),
cartQueryFragment: CART_QUERY_FRAGMENT,
cartMutateFragment: CART_MUTATE_FRAGMENT,
});

await cartHandler.addLines([{merchandiseId: '...'}]);
// This change fixes a bug where `cart` would be null, even though a
// new cart was created when adding a line item
const cart = await cartHandler.get();
```
await cartHandler.addLines([{merchandiseId: '...'}]);
// .get() now returns the cart as expected
const cart = await cartHandler.get();
```
2 changes: 1 addition & 1 deletion .changeset/little-paws-fry.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'skeleton': patch
---

In Vite projects, the way that plugins are imported and the options passed to Remix have changed:
Update Vite plugin imports, and how their options are passed to Remix:

```diff
-import {hydrogen, oxygen} from '@shopify/cli-hydrogen/experimental-vite';
Expand Down
2 changes: 1 addition & 1 deletion .changeset/long-boxes-punch.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@shopify/hydrogen': patch
---

Add `postLogoutRedirectUri` option to customer account client's logout method
Add `postLogoutRedirectUri` option to the Customer Account API client's logout method.
9 changes: 4 additions & 5 deletions .changeset/lovely-donkeys-destroy.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
'@shopify/cli-hydrogen': minor
---

`--env` flag has deprecated the `--env-branch` flag for several Hydrogen CLI commands
Deprecate the `--env-branch` flag, in favor of `--env`.

- `--env` will allow the user to provide an environment's handle when performing Hydrogen CLI commands
- Run `env list` to display all the environments and its associated handles
- All Hydrogen CLI commands that contain the `--env-branch` flag will also contain the `--env` flag
- `--env-branch` flag will be deprecated on all Hydrogen CLI commands
- `--env` accepts the environment's handle, instead of the environment's associated branch name
- Run `env list` to display all environments and their handles
- Any CLI commands that accepted the `--env-branch` flag now accept the `--env` flag.
2 changes: 1 addition & 1 deletion .changeset/mean-pots-carry.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'skeleton': patch
---

If you deploy to Oxygen, please add `@shopify/mini-oxygen` as a dev dependency in your project for local development:
Add `@shopify/mini-oxygen` as a dev dependency for local development:

```diff
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion .changeset/polite-seahorses-fail.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@shopify/hydrogen': patch
---

A new Vite plugin is exported from `@shopify/hydrogen/vite`. It provides DX improvements for Vite users, such as adding `/subrequest-profiler` and `/graphiql`.
Export new Hydrogen Vite plugin from `@shopify/hydrogen/vite`.
2 changes: 1 addition & 1 deletion .changeset/pretty-gifts-rest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
'@shopify/create-hydrogen': patch
---

Add `--quickstart` flag option to init/create command
Add `--quickstart` flag option to init/create command.
6 changes: 4 additions & 2 deletions .changeset/red-geese-work.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
'@shopify/hydrogen': patch
'@shopify/hydrogen': minor
---

Change `storefrontRedirect` to ignore query parameters when matching redirects. For example, a redirect in the admin from `/snowboards` to `/collections/snowboards` will now match on the URL `/snowboards?utm_campaign=buffer` and redirect the user to `/collections/snowboards?utm_campaign=buffer`. This is a breaking change. If you want to retain the legacy functionality that is query parameter sensitive, pass `matchQueryParams` to `storefrontRedirect()`:
Change `storefrontRedirect` to ignore query parameters when matching redirects. For example, a redirect in the admin from `/snowboards` to `/collections/snowboards` will now match on the URL `/snowboards?utm_campaign=buffer` and redirect the user to `/collections/snowboards?utm_campaign=buffer`.

This is a breaking change. If you want to retain the legacy functionality that is query parameter sensitive, pass `matchQueryParams` to `storefrontRedirect()`:

```ts
storefrontRedirect({
Expand Down
2 changes: 1 addition & 1 deletion .changeset/red-turkeys-sing.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
'@shopify/cli-hydrogen': minor
---

✨ Added `npx shopify hydrogen customer-account push` command to CLI that takes the url in `--dev-origin` and push the config to Shopify Admin
Add the `customer-account push` command to the Hydrogen CLI. This allows you to push the current `--dev-origin` URL to the Shopify admin to enable secure connection to the Customer Account API for local development.
6 changes: 0 additions & 6 deletions .changeset/seven-chicken-juggle.md

This file was deleted.

2 changes: 1 addition & 1 deletion .changeset/short-flowers-enjoy.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@shopify/cli-hydrogen': patch
---

Add a newline after the `h2` alias created ZSH/Bash profiles.
Add a newline after the `h2` alias created in ZSH/Bash profiles.
5 changes: 0 additions & 5 deletions .changeset/shy-houses-rest.md

This file was deleted.

2 changes: 1 addition & 1 deletion .changeset/shy-seas-own.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@shopify/cli-hydrogen': minor
---

The `@shopify/cli-hydrogen/experimental-vite` import path has been removed. Instead, use `@shopify/hydrogen/vite` and `@shopify/mini-oxygen/vite` to import the Vite plugins.
Remove the `@shopify/cli-hydrogen/experimental-vite` import path in favor of `@shopify/hydrogen/vite` and `@shopify/mini-oxygen/vite`.
2 changes: 1 addition & 1 deletion .changeset/smooth-cooks-attend.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@shopify/hydrogen': patch
---

Fix default content secuirty policy directive for `frameAncestors`. Resolves [#1783](https://github.com/Shopify/hydrogen/issues/1793)
Fix default content security policy directive for `frameAncestors`.
2 changes: 1 addition & 1 deletion .changeset/strong-beds-call.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@shopify/mini-oxygen': minor
---

A new Vite plugin is exported from `@shopify/mini-oxygen/vite`. It integrates Vite with MiniOxygen by running the application code within a worker.
Export new Vite plugin from `@shopify/mini-oxygen/vite`. It integrates Vite with MiniOxygen by running the application code within a worker.
2 changes: 1 addition & 1 deletion .changeset/stupid-gifts-drum.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@shopify/hydrogen': patch
---

Allow ui_locale to be pass to customer account login
Allow `ui_locale` to be passed to the customer account login page.
4 changes: 2 additions & 2 deletions .changeset/tiny-sheep-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
'@shopify/hydrogen': patch
---

Deprecate the `<Seo />` component in favor of directly using Remix meta route exports. Add the `getSeoMeta` to make migration easier:
Deprecate the `<Seo />` component in favor of directly using Remix [meta route exports](https://remix.run/docs/en/main/route/meta). Add the `getSeoMeta` to make migration easier.

Migration steps:
### Migration steps:

**1. Remove the `<Seo />` component from `root.jsx`:**

Expand Down
2 changes: 1 addition & 1 deletion .changeset/twelve-apricots-study.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@shopify/cli-hydrogen': patch
---

Handle duplicate storefront names when running `link` command
Handle duplicate storefront names when running `link` command.
2 changes: 1 addition & 1 deletion .changeset/twelve-paws-prove.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@shopify/cli-hydrogen': patch
---

List the uncommitted files that the deploy command errors on
List uncommitted files in the `deploy` command's "uncommitted changes" error message.
1 change: 1 addition & 0 deletions .changeset/twenty-taxis-taste.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
---

Fix types returned by the `session` object.

In `remix.env.d.ts` or `env.d.ts`, add the following types:

```diff
Expand Down
2 changes: 1 addition & 1 deletion .changeset/wise-rice-hope.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'skeleton': patch
---

Codegen dependencies must be now listed directly in `package.json`:
Codegen dependencies must be now listed explicitly in `package.json`:

```diff
{
Expand Down
4 changes: 3 additions & 1 deletion .changeset/witty-rockets-guess.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
'@shopify/cli-hydrogen': patch
---

Add `--verbose` flag to `h2 dev` and `h2 preview` commands to enable verbose logging. Only CLI logs become verbose by default. If you also want to see verbose logs from Vite as well, use `DEBUG=* h2 dev` instead.
Add `--verbose` flag to `h2 dev` and `h2 preview` commands to enable verbose logging.

Only CLI logs become verbose by default. If you also want to see verbose logs from Vite as well, use `DEBUG=* h2 dev` instead.

0 comments on commit 70f7f47

Please sign in to comment.