@backstage/plugin-signals-backend 0.1.9-next.1 → 0.1.9-next.3
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 +27 -0
- package/README.md +1 -38
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @backstage/plugin-signals-backend
|
|
2
2
|
|
|
3
|
+
## 0.1.9-next.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/backend-plugin-api@0.8.0-next.3
|
|
9
|
+
- @backstage/backend-common@0.23.4-next.3
|
|
10
|
+
- @backstage/config@1.2.0
|
|
11
|
+
- @backstage/types@1.1.1
|
|
12
|
+
- @backstage/plugin-auth-node@0.5.0-next.3
|
|
13
|
+
- @backstage/plugin-events-node@0.3.9-next.3
|
|
14
|
+
- @backstage/plugin-signals-node@0.1.9-next.3
|
|
15
|
+
|
|
16
|
+
## 0.1.9-next.2
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- 93095ee: Make sure node-fetch is version 2.7.0 or greater
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
- @backstage/backend-plugin-api@0.8.0-next.2
|
|
23
|
+
- @backstage/backend-common@0.23.4-next.2
|
|
24
|
+
- @backstage/plugin-auth-node@0.5.0-next.2
|
|
25
|
+
- @backstage/plugin-events-node@0.3.9-next.2
|
|
26
|
+
- @backstage/plugin-signals-node@0.1.9-next.2
|
|
27
|
+
- @backstage/config@1.2.0
|
|
28
|
+
- @backstage/types@1.1.1
|
|
29
|
+
|
|
3
30
|
## 0.1.9-next.1
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -6,41 +6,4 @@ Signals plugin allows backend plugins to publish messages to frontend plugins.
|
|
|
6
6
|
|
|
7
7
|
## Getting started
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Next, add Signals router to your backend in `packages/backend/src/plugins/signals.ts`:
|
|
12
|
-
|
|
13
|
-
```ts
|
|
14
|
-
import { Router } from 'express';
|
|
15
|
-
import { createRouter } from '@backstage/plugin-signals-backend';
|
|
16
|
-
import { PluginEnvironment } from '../types';
|
|
17
|
-
|
|
18
|
-
export default async function createPlugin(
|
|
19
|
-
env: PluginEnvironment,
|
|
20
|
-
): Promise<Router> {
|
|
21
|
-
return await createRouter({
|
|
22
|
-
logger: env.logger,
|
|
23
|
-
eventBroker: env.eventBroker,
|
|
24
|
-
identity: env.identity,
|
|
25
|
-
discovery: env.discovery,
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
Now add the signals to `packages/backend/src/index.ts`:
|
|
31
|
-
|
|
32
|
-
```ts
|
|
33
|
-
// ...
|
|
34
|
-
import signals from './plugins/signals';
|
|
35
|
-
|
|
36
|
-
async function main() {
|
|
37
|
-
// ...
|
|
38
|
-
const signalsEnv = useHotMemoize(module, () => createEnv('signals'));
|
|
39
|
-
|
|
40
|
-
const apiRouter = Router();
|
|
41
|
-
// ...
|
|
42
|
-
apiRouter.use('/signals', await signals(signalsEnv));
|
|
43
|
-
apiRouter.use(notFoundHandler());
|
|
44
|
-
// ...
|
|
45
|
-
}
|
|
46
|
-
```
|
|
9
|
+
To install this signals backend plugin, please refer the [Getting Started](https://backstage.io/docs/notifications) Backstage Notifications and Signals documentation section.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-signals-backend",
|
|
3
|
-
"version": "0.1.9-next.
|
|
3
|
+
"version": "0.1.9-next.3",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "backend-plugin",
|
|
6
6
|
"pluginId": "signals",
|
|
@@ -37,30 +37,30 @@
|
|
|
37
37
|
"test": "backstage-cli package test"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@backstage/backend-common": "^0.23.4-next.
|
|
41
|
-
"@backstage/backend-plugin-api": "^0.
|
|
40
|
+
"@backstage/backend-common": "^0.23.4-next.3",
|
|
41
|
+
"@backstage/backend-plugin-api": "^0.8.0-next.3",
|
|
42
42
|
"@backstage/config": "^1.2.0",
|
|
43
|
-
"@backstage/plugin-auth-node": "^0.
|
|
44
|
-
"@backstage/plugin-events-node": "^0.3.9-next.
|
|
45
|
-
"@backstage/plugin-signals-node": "^0.1.9-next.
|
|
43
|
+
"@backstage/plugin-auth-node": "^0.5.0-next.3",
|
|
44
|
+
"@backstage/plugin-events-node": "^0.3.9-next.3",
|
|
45
|
+
"@backstage/plugin-signals-node": "^0.1.9-next.3",
|
|
46
46
|
"@backstage/types": "^1.1.1",
|
|
47
47
|
"@types/express": "*",
|
|
48
48
|
"express": "^4.17.1",
|
|
49
49
|
"express-promise-router": "^4.1.0",
|
|
50
50
|
"http-proxy-middleware": "^2.0.0",
|
|
51
|
-
"node-fetch": "^2.
|
|
51
|
+
"node-fetch": "^2.7.0",
|
|
52
52
|
"uuid": "^9.0.0",
|
|
53
53
|
"winston": "^3.2.1",
|
|
54
54
|
"ws": "^8.17.0",
|
|
55
55
|
"yn": "^4.0.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@backstage/backend-defaults": "^0.4.2-next.
|
|
59
|
-
"@backstage/backend-test-utils": "^0.4.5-next.
|
|
60
|
-
"@backstage/cli": "^0.27.0-next.
|
|
61
|
-
"@backstage/plugin-auth-backend": "^0.22.10-next.
|
|
62
|
-
"@backstage/plugin-auth-backend-module-guest-provider": "^0.1.9-next.
|
|
63
|
-
"@backstage/plugin-events-backend": "^0.3.10-next.
|
|
58
|
+
"@backstage/backend-defaults": "^0.4.2-next.3",
|
|
59
|
+
"@backstage/backend-test-utils": "^0.4.5-next.3",
|
|
60
|
+
"@backstage/cli": "^0.27.0-next.4",
|
|
61
|
+
"@backstage/plugin-auth-backend": "^0.22.10-next.3",
|
|
62
|
+
"@backstage/plugin-auth-backend-module-guest-provider": "^0.1.9-next.3",
|
|
63
|
+
"@backstage/plugin-events-backend": "^0.3.10-next.3",
|
|
64
64
|
"@types/supertest": "^2.0.8",
|
|
65
65
|
"@types/ws": "^8.5.10",
|
|
66
66
|
"msw": "^1.0.0",
|