Skip to content

Releases: vuestorefront/magento2

@vue-storefront/[email protected]

10 Apr 15:20
633b422
Compare
Choose a tag to compare

Minor Changes

  • 8b2a0c3: [ADDED] categories endpoint definition.

@vue-storefront/[email protected]

10 Apr 15:20
633b422
Compare
Choose a tag to compare

Minor Changes

  • 8b2a0c3: [ADDED] categories method that allows fetching a list of categories that match the specified filter.

Patch Changes

@vue-storefront/[email protected]

10 Apr 15:20
633b422
Compare
Choose a tag to compare

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 new categories endpoint.

    
    

Patch Changes

@vue-storefront/[email protected]

04 Apr 13:49
d3c30ca
Compare
Choose a tag to compare

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;
    }
    // get ConfigurableProduct `variants` products
    
    const products = sdk.commerce.products();
    
    for (let product of products) {
      if (product.__typename === "ConfigurableProduct") {
        const variants = products.variants;
      }
    }

Patch Changes

@vue-storefront/[email protected]

04 Apr 09:53
77acf91
Compare
Choose a tag to compare

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]

04 Apr 13:49
d3c30ca
Compare
Choose a tag to compare

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;
    }
    // get ConfigurableProduct `variants` products
    
    const products = sdk.commerce.products();
    
    for (let product of products) {
      if (product.__typename === "ConfigurableProduct") {
        const variants = products.variants;
      }
    }

Patch Changes

@vue-storefront/[email protected]

04 Apr 09:53
77acf91
Compare
Choose a tag to compare

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]

03 Apr 11:14
5268b15
Compare
Choose a tag to compare

Patch Changes

  • c5d6306: [FIXED] Correctly passing properties and options to customQuery and customMutation SDK methods. Previously, the customHeaders option was not being passed properly. Now, all options will be properly passed to the customQuery and customMutation methods.

@vue-storefront/[email protected]

18 Aug 08:30
b1c4e8c
Compare
Choose a tag to compare

Patch Changes

  • #1456 e3f329ec Thanks @bartoszherba! - Fixed a Naming Issue in productDetails Method

    We'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]

17 Aug 10:46
52d1254
Compare
Choose a tag to compare

Patch Changes