Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: release #1522

Merged
merged 1 commit into from Apr 22, 2024
Merged

ci: release #1522

merged 1 commit into from Apr 22, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 19, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@vue-storefront/magento-api@3.1.0

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.2

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);

@github-actions github-actions bot requested a review from a team as a code owner April 19, 2024 10:55
@bartoszherba bartoszherba merged commit 9ce2348 into main Apr 22, 2024
1 check passed
@bartoszherba bartoszherba deleted the changeset-release/main branch April 22, 2024 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant