Skip to content

Commit

Permalink
ci: release
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 16, 2024
1 parent a806428 commit a7a6f2c
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 32 deletions.
28 changes: 0 additions & 28 deletions .changeset/gentle-lies-provide.md

This file was deleted.

43 changes: 40 additions & 3 deletions docs/content/3.middleware/3.api/middleware.api.json
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,14 @@
"kind": "Content",
"text": "any"
},
{
"kind": "Content",
"text": ", CONFIG = "
},
{
"kind": "Content",
"text": "any"
},
{
"kind": "Content",
"text": "> "
Expand Down Expand Up @@ -730,6 +738,17 @@
"startIndex": 3,
"endIndex": 4
}
},
{
"typeParameterName": "CONFIG",
"constraintTokenRange": {
"startIndex": 0,
"endIndex": 0
},
"defaultTypeTokenRange": {
"startIndex": 5,
"endIndex": 6
}
}
],
"name": "ApiClientExtension",
Expand All @@ -751,7 +770,25 @@
},
{
"kind": "Content",
"text": "<API, CONTEXT>"
"text": "<API, CONTEXT> | "
},
{
"kind": "Reference",
"text": "ApiMethodsFactory",
"canonicalReference": "@vue-storefront/middleware!ApiMethodsFactory:type"
},
{
"kind": "Content",
"text": "<"
},
{
"kind": "Reference",
"text": "ExtendApiMethod",
"canonicalReference": "@vue-storefront/middleware!ExtendApiMethod:type"
},
{
"kind": "Content",
"text": "<API, CONTEXT>, CONFIG>"
},
{
"kind": "Content",
Expand All @@ -764,7 +801,7 @@
"name": "extendApiMethods",
"propertyTypeTokenRange": {
"startIndex": 1,
"endIndex": 3
"endIndex": 7
}
},
{
Expand Down Expand Up @@ -2214,7 +2251,7 @@
},
{
"kind": "Content",
"text": "(configuration: CONFIG) => API"
"text": "(configuration: {\n config: CONFIG;\n}) => API"
},
{
"kind": "Content",
Expand Down
29 changes: 29 additions & 0 deletions docs/content/3.middleware/4.reference/change-log.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# Change log

## 4.3.0

### Minor Changes

- **[ADDED]** Added factory function for the extension API. Previously the extension API was an object with a set of methods. Now it can be created using a factory function the same way as the base API.

Previously only object was allowed:

```ts
export const extension: ApiClientExtension = {
name: "extension",
extendApiMethods: {
...extendedMethods, //methods as an object
},
};
```

Now you can either use an object or a factory function:

```ts
export const extension: ApiClientExtension = {
name: "extension",
// methods as a factory function with injected config object
extendApiMethods: ({ config }) => {
return createMyMethods(config);
},
};
```

## 4.2.0

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

## 4.3.0

### Minor Changes

- **[ADDED]** Added factory function for the extension API. Previously the extension API was an object with a set of methods. Now it can be created using a factory function the same way as the base API.

Previously only object was allowed:

```ts
export const extension: ApiClientExtension = {
name: "extension",
extendApiMethods: {
...extendedMethods, //methods as an object
},
};
```

Now you can either use an object or a factory function:

```ts
export const extension: ApiClientExtension = {
name: "extension",
// methods as a factory function with injected config object
extendApiMethods: ({ config }) => {
return createMyMethods(config);
},
};
```

## 4.2.0

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

0 comments on commit a7a6f2c

Please sign in to comment.