@vue-storefront/magento-api
3.1.0
Minor Changes
- 6dc90582: CHANGED Enhanced default GQL
productDetailsQuerywith new fields:stock_statusandonly_x_left_in_stock. #1521
Patch Changes
- 6672edfb: CHANGED Update TSDocs of API methods. Now, they contain examples of usage.
3.0.0
Major Changes
- 8b8fdff0: - CHANGED
Endpointsinterface. Previously, each endpoint containedcontextparam, which is internal and shouldn't be exposed in the final interface. Now,Endpointsinterface properties don't containcontextparam. If you need to usecontextparam, you should useApiMethodstype.- import { Endpoints } from '@vue-storefront/magento-api'; + import { ApiMethods } from '@vue-storefront/magento-api';- CHANGED Removed
ContextualizedEndpointstype. UseEndpointsinstead.
- import { ContextualizedEndpoints } from '@vue-storefront/magento-api'; + import { Endpoints } from '@vue-storefront/magento-api';- REMOVED
MagentoApiMethodsinterface. UseEndpointsinstead.
- import { MagentoApiMethods } from '@vue-storefront/magento-api'; + import { Endpoints } from '@vue-storefront/magento-api'; - CHANGED Removed
2.7.0
Minor Changes
- 8b2a0c35: ADDED
categoriesendpoint that allows fetching a list of categories that match the specified filter. CHANGEDcategoryListendpoint is now deprecated in favor of the newcategoriesendpoint.
Patch Changes
- Updated dependencies 8b2a0c35
- @vue-storefront/magento-types@1.2.0
2.6.0
Minor Changes
- 7ce4f9ed: CHANGED Enhanced default GQL queries
CategorySearchQuerynew fields:url_key- The url key assigned to the category.children- Child categories tree.include_in_menuis_anchorlevelnamepositionproduct_countuidurl_keyurl_pathurl_suffix
// get category `children` categories const category = sdk.commerce.categorySearch(); const children = category.children;CategoryListQuerynew fields:children.url_key- The url key assigned to the category.
// get `url_key` of category children const categoryList = sdk.commerce.categoryList(); for (let categoryChildren of categoryList.children) { const url_key = categoryChildren.url_key; }ProductListsQuerynew fields:variants- An array of variants ofConfigurableProduct
// get ConfigurableProduct `variants` products const products = sdk.commerce.products(); for (let product of products) { if (product.__typename === "ConfigurableProduct") { const variants = products.variants; } }
Patch Changes
- 7ce4f9ed: FIXED
CategoryListQueryreturnsurl_keyproperty on each children level
CHANGED Enhanced default GQL queriesCategoryListQuery- fetch up to 5th level nested categories
children
- fetch up to 5th level nested categories
- 7ce4f9ed: CHANGED Enhanced default GQL queries
ProductDetailsQuery- enhanced
ConfigurableProductresponse withConfigurableVariants
- enhanced
- 7ce4f9ed: CHANGED Enhanced default GQL queries with new fields
CartQueryCustomerCartQueryApplyCouponToCartMutationRemoveCouponFromCartMutationAddProductsToCartMutationRemoveItemFromCartMutationSetShippingMethodsOnCartMutationMergeCartsMutation
with new fields:pricessubtotal_with_discount_excluding_tax
configured_variantskunameonly_x_left_in_stockprice_range
- 7ce4f9ed: FIXED
updateCustomerAddressmethod declaration argument type. Useidinstead ofaddressId.
CHANGED Enhanced default GQL queriesCreateCustomerAddressresponse with fieldsfirstnamelastnameprefixsuffix
- 7ce4f9ed: CHANGED Enhanced default GQL queries with new fields
SetGuestEmailOnCartMutationSetBillingAddressOnCartMutationSetPaymentMethodOnCartMutationSetShippingAddressesOnCartMutation
with new fields:pricessubtotal_with_discount_excluding_tax
configured_variantskunameonly_x_left_in_stockprice_range
- Updated dependencies 7ce4f9ed
- Updated dependencies 7ce4f9ed
- Updated dependencies 7ce4f9ed
- Updated dependencies 7ce4f9ed
- Updated dependencies 7ce4f9ed
- Updated dependencies 7ce4f9ed
- Updated dependencies 7ce4f9ed
- @vue-storefront/magento-types@1.1.0
2.5.0
Minor Changes
- eda02ee7: CHANGED Update addConfigurableProductsToCart and addBundleProductsToCart methods to align with the rest of the API methods. It is an internal change that does not affect the public API.
Patch Changes
- 06362368: CHANGED
Contextfrom type to interface to allow declaration merging.
2.4.3
Patch Changes
- adc748ef: * Updated @apollo/client dependency from version
^3.6.9to version3.8.7in the api-client package. - adc748ef: * Fixed a bug in the GraphQL mutation in the generateCustomerToken API. Replaced the ${generateCustomerToken} template string with ${generateCustomerTokenGQL.query} in the mutation to address the bug.
2.4.2
Patch Changes
- Updated dependencies 045784a6
- @vue-storefront/magento-types@1.0.2
2.4.1
Patch Changes
- 78edfd5c: * Fixed a bug in the GraphQL mutation in the generateCustomerToken API. Replaced the ${generateCustomerToken} template string with ${generateCustomerTokenGQL.query} in the mutation to address the bug.
2.4.0
Minor Changes
- d634cdbe: ## Changes
This change adds support for custom queries in theroutemethod of both theapi-clientandsdkmodules. Theroutequery has also been extended with aCategoryInterfacefragment. These changes improve the flexibility and functionality of theroutemethod, allowing for more customization and control over the data returned.api-client
- Expanded the route query to include a
CategoryInterfacefragment. - Introduced support for
customQuerieswithin the route API method.
sdk
- Now includes support for
customQueriesin the route SDK method.
- Expanded the route query to include a
Patch Changes
- 992734bf: ## Changes
This change adds support for custom queries in thegenerateCustomerTokenmethod of both theapi-clientandsdkmodules.api-client
- Introduced support for
customQuerieswithin the route API method.
sdk
- Now includes support for
customQueriesin the route SDK method.
- Introduced support for
2.3.0
Minor Changes
- a9ea521f: Added Compatibility: Now supports domain-based store resolving with the Unified MultiStore module.
2.2.0
Minor Changes
- 07d2087a: Bumped
@vue-storefront/middlewareversion to^3.5.0which introduces support for HTTP GET requests.
2.1.1
Patch Changes
- Turn off query deduplication to prevent any potential session leaks.
2.1.0
Minor Changes
- Add node 18 support
2.0.1
Patch Changes
- Fix products and productDetails endpoints to return 200 instead of 500 when no products found