Skip to content

@vue-storefront/[email protected]

Compare
Choose a tag to compare
@github-actions github-actions released this 11 Apr 11:28
· 33 commits to main since this release
8138228

Patch Changes

  • ae8a741: ### Change Log

    • [CHANGED] Deprecated the MagentoModuleType interface in index.ts. It is no longer necessary to use this type. Please, check documentation of magentoModule for alternatives. Below you can find a snippet of the new way of using magentoModule. Pay attention to the buildModule function that is used to create a module instance, it no longer requires the MagentoModuleType 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 in ModuleOptions.ts optional.