Change Log
3.0.4
Patch Changes
- CHANGED the version of
@vue-storefront/sdk-axios-request-sender
package to^2.0.0
.
3.0.3
Patch Changes
- CHANGED Updated
@vue-storefront/middleware
version to4.1.0
.
3.0.2
Patch Changes
Update axios to ^0.28.0 to mitigate security vulnerability CVE-2023-45857
3.0.1
Patch Changes
- CHANGED
ctModule
has been deprecated. UsemiddlewareModule
from@vue-storefront/sdk
package instead.- import { initSDK, buildModule } from '@vue-storefront/sdk'; - import { ctModule, CTModuleType } from '@vsf-enterprise/commercetools-sdk' + import { initSDK, buildModule, middlewareModule } from '@vue-storefront/sdk'; + import { Endpoints as CTEndpoints } from '@vsf-enterprise/commercetools-api'; const sdkConfig = { commerce: buildModule( - ctModule, + middlewareModule<CTEndpoints>, { apiUrl: 'http://localhost:8181/ct', ssrApiUrl: 'http://localhost:8181/ct' } ) }; export const sdk = initSDK(sdkConfig);
Migration from@vue-storefront/commercetools-sdk
to themiddlewareModule
:- const { customerCreatePasswordResetToken } = await sdk.commerce.customerCreatePasswordResetToken( - { email: 'john.doe@gmail.com', expose: true } - ); + const { customerCreatePasswordResetToken } = await sdk.commerce.customerCreatePasswordResetToken( + 'john.doe@gmail.com', + true + ); const token = customerCreatePasswordResetToken?.value; - const { cart } = await sdk.commerce.removeProductFromCart({ - cartId: "cart-id", - cartVersion: 1, - product, - quantity: 1, - }); + const { cart } = await sdk.commerce.removeProductFromCart( + { + id: "cart-id", + version: 1, + }, + { + product, + quantity: 1, + } + ); const { order } = await sdk.commerce.createMyOrderFromCart({ - cartId: "6931b5d2-986f-4d2b-8cba-45007a26eb5e", - cartVersion: 1, + id: "6931b5d2-986f-4d2b-8cba-45007a26eb5e", + version: 1, }); - await sdk.commerce.customerChangePassword({ - version: user.version, - currentPassword: 'current_password', - newPassword: 'new_password' - }); + await sdk.commerce.customerChangePassword(user.version, 'current_password', 'new_password');
- CHANGED Deprecated the
CTModuleType
interface. It is no longer necessary to use this type. It's going to be removed in the next major version after Nov 1, 2024.import { initSDK, buildModule } from "@vue-storefront/sdk"; - import { ctModule, CTModuleType } from "@vue-storefront/commercetools-sdk"; + import { ctModule } from "@vue-storefront/commercetools-sdk"; const sdkConfig = { - commerce: buildModule<CTModuleType>(ctModule, { + commerce: buildModule(ctModule, { apiUrl: "http://localhost:8181/ct", }), }; export const sdk = initSDK(sdkConfig);
3.0.0
Major Changes
- CHANGED 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:
- @vsf-enterprise/commercetools-types@2.0.0
2.1.0
Minor Changes
- 2fb71d4d4: Added possibility to send cookie-independent requests via SDK to integration's GET endpoints in order to cache their response
Patch Changes
- Updated dependencies 2fb71d4d4
- @vsf-enterprise/commercetools-types@1.13.0
2.0.0
Major Changes
- Implemented
@vue-storefront/sdk-axios-request-sender
package in all SDK methods. Also,getCategories
,getStores
,getFacet
,getProduct
,getProductBySku
andgetProductReviews
methods now send GET instead of POST requests to Vue Storefront's Server Middleware.
1.5.0
Minor Changes
- Used
@vue-storefront/sdk
instead of@vsf-enterprise/sdk
as devDependency
1.4.0
Minor Changes
- Add support for node-18: >= 16 && < 19
1.3.0
Minor Changes
- upgraded middleware to the latest version
1.2.0
Minor Changes
- upgraded middleware to the latest version
1.1.0
Minor Changes
- api-client getStores endpoint is now filterable
- sdk added getStores method
Patch Changes
- Updated dependencies [
94acce411
]:- @vsf-enterprise/commercetools-types@1.12.0
1.0.3
In this release, we fixed the memory leak caused by axios interceptors registered on each request instead of once.
1.0.2
In this release, we fixed the issue with adding additional resposeType
to request's body on each request.
1.0.1
In this release, we've added missing ts-essentials@^9.3.1
and @vsf-enterprise/commercetools-types@^1.11.0
dependencies to fix typings issues.
1.0.0
In this release we:
- covered most of the features the
@vsf-enterprise/commercetools-api
functionalities, - created a new documentation focued on the SDK usage,
- made the module compatible with
v1.0.0
of the@vue-storefront/sdk
package.