Skip to content

Commit

Permalink
ci: release (#7151)
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 May 13, 2024
1 parent a815fd3 commit f3d7272
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 30 deletions.
5 changes: 0 additions & 5 deletions .changeset/flat-hotels-study.md

This file was deleted.

23 changes: 0 additions & 23 deletions .changeset/nasty-guests-run.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/content/4.sdk/4.api/sdk.api.json
Original file line number Diff line number Diff line change
Expand Up @@ -2705,7 +2705,7 @@
},
{
"kind": "Content",
"text": ";\n}"
"text": ";\n cdnCacheBustingId: string;\n}"
},
{
"kind": "Content",
Expand Down
28 changes: 28 additions & 0 deletions docs/content/4.sdk/5.reference/change-log.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Change log

## 2.0.0

### Major Changes

- **[ADDED]** CDN support for the `middlewareModule`.
Now, the module's configuration includes `cdnCacheBustingId` property, which allows you to set a unique identifier for the CDN cache busting.
**The property is obligatory and must be a string.**

```diff [sdk.config.ts]

export const { getSdk } = createSdk(
options,
({ buildModule, middlewareModule, middlewareUrl, getRequestHeaders }) => ({
example: buildModule(middlewareModule<Endpoints>, {
apiUrl: `${middlewareUrl}/test_integration`,
+ cdnCacheBustingId: process.env.CDN_CACHE_BUSTING_ID,
defaultRequestConfig: {
headers: getRequestHeaders(),
},
}),
})
);
```

### Patch Changes

- **[FIXED]** support for `GET` requests in default HTTP client, which was throwing an error "SDKError: Request with GET/HEAD method cannot have body". Now, the client can handle `GET` requests properly.

## 1.5.0

### Minor Changes
Expand Down
28 changes: 28 additions & 0 deletions packages/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Change log

## 2.0.0

### Major Changes

- **[ADDED]** CDN support for the `middlewareModule`.
Now, the module's configuration includes `cdnCacheBustingId` property, which allows you to set a unique identifier for the CDN cache busting.
**The property is obligatory and must be a string.**

```diff [sdk.config.ts]

export const { getSdk } = createSdk(
options,
({ buildModule, middlewareModule, middlewareUrl, getRequestHeaders }) => ({
example: buildModule(middlewareModule<Endpoints>, {
apiUrl: `${middlewareUrl}/test_integration`,
+ cdnCacheBustingId: process.env.CDN_CACHE_BUSTING_ID,
defaultRequestConfig: {
headers: getRequestHeaders(),
},
}),
})
);
```

### Patch Changes

- **[FIXED]** support for `GET` requests in default HTTP client, which was throwing an error "SDKError: Request with GET/HEAD method cannot have body". Now, the client can handle `GET` requests properly.

## 1.5.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@vue-storefront/sdk",
"license": "MIT",
"version": "1.5.0",
"version": "2.0.0",
"main": "lib/index.cjs.js",
"module": "lib/index.es.js",
"types": "lib/index.d.ts",
Expand Down

0 comments on commit f3d7272

Please sign in to comment.