Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 2023-01, this PR will be updated.
Releases
@shopify/cli-hydrogen@4.1.0
Minor Changes
Updated CLI prompts. It's recommended to update your version of
@shopify/cli
to3.45.0
when updating@shopify/cli-hydrogen
. (#733) by @frandioxAdded a new
shortcut
command that creates a globalh2
alias for the Hydrogen CLI: (#679) by @frandiox$> npx shopify hydrogen shortcut
After that, you can run commands using the new alias:
Patch Changes
Add support for the Remix future flags
v2_meta
,v2_errorBoundary
andv2_routeConvention
to thegenerate
command. If these flags are enabled in your project, the new generated files will follow the v2 conventions. (#756) by @frandioxUpdate virtual route to use Remix V2 route name conventions (#792) by @DavidWittness
Bump internal Remix dependencies to 1.15.0. (#728) by @wizardlyhel
Recommendations to follow:
Improve type safety in SEO data generators. (#763) by @davidhousedev
Updated dependencies [
85ae63a
,5e26503
,1f8526c
]:@shopify/create-hydrogen@4.1.0
Minor Changes
Updated CLI prompts. It's recommended to update your version of
@shopify/cli
to3.45.0
when updating@shopify/cli-hydrogen
. (#733) by @frandioxPatch Changes
e6e6c2d
,475a39c
,1f8526c
,0f4d562
,2d4c5d9
,68a6028
]:@shopify/hydrogen@2023.1.7
Patch Changes
Bump internal Remix dependencies to 1.15.0. (#728) by @wizardlyhel
Recommendations to follow:
Add an experimental
createWithCache_unstable
utility, which creates a function similar touseQuery
from Hydrogen v1. Use this utility to query third-party APIs and apply custom cache options. (#600) by @frandioxTo setup the utility, update your
server.ts
:Note: The utility is unstable and subject to change before stabalizing in the 2023.04 release.
Updated dependencies [
85ae63a
,5e26503
]:@shopify/hydrogen-react@2023.1.8
Patch Changes
Fix
parseGid()
to return a query string if it was a part of the original GID. (#723) by @wizardlyhelAdd the raw product returned from the Storefront API to also return from
useProduct()
: (#735) by @blittle@shopify/remix-oxygen@1.0.5
Patch Changes
Bump internal Remix dependencies to 1.15.0. (#728) by @wizardlyhel
Recommendations to follow:
demo-store@0.2.0
Minor Changes
Fix scroll issues on Product Detail Page for small screens (#782) by @lifeiscontent
Fix Layout title on mobile when title is long (#781) by @lifeiscontent
Patch Changes
Adopt Remix
v2_meta
future flag (#738) by @wizardlyhelv2_meta
migration stepsFor any routes that you used
meta
route export, convert it to theV2_MetaFunction
equivalent. Notice that the package name in the import statement has also changed to'@remix-run/react'
:If you are using data from loaders, pass the loader type to the
V2_MetaFunction
generic:If you are using
meta
route export inroot
, convert it to Global MetaAdopt
v2_routeConvention
future flag (#747) by @wizardlyhelv2_routeConventions
migration stepsRemix v2 route conventions are just file renames. We just need to ensure when changing file name and file location, the import paths of other files are also updated.
Go to Remix docs for more details on the V2 route convention.
Rename and move the following files in the
routes
folder to adopt to V2 route convention.Optional
If you want to continue using nested folder routes but have the
v2_routeConvention
flag turned on, you may consider using the npm package@remix-run/v1-route-convention
.If you like the flat route convention but still wants a hybrid style of nested route folder, you may consider using the npm package
remix-flat-routes
Adopt Remix
unstable_tailwind
andunstable_postcss
future flags for the Demo Store template. (#751) by @frandioxunstable_tailwind
andunstable_postcss
migration stepsMove the file
<root>/styles/app.css
to<root>/app/styles/app.css
, and remove it from.gitignore
.Add
"browserslist": ["defaults"]
to yourpackage.json
, or your preferred value from Browserslist.Replace the
build
anddev
scripts in yourpackage.json
with the following:Before
After
You can also remove dependencies like
concurrently
if you don't use them anywhere else.Forwards search params of
/discount/<code>
route to a redirect route. (#766) by @lneicelisCarts created in liquid will soon be compatible with the Storefront API and vice versa, making it possible to share carts between channels. (#721) by @scottdixon
This change updates the Demo Store to use Online Store's
cart
cookie (instead of sessions) which prevents customers from losing carts when merchants migrate to/from Hydrogen.Bump internal Remix dependencies to 1.15.0. (#728) by @wizardlyhel
Recommendations to follow:
Updated CLI prompts. It's recommended to update your version of
@shopify/cli
to3.45.0
when updating@shopify/cli-hydrogen
. (#733) by @frandioxAdopt Remix
v2_errorBoundary
future flag (#729) by @wizardlyhelv2_errorBoundary
migration stepsRemove all
CatchBoundary
route exportsHandle route level errors with
ErrorBoundary
Before:
After:
Updated dependencies [
e6e6c2d
,475a39c
,1f8526c
,0f4d562
,737f83e
,2d4c5d9
,68a6028
]: