Skip to content

Commit

Permalink
ci: release (#7207)
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 Jul 2, 2024
1 parent 9a9cf4f commit c5068dd
Show file tree
Hide file tree
Showing 5 changed files with 133 additions and 35 deletions.
31 changes: 0 additions & 31 deletions .changeset/brave-ligers-do.md

This file was deleted.

71 changes: 68 additions & 3 deletions docs/content/3.middleware/3.api/middleware.api.json
Original file line number Diff line number Diff line change
Expand Up @@ -2940,6 +2940,14 @@
"kind": "Content",
"text": "any"
},
{
"kind": "Content",
"text": ", EXTENDED_API = "
},
{
"kind": "Content",
"text": "any"
},
{
"kind": "Content",
"text": "> "
Expand Down Expand Up @@ -2980,6 +2988,17 @@
"startIndex": 5,
"endIndex": 6
}
},
{
"typeParameterName": "EXTENDED_API",
"constraintTokenRange": {
"startIndex": 0,
"endIndex": 0
},
"defaultTypeTokenRange": {
"startIndex": 7,
"endIndex": 8
}
}
],
"name": "Context",
Expand Down Expand Up @@ -3009,7 +3028,7 @@
},
{
"kind": "Content",
"text": "<CLIENT, CONFIG, API> | any"
"text": "<CLIENT, CONFIG, API, EXTENDED_API> | any"
},
{
"kind": "Content",
Expand Down Expand Up @@ -4739,6 +4758,14 @@
"kind": "Content",
"text": "any"
},
{
"kind": "Content",
"text": ", EXTENDED_API = "
},
{
"kind": "Content",
"text": "any"
},
{
"kind": "Content",
"text": "> extends "
Expand Down Expand Up @@ -4788,6 +4815,17 @@
"startIndex": 5,
"endIndex": 6
}
},
{
"typeParameterName": "EXTENDED_API",
"constraintTokenRange": {
"startIndex": 0,
"endIndex": 0
},
"defaultTypeTokenRange": {
"startIndex": 7,
"endIndex": 8
}
}
],
"name": "IntegrationContext",
Expand Down Expand Up @@ -4917,12 +4955,39 @@
"startIndex": 1,
"endIndex": 2
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@vue-storefront/middleware!IntegrationContext#extendedApi:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "extendedApi: "
},
{
"kind": "Content",
"text": "EXTENDED_API"
},
{
"kind": "Content",
"text": ";"
}
],
"isReadonly": false,
"isOptional": false,
"releaseTag": "Public",
"name": "extendedApi",
"propertyTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
}
],
"extendsTokenRanges": [
{
"startIndex": 7,
"endIndex": 8
"startIndex": 9,
"endIndex": 10
}
]
},
Expand Down
32 changes: 32 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,37 @@
# Change log

## 4.2.0

### Minor Changes

- **[ADDED]** Provided easy access to methods added by middleware extensions via the `context.extendedApi` property.

```ts
const extensionA = {
name: 'extensionA',
extendApiMethods: {
methodA: async () => { ... }
}
}

const extensionB = {
name: 'extensionB',
extendApiMethods: {
methodB: async () => { ... }
}
}

const extensionC = {
name: 'extensionC',
extendApiMethods: {
methodC: async (context) => {
context.extendedApi.methodA();
context.extendedApi.extensionB.methodB();
}
}
}
```

## 4.1.0

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

## 4.2.0

### Minor Changes

- **[ADDED]** Provided easy access to methods added by middleware extensions via the `context.extendedApi` property.

```ts
const extensionA = {
name: 'extensionA',
extendApiMethods: {
methodA: async () => { ... }
}
}

const extensionB = {
name: 'extensionB',
extendApiMethods: {
methodB: async () => { ... }
}
}

const extensionC = {
name: 'extensionC',
extendApiMethods: {
methodC: async (context) => {
context.extendedApi.methodA();
context.extendedApi.extensionB.methodB();
}
}
}
```

## 4.1.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.1.0",
"version": "4.2.0",
"main": "lib/index.cjs.js",
"module": "lib/index.es.js",
"types": "lib/index.d.ts",
Expand Down

0 comments on commit c5068dd

Please sign in to comment.