@vue-storefront/magento-api
8.0.2
Patch Changes
- FIXED type for built-in
tokenExtension
8.0.1
Patch Changes
Security vulnerability fixes across multiple packages
This change addresses critical security vulnerabilities identified in the dependency audit across several packages. The fixes primarily target dependency updates and security patches to resolve high and critical severity issues.
Before fix:
- 40 vulnerabilities found (Packages audited: 3081)
- Severity breakdown: 23 Low | 8 Moderate | 2 High | 7 Critical
After fix:
- 24 vulnerabilities found (Packages audited: 3115)
- Severity breakdown: 22 Low | 2 Moderate | 0 High | 0 Critical
Key improvements:
- Eliminated all 7 critical vulnerabilities
- Resolved 2 high severity vulnerabilities
- Reduced moderate vulnerabilities from 8 to 2
- Overall 40% reduction in total vulnerabilities (40 → 24)
The remaining low and moderate vulnerabilities are either false positives or require major version updates that would introduce breaking changes.
- FIX Improve Magento route types with proper union types
- Replaced generic
RoutableInterfacewith a newRouteunion type that properly represents different route variants - Added specific types for
CategoryInterfaceRoute,CategoryTreeRoute,CmsPageRoute, andProductRoutewith their respective properties - Updated the route API function to use the new
Routetype for better type safety and IntelliSense support - Each route type now includes proper
__typenamediscrimination for better runtime type checking - Updated dependencies:
- @vsf-enterprise/magento-types@4.0.1
8.0.0
Major Changes
FEATURE
- placeOrder unified API method: Added
placeOrdermethod to the unified API for Magento.
CHANGED
- placeOrder response structure: The
placeOrdermethod now returns detailed order information using theorderV2field instead of the basicorderfield. Update your code to access order data fromresponse.data.placeOrder.orderV2instead ofresponse.data.placeOrder.order - magento schema updated: Updated Magento GraphQL schema from 2.4.6 to 2.4.8, which may introduce new types and fields or modify existing ones.
- magento-sdk: Is now using the
middlewareModulefrom@alokai/connect/sdkand become a Proxy SDK module to align with recent architecture changes.
Patch Changes
- Updated dependencies:
- @vsf-enterprise/magento-types@4.0.0
7.0.0
Major Changes
- CHANGED Guarantee compatibility with
@alokai/connectpackage. - CHANGED Updated the package for compatibility with Node.js 22.
Key Updates:
- Upgraded to the latest version of Node.js 22
- Updated CI pipelines to use Node.js 22 for consistency.
- Updated
.nvmrcor.node-versionfiles to specify Node.js version22.14. - Upgraded
@types/nodeto version^22.13.17for compatibility with the latest Node.js features.
Recommendations:
- Use Node.js version
22.14.0or higher for optimal performance, security, and compatibility. - While Node.js 20 is technically supported, it is not recommended as it may cause compatibility issues with certain packages and has not been thoroughly tested.
CHANGED Replaced core dependencies with a new
@alokai/connectpackage.@vue-storefront/middleware,@vue-storefront/sdk,vue-storefront/logger,vue-storefront/unified-data-model,@vue-storefront/multistorewere replaced with@alokai/connect. The replacement preserves the same functionality and interface as the original packages. To read more about the@alokai/connectpackage, please refer to the documentation.
Patch Changes
- Updated dependencies:
- @alokai/connect@1.0.0
- @vsf-enterprise/magento-types@3.0.0
7.0.0-rc.5
Patch Changes
- Updated dependencies:
- @alokai/connect@1.0.0-rc.4
7.0.0-rc.4
Major Changes
- CHANGED Updated the package for compatibility with Node.js 22.
Key Updates:
- Upgraded to the latest version of Node.js 22
- Updated CI pipelines to use Node.js 22 for consistency.
- Updated
.nvmrcor.node-versionfiles to specify Node.js version22.14. - Upgraded
@types/nodeto version^22.13.17for compatibility with the latest Node.js features.
Recommendations:
- Use Node.js version
22.14.0or higher for optimal performance, security, and compatibility. - While Node.js 20 is technically supported, it is not recommended as it may cause compatibility issues with certain packages and has not been thoroughly tested.
Patch Changes
- Updated dependencies:
- @vsf-enterprise/magento-types@3.0.0-rc.0
- @alokai/connect@1.0.0-rc.3
7.0.0-rc.3
Patch Changes
- Updated dependencies:
- @alokai/connect@1.0.0-rc.2
7.0.0-rc.2
Patch Changes
- Updated dependencies:
- @alokai/connect@1.0.0-rc.1
7.0.0-rc.1
Major Changes
Update packages to work with connect rc version
Patch Changes
- Updated dependencies:
- @alokai/connect@1.0.0-rc.0
7.0.0-rc.0
Major Changes
CHANGED Replaced core dependencies with a new @alokai/connect package. @vue-storefront/middleware, @vue-storefront/sdk, vue-storefront/logger, vue-storefront/unified-data-model were replaced with @alokai/connect. The replacement preserves the same functionality and interface as the original packages. To read more about the @alokai/connect package, please refer to the documentation. You will also find a migration guide in the documentation.
6.3.0
Minor Changes
- 9f61ba2b: CHANGED Replaced
consolawith Alokai Logger. To learn more about logger, visit Alokai Logger.
6.2.0
Minor Changes
- aa9e8a96: ADDED
cookieOptionsconfig. This option allows you to customize the cookie options which are set for a given cookie name.
Example:{ integrations: { magento: { location: "@vue-storefront/magento-api/server", configuration: { // ... cookieOptions: { "vsf-customer": { secure: process.env.NODE_ENV === 'production', sameSite: process.env.NODE_ENV === 'production' ? 'none' : 'strict', } } }, }, }, }
6.1.0
Minor Changes
- a89d1e10: ** CHANGED ** - increase the HttpAgent socket timeout from
10sto30sto prevent timeout errors on slow connections.
6.0.0
Major Changes
- 983eb70e: CHANGE - Update middleware to 5.1.0
5.0.1
Patch Changes
- 158a648f: Remove unused vulnerable dependency "@nuxtjs/composition-api"
5.0.0
Major Changes
- 018d73d3: - BREAKING Updated
@vue-storefront/middlewareversion to4.1.0. Make sure this version is used in your project.{ ... "dependencies": { - "@vue-storefront/middleware": "3.x.x", + "@vue-storefront/middleware": "4.1.0" } }
4.0.1 (deprecated)
This package version is deprecated. Please use the next major version.
Patch Changes
- d65bb6ee: CHANGED Updated
@vue-storefront/middlewareversion to4.x.x.
4.0.0
Major Changes
- e4709f9a: Changed minimum Node version from 16 to 18. The condition that was forcing the Node version to be lower than 19 is also removed.
Patch Changes
- Updated dependencies e4709f9a
- @vue-storefront/magento-types@2.0.0
3.1.1
Patch Changes
- 3065ee76: ADDED
CategoriesQuerytype forcategoriesendpoint. - 101d9905: FIXED: Added export of
Endpointstype, because it was missing.
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