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
@lemonmade/shopify@0.3.0
Minor Changes
d22add1 Thanks @lemonmade! - Added GID parsing utilities. You can now import parseGID and/ or the ShopifyGID class from @lemonmade/shopify, as well as from the /storefront and /admin entrypoints for that package. These utilities allow you to parse the global IDs (GIDs) returned by most of Shopify’s APIs. This is most useful for extracting the legacy resource ID, resource type, and additional query parameters that are embedded in the GID.
import {parseGID, ShopifyGID} from '@lemonmade/shopify';
// You will usually receive these GIDs from Shopify APIs.
const {id, resource, searchParams} = parseGID(
'gid://shopify/Product/1234567890',
);
// Or, you can construct a GID manually yourself:
const {gid} = ShopifyGID.from({id: '1234567890', resource: 'Product'});
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
@lemonmade/shopify@0.3.0
Minor Changes
d22add1
Thanks @lemonmade! - Added GID parsing utilities. You can now importparseGID
and/ or theShopifyGID
class from@lemonmade/shopify
, as well as from the/storefront
and/admin
entrypoints for that package. These utilities allow you to parse the global IDs (GIDs) returned by most of Shopify’s APIs. This is most useful for extracting the legacy resource ID, resource type, and additional query parameters that are embedded in the GID.