Releases: vuestorefront/magento2
@vue-storefront/[email protected]
Minor Changes
- 8b2a0c3: [ADDED]
categories
endpoint definition.
@vue-storefront/[email protected]
Minor Changes
- 8b2a0c3: [ADDED]
categories
method that allows fetching a list of categories that match the specified filter.
Patch Changes
- Updated dependencies [8b2a0c3]
- @vue-storefront/[email protected]
@vue-storefront/[email protected]
Minor Changes
-
8b2a0c3: [ADDED]
categories
endpoint that allows fetching a list of categories that match the specified filter.
[CHANGED]categoryList
endpoint is now deprecated in favor of the newcategories
endpoint.
Patch Changes
- Updated dependencies [8b2a0c3]
- @vue-storefront/[email protected]
@vue-storefront/[email protected]
Minor Changes
-
7ce4f9e: [CHANGED] Enhanced default GQL queries
CategorySearchQuery
new fields:url_key
- The url key assigned to the category.children
- Child categories tree.include_in_menu
is_anchor
level
name
position
product_count
uid
url_key
url_path
url_suffix
// get category `children` categories const category = sdk.commerce.categorySearch(); const children = category.children;
CategoryListQuery
new 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; }
ProductListsQuery
new 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
-
7ce4f9e: [FIXED]
CategoryListQuery
returnsurl_key
property on each children level[CHANGED] Enhanced default GQL queries
CategoryListQuery
- fetch up to 5th level nested categories
children
- fetch up to 5th level nested categories
-
7ce4f9e: [CHANGED] Enhanced default GQL queries
ProductDetailsQuery
- enhanced
ConfigurableProduct
response withConfigurableVariants
- enhanced
-
7ce4f9e: [CHANGED] Enhanced default GQL queries with new fields
CartQuery
CustomerCartQuery
ApplyCouponToCartMutation
RemoveCouponFromCartMutation
AddProductsToCartMutation
RemoveItemFromCartMutation
SetShippingMethodsOnCartMutation
MergeCartsMutation
with new fields:
prices
subtotal_with_discount_excluding_tax
configured_variant
sku
name
only_x_left_in_stock
price_range
-
7ce4f9e: [FIXED]
getAvailableShippingMethods
method declaration argument type. Usingcart_id
instead ofcartId
. -
7ce4f9e: [FIXED]
updateCustomerAddress
method declaration argument type. Useid
instead ofaddressId
.[CHANGED] Enhanced default GQL queries
CreateCustomerAddress
response with fieldsfirstname
lastname
prefix
suffix
-
7ce4f9e: [CHANGED] Enhanced default GQL queries with new fields
SetGuestEmailOnCartMutation
SetBillingAddressOnCartMutation
SetPaymentMethodOnCartMutation
SetShippingAddressesOnCartMutation
with new fields:
prices
subtotal_with_discount_excluding_tax
configured_variant
sku
name
only_x_left_in_stock
price_range
@vue-storefront/[email protected]
Minor Changes
- eda02ee: [ADDED] addBundleProductsToCart method to add one or more bundle products to the specified cart.
[ADDED] addConfigurableProductsToCart method to add one or more configurable products to the specified cart.
@vue-storefront/[email protected]
Minor Changes
-
7ce4f9e: [CHANGED] Enhanced default GQL queries
CategorySearchQuery
new fields:url_key
- The url key assigned to the category.children
- Child categories tree.include_in_menu
is_anchor
level
name
position
product_count
uid
url_key
url_path
url_suffix
// get category `children` categories const category = sdk.commerce.categorySearch(); const children = category.children;
CategoryListQuery
new 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; }
ProductListsQuery
new 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
-
7ce4f9e: [FIXED]
CategoryListQuery
returnsurl_key
property on each children level[CHANGED] Enhanced default GQL queries
CategoryListQuery
- fetch up to 5th level nested categories
children
- fetch up to 5th level nested categories
-
7ce4f9e: [CHANGED] Enhanced default GQL queries
ProductDetailsQuery
- enhanced
ConfigurableProduct
response withConfigurableVariants
- enhanced
-
7ce4f9e: [CHANGED] Enhanced default GQL queries with new fields
CartQuery
CustomerCartQuery
ApplyCouponToCartMutation
RemoveCouponFromCartMutation
AddProductsToCartMutation
RemoveItemFromCartMutation
SetShippingMethodsOnCartMutation
MergeCartsMutation
with new fields:
prices
subtotal_with_discount_excluding_tax
configured_variant
sku
name
only_x_left_in_stock
price_range
-
7ce4f9e: [FIXED]
updateCustomerAddress
method declaration argument type. Useid
instead ofaddressId
.[CHANGED] Enhanced default GQL queries
CreateCustomerAddress
response with fieldsfirstname
lastname
prefix
suffix
-
7ce4f9e: [CHANGED] Enhanced default GQL queries with new fields
SetGuestEmailOnCartMutation
SetBillingAddressOnCartMutation
SetPaymentMethodOnCartMutation
SetShippingAddressesOnCartMutation
with new fields:
prices
subtotal_with_discount_excluding_tax
configured_variant
sku
name
only_x_left_in_stock
price_range
-
Updated dependencies [7ce4f9e]
-
Updated dependencies [7ce4f9e]
-
Updated dependencies [7ce4f9e]
-
Updated dependencies [7ce4f9e]
-
Updated dependencies [7ce4f9e]
-
Updated dependencies [7ce4f9e]
-
Updated dependencies [7ce4f9e]
- @vue-storefront/[email protected]
@vue-storefront/[email protected]
Minor Changes
- eda02ee: [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
- 0636236: [CHANGED]
Context
from type to interface to allow declaration merging.
@vue-storefront/[email protected]
Patch Changes
- c5d6306: [FIXED] Correctly passing properties and options to
customQuery
andcustomMutation
SDK methods. Previously, thecustomHeaders
option was not being passed properly. Now, all options will be properly passed to thecustomQuery
andcustomMutation
methods.
@vue-storefront/[email protected]
Patch Changes
-
#1456
e3f329ec
Thanks @bartoszherba! - Fixed a Naming Issue in productDetails MethodWe've fixed a problem where the method name used to access product details was mistakenly written as "productDetail." It's now correctly named as "productDetails." This change ensures everything is clear and accurate in the code.
@vue-storefront/[email protected]
Patch Changes
- #1454
328e8749
Thanks @bartoszherba! - Turn off query deduplication to prevent any potential session leaks.