·
46 commits
to main
since this release
Major Changes
- 3dc75b3: Adds an
exchanges
property to the Storefront SDK's initialization parameters. This new parameter allows Storefront SDK users to explicitly specify custom urql exchanges. All exchanges used by the Storefront SDK's urql client are now exported individually and as a pre-configured array ofdefaultExchanges
. BREAKING ThesetConfig
parameter no longer allows APQ functionality to be changed on-the-fly. APQ can only be disabled by explicitly excluding thepersistedFetchExchange
in the exchanges array provided to theexchanges
initialization parameter. - a5347d7 BREAKING:
advancedOptions
andenableAPQ
are removed from theStorefrontClientParams
, and will be replaced with the ability for the SDK users to pass their own exchanges as params instead, including the@urql/exchange-persisted
exchange which enables APQ. Seeurql
documentation for more information about the persisted query exchange: https://formidable.com/open-source/urql/docs/advanced/persistence-and-uploads/