[ci] release v1.x-2022-07 #1274
Merged
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 v1.x-2022-07, this PR will be updated.
Releases
@shopify/[email protected]
Minor Changes
#1257
5cd7a672Thanks @frandiox! - Support for CSS Modules has been improved. It now behaves closer to the default behavior in Vite where styles are collected automatically.Remove the
StyleTagcomponent that was needed before:export default function MyComponent() { return ( <div> - <myStyles.StyleTag /> <h1>Title</h1> </div> ); }Optionally, update your wildcard imports to default or named imports:
#1271
9d0359b8Thanks @frehner! - ##<Image/>The
<Image/>component and related utility functions were reworked and the following changes apply:useImageUrlis no longer available; useshopifyImageLoaderinstead, which is available to run both server- and client-side.<Image/>is improved; props will be validated better, andloaderandloaderOptionswill be better typedsrcprop,widthandheightare now requireddataprop,data.widthanddata.heightorwidthandheightprops are requiredsrcanddataprops are mutually exclusiveloaderprop now receives a singular param as an objectoptionshas been merged withloaderOptions. When using thedataprop,loaderOptionswill be the options for Shopify CDN images. When using thesrcprop,loaderOptionswill be whatever you define them to be.ImageSizeOptionsis now namedShopifyLoaderOptionsImageLoaderOptionsis now namedShopifyLoaderParamspriorityprop was removed; use the HTML-standardloadingprop instead<Video/><Video/>component'soptionsprops was renamed toimagePreviewOptionsto add clarity as to what the options were for.imagePreviewOptionsmatches the (newly updated) shape of<Image/>'sloaderOptions#1290
437b1616Thanks @jplhomer! - Allow cart queries to be customized by adding a newcartFragmentprop toCartProvider. Learn more.Patch Changes
#1247
ee64873eThanks @frandiox! - Improve the way client components are discovered in order to reduce bundle sizes.#1276
c6ce6a43Thanks @frandiox! - Fix page loading in Firefox during development (known bug).#1286
53270249Thanks @jplhomer! - Fix some sourcemap warnings in server console[email protected]