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
6dc90582: [CHANGED] Enhanced default GQL productDetailsQuery with new fields: stock_status and only_x_left_in_stock. #1521
Patch Changes
6672edfb: [CHANGED] Update TSDocs of API methods. Now, they contain examples of usage.
@vue-storefront/magento-sdk@2.3.2
Patch Changes
6672edfb: [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.
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
productDetailsQuery
with new fields:stock_status
andonly_x_left_in_stock
. #1521Patch Changes
@vue-storefront/magento-sdk@2.3.2
Patch Changes
6672edfb: [CHANGED]
magentoModule
has been deprecated. UsemiddlewareModule
from@vue-storefront/sdk
package instead.Updating your
magentoModule
to this version should not disrupt your existing code; however, switching tomiddlewareModule
will require certain modifications.To migrate:
middlewareModule
function.