Skip to content

Export the symbols that projects import from the package root - #2740

Open
bramvanderholst wants to merge 1 commit into
canaryfrom
fix/missing-exports
Open

bramvanderholst wants to merge 1 commit into
canaryfrom
fix/missing-exports

Conversation

@bramvanderholst

@bramvanderholst bramvanderholst commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Written by 🤖:

Client projects import these symbols from GraphCommerce packages. The exports map in each package.json blocks a deep import, so each project added the export with patch-package. This PR adds the exports to the package roots.

Package New exports
ecommerce-ui type OptionBase
google-datalayer cartToAddShippingInfo, cartToPurchase, cartToViewCart, productToDatalayerItem, Product_DatalayerItem.gql, useViewItemList
hygraph-ui defaultRenderers, getAllHygraphPages
image type ImageConfig, the loaders and config values of config/config
magento-cart useCartPermissions, CreateEmptyCart.gql, CurrentCartId.gql, CustomerCart.gql, MergeCarts.gql, GetCartSummary.gql
magento-cart-coupon ApplyCouponForm.gql, RemoveCouponForm.gql
magento-cart-pickup PickupLocationSelector
magento-cart-shipping-address CustomerAddressActionCard
magento-cart-shipping-method ShippingMethodActionCard
magento-category CategoryDescription.gql
magento-customer signOut, TrackingLink, DeleteCustomer.gql, UpdateDefaultAddress.gql
magento-graphql ./mesh/customAttributeMetadataV2 in exports; the magentoOrdersResolvers.ts entry points to the existing file
magento-newsletter GuestNewsletterToggle.gql
magento-product ProductDiscountLabel, ProductNewLabel, ProductPageGallery.gql, the Customizable*Option components and CustomizablePrice
magento-product-configurable SwatchList
magento-product-simple ProductListItemSimple.gql
magento-review ProductReviews.gql, ProductReviewsPage.gql
magento-search-overlay types SearchOverlayBodyBaseProps, SearchOverlayCategoriesProps, SearchOverlayHeaderProps
magento-wishlist WishlistItem.gql
next-ui NavigationItem
react-hook-form composedFormContext

SearchOverlayBodyBase had untyped props. It uses SearchOverlayBodyBaseProps now.

Test plan

The PR adds exports only. The storefront does not change.

  • examples/magento-graphcms with @graphcommerce/magento-cart-pickup,@graphcommerce/magento-search-overlay in PRIVATE_ADDITIONAL_DEPENDENCIES: yarn codegen and tsgo --noEmit -p . give no errors.
  • A temporary file in the example imports each new symbol from its package root. tsgo gives no errors, so no export * has an ambiguous name.

@vercel

vercel Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
graphcommerce-246 Ready Ready Preview Dec 4, 2026 3:20pm UTC
graphcommerce-247 Ready Ready Preview Dec 4, 2026 3:20pm UTC
graphcommerce-hygraph-dynamic-rows-ui Ready Ready Preview Dec 4, 2026 3:20pm UTC
graphcommerce-open-source Ready Ready Preview Dec 4, 2026 3:20pm UTC
graphcommerce-storyblok Ready Ready Preview Dec 4, 2026 3:20pm UTC

Request Review

@changeset-bot

