- #3018
f4216a6Thanks @parthshahp! - Fixclient.fetchso that custom headers passed viafetchOptions.headersproperly override the client's default headers. Headers are now built via aHeadersobject using.set(), so case-insensitive overrides work as expected.
-
#2563
707ec24Thanks @matthewvolk! - Replace usage of Date.now with performance.now for compatibility with upcoming Next.js Composable Cache feature -
#2565
a27054fThanks @matthewvolk! - Truncate performance.now to 2 decimal places
- #2435
cd4bd60Thanks @matthewvolk! - Release 1.0.0 (seecore/CHANGELOG.mdfor more details)
-
#2370
20b8788Thanks @matthewvolk! - Remove thexAuthTokenconfig parameter from@bigcommerce/catalyst-client. The client no longer has any dependency on a BigCommerce access token, now that we have replaced the/v2/shipping/zonesREST API call with an appropriate GraphQL field (site.settings.shipping.supportedShippingDestinations).Migration:
- If you are using the version of the client published to NPM, simply ensure you are using at least
@bigcommerce/catalyst-client@0.16.0or higher. - If you are using the client in your pnpm workspace, simply remove the
xAuthTokenreferences inpackages/client/src/client.tsas well as thefetchShippingZonesmethod. - Remove the reference to
xAuthTokenincore/client/index.ts
- If you are using the version of the client published to NPM, simply ensure you are using at least
-
#1914
f039b2cThanks @jorgemoya! - GQL requests that respond as200but have anerrorsfield will now be properly handled by the client and throw a properBigCommerceGQLErrorresponse with the message reason from the API. This will provide a more detailed description of why the GQL request errored out.API errors will still be handled and attribute the errored status as the message with this change as
BigCommerceAPIError. -
0aa23e2- Add anonErrorcallback to in order to handle auth and invalid sessions. -
#2124
4a00a27Thanks @jorgemoya! - Add anerrorPolicyoption for GQL requests. Acceptsnone,ignore,all. Defaults tononewhich throws an error if there are GQL errors,ignorereturns the data without error object, andallreturns both data and errors.
-
c830100- Manual changes on a dependency bumps. -
#2226
3b14d66Thanks @bookernath! - Add GraphQL operation name and type to GraphQL URL as query parameters to improve server logging of GraphQL operations
- #1636
23abacfThanks @chanceaclark! - Add optional error to BigCommerceResponse type
- #1623
16e3a76Thanks @chanceaclark! - Adds async support to beforeRequest hook
-
#1262
0c2023bThanks @chanceaclark! - Removes all usages of the customer impersonation token. Also updates the docs to correspond with the Storefront API Token. -
#1262
0c2023bThanks @chanceaclark! - Allows the ability to consume a storefront token. This new token will allow Catalyst to createcustomerAccessToken's whenever a user logs into their account. This change doesn't include consuming the either token, only adding the ability to pass it in.
- #1483
d4120d3Thanks @chanceaclark! - Start collecting telemetry.
- #1449
2d1526aThanks @bookernath! - Support Trusted Proxy in client to support higher-traffic stores
- #1384
17692caThanks @chanceaclark! - Add the ability to hook into the fetchOptions before the request is sent.
- #1261
f715067Thanks @chanceaclark! - Remove the need of fetching shipping countries by using the GraphQL data.
- #1200
51704d9Thanks @chanceaclark! - Remove thefetchAvailableCountriesquery as it is no longer needed in Catalyst. This helps us remove queries that are dependent on the access token.
- #1098
405e791Thanks @bookernath! - Move Sitemap Index fetching into the client & normalize user agents
-
#994
8766305Thanks @jorgemoya! - Add channelId param to client to allow fetching from multiple channels with the same client. -
#1055
52214a3Thanks @jorgemoya! - Add getChannelId param to dynamically fetch a channel on requests.
- #753
48c040eThanks @chanceaclark! - Deprecatenode@18in favor of latest LTS versionnode@20.
- #740
d586c21Thanks @dependabot! - chore: bump next-auth and use string for user id