Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feat/update-middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszherba committed Nov 8, 2024
2 parents 9f5ddca + da80e49 commit f52dd4c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 40 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
# @vue-storefront/magento-api

## 6.0.0-rc.1

### Major Changes

- 3de1337c: update middleware

## 6.0.0-rc.0

### Major Changes

- 5c9607c8: update middleware to 5.1.0-rc
## 5.0.1

### Patch Changes

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

## 4.0.0-rc.0

### Major Changes

- 3de1337c: update middleware

## 3.0.1

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

## 6.0.0-rc.1

### Major Changes

- 3de1337c: update middleware

## 6.0.0-rc.0

### Major Changes

- 5c9607c8: update middleware to 5.1.0
## 5.0.1

### Patch Changes

Expand Down
15 changes: 3 additions & 12 deletions packages/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# @vue-storefront/magento-sdk

## 4.0.0-rc.0

### Major Changes

- 3de1337c: update middleware

## 3.0.1

### Patch Changes
Expand Down Expand Up @@ -71,15 +65,12 @@
- [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.

```ts
import { initSDK, buildModule } from "@vue-storefront/sdk";
import {
magentoModule,
MagentoModuleType,
} from "@vue-storefront/magento2-sdk";
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",
apiUrl: 'http://localhost:8181/magento',
}),
};

Expand Down

0 comments on commit f52dd4c

Please sign in to comment.