changeset-bot Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4f1b6ea

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 87 packages
Name Type
@graphcommerce/ecommerce-ui Patch
@graphcommerce/google-datalayer Patch
@graphcommerce/hygraph-ui Patch
@graphcommerce/image Patch
@graphcommerce/magento-cart Patch
@graphcommerce/magento-cart-coupon Patch
@graphcommerce/magento-cart-pickup Patch
@graphcommerce/magento-cart-shipping-address Patch
@graphcommerce/magento-cart-shipping-method Patch
@graphcommerce/magento-category Patch
@graphcommerce/magento-customer Patch
@graphcommerce/magento-graphql Patch
@graphcommerce/magento-newsletter Patch
@graphcommerce/magento-product Patch
@graphcommerce/magento-product-configurable Patch
@graphcommerce/magento-product-simple Patch
@graphcommerce/magento-review Patch
@graphcommerce/magento-search-overlay Patch
@graphcommerce/magento-wishlist Patch
@graphcommerce/next-ui Patch
@graphcommerce/react-hook-form Patch
@graphcommerce/magento-graphcms Patch
@graphcommerce/magento-open-source Patch
@graphcommerce/magento-storyblok Patch
@graphcommerce/googleanalytics Patch
@graphcommerce/googletagmanager Patch
@graphcommerce/framer-next-pages-example Patch
@graphcommerce/framer-scroller-example Patch
@graphcommerce/docs Patch
@graphcommerce/browserslist-config-pwa Patch
@graphcommerce/changeset-changelog Patch
@graphcommerce/eslint-config-pwa Patch
@graphcommerce/graphql-codegen-markdown-docs Patch
@graphcommerce/graphql-codegen-near-operation-file Patch
@graphcommerce/graphql-codegen-relay-optimizer-plugin Patch
@graphcommerce/misc Patch
@graphcommerce/next-config Patch
@graphcommerce/prettier-config-pwa Patch
@graphcommerce/typescript-config-pwa Patch
@graphcommerce/address-autocomplete Patch
@graphcommerce/address-fields-nl Patch
@graphcommerce/algolia-categories Patch
@graphcommerce/algolia-insights Patch
@graphcommerce/algolia-personalization Patch
@graphcommerce/algolia-products Patch
@graphcommerce/algolia-recommend Patch
@graphcommerce/algolia-search Patch
@graphcommerce/cli Patch
@graphcommerce/demo-magento-graphcommerce Patch
@graphcommerce/framer-next-pages Patch
@graphcommerce/framer-scroller Patch
@graphcommerce/framer-utils Patch
@graphcommerce/google-playstore Patch
@graphcommerce/googlerecaptcha Patch
@graphcommerce/graphcms-ui Patch
@graphcommerce/graphql-mesh Patch
@graphcommerce/graphql Patch
@graphcommerce/hygraph-cli Patch
@graphcommerce/hygraph-dynamic-rows-ui Patch
@graphcommerce/hygraph-dynamic-rows Patch
@graphcommerce/lingui-next Patch
@graphcommerce/magento-cart-checkout Patch
@graphcommerce/magento-cart-email Patch
@graphcommerce/magento-cart-items Patch
@graphcommerce/magento-cart-payment-method Patch
@graphcommerce/magento-cms Patch
@graphcommerce/magento-compare Patch
@graphcommerce/magento-graphql-rest Patch
@graphcommerce/magento-payment-adyen Patch
@graphcommerce/magento-payment-afterpay Patch
@graphcommerce/magento-payment-braintree Patch
@graphcommerce/magento-payment-included Patch
@graphcommerce/magento-payment-klarna Patch
@graphcommerce/magento-payment-multisafepay Patch
@graphcommerce/magento-payment-paypal Patch
@graphcommerce/magento-payment-tokens Patch
@graphcommerce/magento-product-bundle Patch
@graphcommerce/magento-product-downloadable Patch
@graphcommerce/magento-product-grouped Patch
@graphcommerce/magento-product-virtual Patch
@graphcommerce/magento-recently-viewed-products Patch
@graphcommerce/magento-search Patch
@graphcommerce/magento-store Patch
@graphcommerce/mollie-magento-payment Patch
@graphcommerce/service-worker Patch
@graphcommerce/storyblok-ui Patch
@graphcommerce/image-example Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@bramvanderholst
bramvanderholst force-pushed the fix/missing-exports branch 2 times, most recently from 04a406a to edc9687 Compare December 4, 2026 14:12

This branch was successfully deployed

5 active deployments
Preview – graphcommerce-247 — 4f1b6ea9 Deployed Dec 4, 2026 by vercel[bot]
Preview – graphcommerce-246 — 4f1b6ea9 Deployed Dec 4, 2026 by vercel[bot]
Preview – graphcommerce-storyblok — 4f1b6ea9 Deployed Dec 4, 2026 by vercel[bot]
Preview – graphcommerce-open-source — 4f1b6ea9 Deployed Dec 4, 2026 by vercel[bot]
Preview – graphcommerce-hygraph-dynamic-rows-ui — 4f1b6ea9 Deployed Dec 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant