This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@shopify/cli-hydrogen@8.0.1
Patch Changes
Clean up messaging around unlinked storefronts when running CLI commands (#1937) by @aswamy
When you run env list, env pull, or deploy against a storefront that isn't linked, it will show a warning message instead of an error message.
If you don't have a storefront to link to on Admin, we will just ask you to create a storefront instead of displaying an option list of size 1.
If you deleted a storefront on Admin, we will try to relink your storefront when running env list, env pull, or deploy.
Add @return JSDoc tag to functions in JavaScript projects. (#2014) by @frandiox
Fix --quickstart flag to support overwritting it with other flags. Example: h2 init --quickstart --no-install-deps. (#2023) by @frandiox
Show error in h2 debug cpu command for Vite projects until we support it.
Remove deprecated --styling flag from the h2 init command.
Fix a warning when combining mock.shop and customer-account-push (#1992) by @frandiox
To improve HMR in Vite, move the useRootLoaderData function from app/root.tsx to a separate file like app/lib/root-data.ts. This change avoids circular imports: (#2014) by @frandiox
// app/lib/root-data.ts
import {useMatches} from '@remix-run/react';
import type {SerializeFrom} from '@shopify/remix-oxygen';
import type {loader} from '~/root';
/**
* Access the result of the root loader from a React component.
*/
export const useRootLoaderData = () => {
const [root] = useMatches();
return root?.data as SerializeFrom<typeof loader>;
};
Import this hook from ~/lib/root-data instead of ~/root in your components.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@shopify/cli-hydrogen@8.0.1
Patch Changes
Clean up messaging around unlinked storefronts when running CLI commands (#1937) by @aswamy
env list
,env pull
, ordeploy
against a storefront that isn't linked, it will show a warning message instead of an error message.env list
,env pull
, ordeploy
.Add
@return
JSDoc tag to functions in JavaScript projects. (#2014) by @frandioxFix
--quickstart
flag to support overwritting it with other flags. Example:h2 init --quickstart --no-install-deps
. (#2023) by @frandioxShow error in
h2 debug cpu
command for Vite projects until we support it.Remove deprecated
--styling
flag from theh2 init
command.Fix a warning when combining mock.shop and customer-account-push (#1992) by @frandiox
Updated dependencies [
7e8cf055
,a335afc1
]:@shopify/hydrogen@2024.4.1
Patch Changes
Warn when using the deprecated Seo component (#1983) by @blittle
Fix names and URLs shown for HIT/STALE items in the Subrequest Profiler. (#2021) by @frandiox
Updated dependencies [
0f5cab00
]:@shopify/hydrogen-react@2024.4.1
Patch Changes
@shopify/mini-oxygen@3.0.1
Patch Changes
Fixed compatibility with Node 21. (#2003) by @frandiox
Fix an SSR HMR issue related to hanging promises during development. (#2019) by @frandiox
skeleton@1.0.8
Patch Changes
Stop inlining the favicon in base64 to avoid issues with the Content-Security-Policy. In
vite.config.js
: (#2006) by @frandioxTo improve HMR in Vite, move the
useRootLoaderData
function fromapp/root.tsx
to a separate file likeapp/lib/root-data.ts
. This change avoids circular imports: (#2014) by @frandioxImport this hook from
~/lib/root-data
instead of~/root
in your components.Updated dependencies [
b4dfda32
,ffa57bdb
,ac4e1670
,0af624d5
,9723eaf3
,e842f68c
]: