Skip to content

Commit dcbad44

Browse files
ci: release (#7060)
* ci: release * chore: add docs --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Wojciech Sikora <[email protected]>
1 parent 712ba85 commit dcbad44

File tree

8 files changed

+93
-16
lines changed

8 files changed

+93
-16
lines changed

.changeset/thick-cougars-accept.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

docs/content/3.middleware/3.api/middleware.api.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6151,6 +6151,54 @@
61516151
"endIndex": 6
61526152
}
61536153
},
6154+
{
6155+
"kind": "TypeAlias",
6156+
"canonicalReference": "@vue-storefront/middleware!WithoutContext:type",
6157+
"docComment": "/**\n * Removes the `context` from the methods of an API Client. `context` is an internal parameter added by the Server Middleware to the methods of the API Client. Removing it allows to define the contract of the endpoints exposed by the Server Middleware.\n *\n * @example\n * ```ts\n * type ApiClientMethods = {\n * getProduct: (context: any, id: string) => Promise<Product>;\n * }\n *\n * type Endpoints = WithoutContext<ApiClientMethods>;\n * // { getProduct: (id: string) => Promise<Product> }\n * ```\n *\n */\n",
6158+
"excerptTokens": [
6159+
{
6160+
"kind": "Content",
6161+
"text": "export type WithoutContext<Methods extends "
6162+
},
6163+
{
6164+
"kind": "Reference",
6165+
"text": "ApiMethods",
6166+
"canonicalReference": "@vue-storefront/middleware!ApiMethods:type"
6167+
},
6168+
{
6169+
"kind": "Content",
6170+
"text": "> = "
6171+
},
6172+
{
6173+
"kind": "Content",
6174+
"text": "{\n [T in keyof Methods]: Methods[T] extends (context: any, ...arguments_: infer P) => infer R ? (...arguments_: P) => R : never;\n}"
6175+
},
6176+
{
6177+
"kind": "Content",
6178+
"text": ";"
6179+
}
6180+
],
6181+
"fileUrlPath": "src/types/common.ts",
6182+
"releaseTag": "Public",
6183+
"name": "WithoutContext",
6184+
"typeParameters": [
6185+
{
6186+
"typeParameterName": "Methods",
6187+
"constraintTokenRange": {
6188+
"startIndex": 1,
6189+
"endIndex": 2
6190+
},
6191+
"defaultTypeTokenRange": {
6192+
"startIndex": 0,
6193+
"endIndex": 0
6194+
}
6195+
}
6196+
],
6197+
"typeTokenRange": {
6198+
"startIndex": 3,
6199+
"endIndex": 4
6200+
}
6201+
},
61546202
{
61556203
"kind": "TypeAlias",
61566204
"canonicalReference": "@vue-storefront/middleware!WithRequired:type",

docs/content/3.middleware/4.reference/change-log.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Change log
22

3+
## 3.9.0
4+
5+
### Minor Changes
6+
7+
- 712ba85a6: [ADDED] Adds WithoutContext type helper.
8+
9+
```ts
10+
type ApiClientMethods = {
11+
getProduct: (context: any, id: string) => Promise<Product>;
12+
};
13+
14+
type Endpoints = WithoutContext<ApiClientMethods>;
15+
```
16+
317
## 3.8.1
418

519
### Patch Changes

docs/content/3.middleware/4.reference/multistore/change-log.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change log
22

3+
## 3.0.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [712ba85a6]
8+
- @vue-storefront/middleware@3.9.0
9+
310
## 2.0.1
411

512
### Patch Changes

packages/middleware/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Change log
22

3+
## 3.9.0
4+
5+
### Minor Changes
6+
7+
- 712ba85a6: [ADDED] Adds WithoutContext type helper.
8+
9+
```ts
10+
type ApiClientMethods = {
11+
getProduct: (context: any, id: string) => Promise<Product>;
12+
};
13+
14+
type Endpoints = WithoutContext<ApiClientMethods>;
15+
```
16+
317
## 3.8.1
418

519
### Patch Changes

packages/middleware/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue-storefront/middleware",
3-
"version": "3.8.1",
3+
"version": "3.9.0",
44
"main": "lib/index.cjs.js",
55
"module": "lib/index.es.js",
66
"types": "lib/index.d.ts",

packages/multistore/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change log
22

3+
## 3.0.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [712ba85a6]
8+
- @vue-storefront/middleware@3.9.0
9+
310
## 2.0.1
411

512
### Patch Changes

packages/multistore/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue-storefront/multistore",
3-
"version": "2.0.1",
3+
"version": "3.0.0",
44
"author": "Fifciu",
55
"license": "MIT",
66
"main": "lib/index.cjs.js",
@@ -20,7 +20,7 @@
2020
"prepublishOnly": "yarn build"
2121
},
2222
"peerDependencies": {
23-
"@vue-storefront/middleware": "^3"
23+
"@vue-storefront/middleware": "^3.9.0"
2424
},
2525
"publishConfig": {
2626
"access": "public"

0 commit comments

Comments
 (0)