Skip to content

Commit

Permalink
ci: release
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Apr 22, 2024
1 parent 2380b78 commit c52d84d
Show file tree
Hide file tree
Showing 9 changed files with 158 additions and 111 deletions.
38 changes: 0 additions & 38 deletions .changeset/eighty-papayas-occur.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gorgeous-news-notice.md

This file was deleted.

132 changes: 66 additions & 66 deletions docs/content/5.api/magento-api.api.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @vue-storefront/magento-api

## 3.0.1

### Patch Changes

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

## 3.0.0

### Major Changes
Expand Down
39 changes: 39 additions & 0 deletions docs/content/6.reference/changelogs/vue-storefront-magento-sdk.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
# @vue-storefront/magento-sdk

## 2.3.2

### Patch Changes

- 6672edfb: [CHANGED] `magentoModule` has been deprecated. Use `middlewareModule` from `@vue-storefront/sdk` package instead.

```diff
- 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.

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

## 2.3.1

### Patch Changes
Expand Down
6 changes: 6 additions & 0 deletions packages/api-client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @vue-storefront/magento-api

## 3.0.1

### Patch Changes

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

## 3.0.0

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/api-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue-storefront/magento-api",
"version": "3.0.0",
"version": "3.0.1",
"sideEffects": false,
"homepage": "https://github.com/vuestorefront/magento2",
"bugs": {
Expand Down
39 changes: 39 additions & 0 deletions packages/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
# @vue-storefront/magento-sdk

## 2.3.2

### Patch Changes

- 6672edfb: [CHANGED] `magentoModule` has been deprecated. Use `middlewareModule` from `@vue-storefront/sdk` package instead.

```diff
- 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.

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

## 2.3.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue-storefront/magento-sdk",
"version": "2.3.1",
"version": "2.3.2",
"main": "lib/index.cjs.js",
"module": "lib/index.es.js",
"types": "lib/index.d.ts",
Expand Down

0 comments on commit c52d84d

Please sign in to comment.