Releases: vuestorefront/magento2
Releases · vuestorefront/magento2
@vue-storefront/[email protected]
Patch Changes
- d65bb6e: [CHANGED] Updated
@vue-storefront/middleware
peer dependency version to4.x.x
.
@vue-storefront/[email protected]
Patch Changes
- d65bb6e: [CHANGED] Updated
@vue-storefront/middleware
version to4.x.x
.
@vue-storefront/[email protected]
Major Changes
- e4709f9: Changed minimum Node version from 16 to 18. The condition that was forcing the Node version to be lower than 19 is also removed.
@vue-storefront/[email protected]
Major Changes
- e4709f9: 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 [e4709f9]
- @vue-storefront/[email protected]
@vue-storefront/[email protected]
Major Changes
- e4709f9: 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 [e4709f9]
- @vue-storefront/[email protected]
@vue-storefront/[email protected]
@vue-storefront/[email protected]
Patch Changes
-
6672edf: [CHANGED]
magentoModule
has been deprecated. UsemiddlewareModule
from@vue-storefront/sdk
package instead.- import { initSDK, buildModule } from '@vue-storefront/sdk'; - import { magentoModule } from '@vsf-enterprise/magento-sdk' + import { initSDK, buildModule, middlewareModule } from '@vue-storefront/sdk'; + import { Endpoints as MagentoEndpoints } from '@vsf-enterprise/sapcc-api'; // In Alokai Storefront you should import it from `storefront-middleware/types.ts` const sdkConfig = { magento: buildModule( - magentoModule, + middlewareModule<MagentoEndpoints>, { apiUrl: 'http://localhost:8181/magento' } ) };
Updating your
magentoModule
to this version should not disrupt your existing code; however, switching tomiddlewareModule
will require certain modifications.To migrate:
- Use custom query as a second argument of
middlewareModule
function.
const customQuery = { cart: 'cart-custom-query', metadata: { fields: 'id items { uid }' } }; - const cart = await sdk.magento.cart({ cartId: '123'}, { customQuery }); + const cart = await sdk.magento.cart({ cartId: '123'}, customQuery);
- Use custom query as a second argument of
@vue-storefront/[email protected]
@vue-storefront/[email protected]
Patch Changes
-
ae8a741: ### Change Log
- [CHANGED] Deprecated the
MagentoModuleType
interface inindex.ts
. It is no longer necessary to use this type. Please, check documentation ofmagentoModule
for alternatives. Below you can find a snippet of the new way of usingmagentoModule
. Pay attention to thebuildModule
function that is used to create a module instance, it no longer requires theMagentoModuleType
type as a generic parameter.
import { initSDK, buildModule } from "@vue-storefront/sdk"; import { magentoModule, MagentoModuleType, } from "@vue-storefront/magento2-sdk"; const sdkConfig = { magento: buildModule(magentoModule, { apiUrl: "http://localhost:8181/magento", }), }; export const sdk = initSDK(sdkConfig);
- [CHANGED] Made the
ssrApiUrl
property inModuleOptions.ts
optional.
- [CHANGED] Deprecated the
@vue-storefront/[email protected]
Major Changes
-
8b8fdff: - [CHANGED]
Endpoints
interface. Previously, each endpoint containedcontext
param, which is internal and shouldn't be exposed in the final interface. Now,Endpoints
interface properties don't containcontext
param. If you need to usecontext
param, you should useApiMethods
type.- import { Endpoints } from '@vue-storefront/magento-api'; + import { ApiMethods } from '@vue-storefront/magento-api';
- [CHANGED] Removed
ContextualizedEndpoints
type. UseEndpoints
instead.
- import { ContextualizedEndpoints } from '@vue-storefront/magento-api'; + import { Endpoints } from '@vue-storefront/magento-api';
- [REMOVED]
MagentoApiMethods
interface. UseEndpoints
instead.
- import { MagentoApiMethods } from '@vue-storefront/magento-api'; + import { Endpoints } from '@vue-storefront/magento-api';
- [CHANGED] Removed