@backstage/plugin-events-node 0.4.23 → 0.4.24-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/config.schema.json +20 -0
- package/package.json +8 -8
- package/config.d.ts +0 -34
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"events": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"useEventBus": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"enum": [
|
|
11
|
+
"never",
|
|
12
|
+
"always",
|
|
13
|
+
"auto"
|
|
14
|
+
],
|
|
15
|
+
"description": "Whether to use the event bus API in the events plugin backend to distribute events across multiple instances when publishing and subscribing to events.\n\nThe default is 'auto', which means means that the event bus API will be used if it's available, but will be disabled if the events backend returns a 404.\n\nIf set to 'never', the events service will only ever publish events locally to the same instance, while if set to 'always', the event bus API will never be disabled, even if the events backend returns a 404."
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-events-node",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.24-next.0",
|
|
4
4
|
"description": "The plugin-events-node module for @backstage/plugin-events-backend",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "node-library",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"files": [
|
|
50
50
|
"dist",
|
|
51
|
-
"config.
|
|
51
|
+
"config.schema.json"
|
|
52
52
|
],
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "backstage-cli package build",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"test": "backstage-cli package test"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@backstage/backend-plugin-api": "
|
|
64
|
-
"@backstage/errors": "
|
|
65
|
-
"@backstage/types": "
|
|
63
|
+
"@backstage/backend-plugin-api": "1.9.3-next.0",
|
|
64
|
+
"@backstage/errors": "1.3.1",
|
|
65
|
+
"@backstage/types": "1.2.2",
|
|
66
66
|
"@types/content-type": "^1.1.8",
|
|
67
67
|
"@types/express": "^4.17.6",
|
|
68
68
|
"content-type": "^1.0.5",
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
"uri-template": "^2.0.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@backstage/backend-test-utils": "
|
|
75
|
-
"@backstage/cli": "
|
|
74
|
+
"@backstage/backend-test-utils": "1.11.5-next.0",
|
|
75
|
+
"@backstage/cli": "0.36.4-next.0",
|
|
76
76
|
"msw": "^2.0.0"
|
|
77
77
|
},
|
|
78
|
-
"configSchema": "config.
|
|
78
|
+
"configSchema": "config.schema.json"
|
|
79
79
|
}
|
package/config.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2024 The Backstage Authors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
export interface Config {
|
|
18
|
-
events?: {
|
|
19
|
-
/**
|
|
20
|
-
* Whether to use the event bus API in the events plugin backend to
|
|
21
|
-
* distribute events across multiple instances when publishing and
|
|
22
|
-
* subscribing to events.
|
|
23
|
-
*
|
|
24
|
-
* The default is 'auto', which means means that the event bus API will be
|
|
25
|
-
* used if it's available, but will be disabled if the events backend
|
|
26
|
-
* returns a 404.
|
|
27
|
-
*
|
|
28
|
-
* If set to 'never', the events service will only ever publish events
|
|
29
|
-
* locally to the same instance, while if set to 'always', the event bus API
|
|
30
|
-
* will never be disabled, even if the events backend returns a 404.
|
|
31
|
-
*/
|
|
32
|
-
useEventBus?: 'never' | 'always' | 'auto';
|
|
33
|
-
};
|
|
34
|
-
}
|