github-actions
released this
11 Apr 11:28
·
33 commits
to main
since this release
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