Skip to content

Commit

Permalink
ci: release (#7145)
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 6, 2024
1 parent 0c1a862 commit df2aa92
Show file tree
Hide file tree
Showing 5 changed files with 124 additions and 34 deletions.
26 changes: 0 additions & 26 deletions .changeset/violet-fishes-eat.md

This file was deleted.

76 changes: 69 additions & 7 deletions docs/content/4.sdk/4.api/sdk.api.json
Original file line number Diff line number Diff line change
Expand Up @@ -2330,6 +2330,10 @@
"text": "Options",
"canonicalReference": "@vue-storefront/sdk!Options:type"
},
{
"kind": "Content",
"text": "<Endpoints>"
},
{
"kind": "Content",
"text": ") => "
Expand Down Expand Up @@ -2359,8 +2363,8 @@
],
"fileUrlPath": "src/modules/middlewareModule/module.ts",
"returnTypeTokenRange": {
"startIndex": 5,
"endIndex": 10
"startIndex": 6,
"endIndex": 11
},
"releaseTag": "Public",
"overloadIndex": 1,
Expand All @@ -2369,7 +2373,7 @@
"parameterName": "options",
"parameterTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
"endIndex": 5
},
"isOptional": false
}
Expand Down Expand Up @@ -2625,7 +2629,25 @@
"excerptTokens": [
{
"kind": "Content",
"text": "export type Options = "
"text": "export type Options<Endpoints extends "
},
{
"kind": "Reference",
"text": "EndpointsConstraint",
"canonicalReference": "@vue-storefront/sdk!EndpointsConstraint:type"
},
{
"kind": "Content",
"text": " = "
},
{
"kind": "Reference",
"text": "EndpointsConstraint",
"canonicalReference": "@vue-storefront/sdk!EndpointsConstraint:type"
},
{
"kind": "Content",
"text": "> = "
},
{
"kind": "Content",
Expand All @@ -2647,7 +2669,34 @@
},
{
"kind": "Content",
"text": ";\n errorHandler?: "
"text": ";\n methodsRequestConfig?: "
},
{
"kind": "Reference",
"text": "Partial",
"canonicalReference": "!Partial:type"
},
{
"kind": "Content",
"text": "<"
},
{
"kind": "Reference",
"text": "Record",
"canonicalReference": "!Record:type"
},
{
"kind": "Content",
"text": "<keyof Endpoints, "
},
{
"kind": "Reference",
"text": "RequestConfig",
"canonicalReference": "@vue-storefront/sdk!RequestConfig:type"
},
{
"kind": "Content",
"text": ">>;\n errorHandler?: "
},
{
"kind": "Reference",
Expand All @@ -2666,9 +2715,22 @@
"fileUrlPath": "src/modules/middlewareModule/types.ts",
"releaseTag": "Public",
"name": "Options",
"typeParameters": [
{
"typeParameterName": "Endpoints",
"constraintTokenRange": {
"startIndex": 1,
"endIndex": 2
},
"defaultTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
}
}
],
"typeTokenRange": {
"startIndex": 1,
"endIndex": 8
"startIndex": 5,
"endIndex": 18
}
},
{
Expand Down
27 changes: 27 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,32 @@
# Change log

## 1.5.0

### Minor Changes

- **[ADDED]** a way to specify the default request configuration for each method.

Example: Set the `getProducts` method to be a `GET` request by default and use custom headers.

```typescript
import { initSDK, buildModule, middlewareModule } from "@vue-storefront/sdk";
import { Endpoints } from "@vsf-enterprise/sapcc-api";

const sdk = initSDK({
commerce: buildModule(middlewareModule<Endpoints>, {
apiUrl: "http://localhost:8181/commerce",
methodsRequestConfig: {
getProduct: {
method: "GET",
headers: {
"X-Header-Name": "Header-Value",
},
},
},
}),
});
```

## 1.4.4

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

## 1.5.0

### Minor Changes

- **[ADDED]** a way to specify the default request configuration for each method.

Example: Set the `getProducts` method to be a `GET` request by default and use custom headers.

```typescript
import { initSDK, buildModule, middlewareModule } from "@vue-storefront/sdk";
import { Endpoints } from "@vsf-enterprise/sapcc-api";

const sdk = initSDK({
commerce: buildModule(middlewareModule<Endpoints>, {
apiUrl: "http://localhost:8181/commerce",
methodsRequestConfig: {
getProduct: {
method: "GET",
headers: {
"X-Header-Name": "Header-Value",
},
},
},
}),
});
```

## 1.4.4

### 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,7 +1,7 @@
{
"name": "@vue-storefront/sdk",
"license": "MIT",
"version": "1.4.4",
"version": "1.5.0",
"main": "lib/index.cjs.js",
"module": "lib/index.es.js",
"types": "lib/index.d.ts",
Expand Down

0 comments on commit df2aa92

Please sign in to comment.