Skip to content

Commit

Permalink
ci: release (#1522)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Apr 22, 2024
1 parent 6dc9058 commit 9ce2348
Show file tree
Hide file tree
Showing 10 changed files with 167 additions and 117 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.

5 changes: 0 additions & 5 deletions .changeset/popular-bats-suffer.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.

10 changes: 10 additions & 0 deletions docs/content/6.reference/changelogs/vue-storefront-magento-api.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @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](https://github.com/vuestorefront/magento2/pull/1521/files)

### 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
10 changes: 10 additions & 0 deletions packages/api-client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @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](https://github.com/vuestorefront/magento2/pull/1521/files)

### 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.1.0",
"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
4 changes: 2 additions & 2 deletions 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 All @@ -26,7 +26,7 @@
"@vue-storefront/magento-types": "^1.2.0"
},
"devDependencies": {
"@vue-storefront/magento-api": "^3.0.0",
"@vue-storefront/magento-api": "^3.1.0",
"nock": "^13.2.9",
"@types/node": "^12.12.14"
},
Expand Down

0 comments on commit 9ce2348

Please sign in to comment.