Skip to content

Releases: vuestorefront/magento2

@vue-storefront/magento-types@2.0.0

22 May 11:10
4bf7994
Compare
Choose a tag to compare

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/magento-sdk@3.0.0

22 May 11:10
4bf7994
Compare
Choose a tag to compare

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/magento-types@2.0.0

@vue-storefront/magento-api@4.0.0

22 May 11:10
4bf7994
Compare
Choose a tag to compare

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/magento-types@2.0.0

@vue-storefront/magento-api@3.1.1

10 May 09:33
574abe6
Compare
Choose a tag to compare

Patch Changes

  • 3065ee7: [ADDED] CategoriesQuery type for categories endpoint.
  • 101d990: [FIXED]: Added export of Endpoints type, because it was missing.

@vue-storefront/magento-sdk@2.3.2

22 Apr 07:59
9ce2348
Compare
Choose a tag to compare

Patch Changes

  • 6672edf: [CHANGED] magentoModule has been deprecated. Use middlewareModule 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 to middlewareModule 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);

@vue-storefront/magento-api@3.1.0

22 Apr 07:59
9ce2348
Compare
Choose a tag to compare

Minor Changes

  • 6dc9058: [CHANGED] Enhanced default GQL productDetailsQuery with new fields: stock_status and only_x_left_in_stock. #1521

Patch Changes

  • 6672edf: [CHANGED] Update TSDocs of API methods. Now, they contain examples of usage.

@vue-storefront/magento-sdk@2.3.1

11 Apr 11:28
8138228
Compare
Choose a tag to compare

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.

@vue-storefront/magento-api@3.0.0

11 Apr 09:24
938440e
Compare
Choose a tag to compare

Major Changes

  • 8b8fdff: - [CHANGED] Endpoints interface. Previously, each endpoint contained context param, which is internal and shouldn't be exposed in the final interface. Now, Endpoints interface properties don't contain context param. If you need to use context param, you should use ApiMethods type.

    - import { Endpoints } from '@vue-storefront/magento-api';
    + import { ApiMethods } from '@vue-storefront/magento-api';
    • [CHANGED] Removed ContextualizedEndpoints type. Use Endpoints instead.
    - import { ContextualizedEndpoints } from '@vue-storefront/magento-api';
    + import { Endpoints } from '@vue-storefront/magento-api';
    • [REMOVED] MagentoApiMethods interface. Use Endpoints instead.
    - import { MagentoApiMethods } from '@vue-storefront/magento-api';
    + import { Endpoints } from '@vue-storefront/magento-api';

@vue-storefront/magento-types@1.2.0

10 Apr 15:20
633b422
Compare
Choose a tag to compare

Minor Changes

  • 8b2a0c3: [ADDED] categories endpoint definition.

@vue-storefront/magento-sdk@2.3.0

10 Apr 15:20
633b422
Compare
Choose a tag to compare

Minor Changes

  • 8b2a0c3: [ADDED] categories method that allows fetching a list of categories that match the specified filter.

Patch Changes

  • Updated dependencies [8b2a0c3]
    • @vue-storefront/magento-types@1.2.0