Skip to content

Latest commit

 

History

History
147 lines (76 loc) · 9.7 KB

File metadata and controls

147 lines (76 loc) · 9.7 KB

Changelog

1.0.2

Patch Changes

  • #3018 f4216a6 Thanks @parthshahp! - Fix client.fetch so that custom headers passed via fetchOptions.headers properly override the client's default headers. Headers are now built via a Headers object using .set(), so case-insensitive overrides work as expected.

1.0.1

Patch Changes

1.0.0

Major Changes

Minor Changes

  • #2370 20b8788 Thanks @matthewvolk! - Remove the xAuthToken config 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/zones REST API call with an appropriate GraphQL field (site.settings.shipping.supportedShippingDestinations).

    Migration:

    1. If you are using the version of the client published to NPM, simply ensure you are using at least @bigcommerce/catalyst-client@0.16.0 or higher.
    2. If you are using the client in your pnpm workspace, simply remove the xAuthToken references in packages/client/src/client.ts as well as the fetchShippingZones method.
    3. Remove the reference to xAuthToken in core/client/index.ts

0.15.0

Minor Changes

  • #1914 f039b2c Thanks @jorgemoya! - GQL requests that respond as 200 but have an errors field will now be properly handled by the client and throw a proper BigCommerceGQLError response 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 an onError callback to in order to handle auth and invalid sessions.

  • #2124 4a00a27 Thanks @jorgemoya! - Add an errorPolicy option for GQL requests. Accepts none, ignore, all. Defaults to none which throws an error if there are GQL errors, ignore returns the data without error object, and all returns both data and errors.

Patch Changes

  • c830100 - Manual changes on a dependency bumps.

  • #2226 3b14d66 Thanks @bookernath! - Add GraphQL operation name and type to GraphQL URL as query parameters to improve server logging of GraphQL operations

0.14.0

Minor Changes

0.13.0

Minor Changes

0.12.0

Minor Changes

  • #1262 0c2023b Thanks @chanceaclark! - Removes all usages of the customer impersonation token. Also updates the docs to correspond with the Storefront API Token.

  • #1262 0c2023b Thanks @chanceaclark! - Allows the ability to consume a storefront token. This new token will allow Catalyst to create customerAccessToken'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.

0.11.0

Minor Changes

0.10.0

Minor Changes

0.9.0

Minor Changes

0.8.0

Minor Changes

  • #1350 88663d1 Thanks @deini! - remove graphql and use @0no-co/graphql.web for a smaller bundle size

0.7.0

Minor Changes

0.6.0

Minor Changes

  • #1200 51704d9 Thanks @chanceaclark! - Remove the fetchAvailableCountries query as it is no longer needed in Catalyst. This helps us remove queries that are dependent on the access token.

0.5.0

Minor Changes

Patch Changes

  • #994 8766305 Thanks @jorgemoya! - Add channelId param to client to allow fetching from multiple channels with the same client.

  • #1055 52214a3 Thanks @jorgemoya! - Add getChannelId param to dynamically fetch a channel on requests.

0.4.0

Minor Changes

  • #910 d0352c0 Thanks @deini! - removes fetch cart redirect from client and fetch it with gql

0.3.0

Minor Changes

0.2.2

Patch Changes

0.2.1

Patch Changes

0.2.0

Minor Changes

  • #685 ac733cc Thanks @deini! - adds support for DocumentNode All notable changes to this project will be documented in this file.