@backstage/plugin-events-backend-test-utils 0.1.22 → 0.1.23-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 +33 -6
- package/README.md +4 -3
- package/dist/index.cjs.js +54 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +24 -5
- package/package.json +17 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,45 @@
|
|
|
1
1
|
# @backstage/plugin-events-backend-test-utils
|
|
2
2
|
|
|
3
|
-
## 0.1.
|
|
3
|
+
## 0.1.23-next.0
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
- @backstage/plugin-events-node@0.2.21
|
|
7
|
+
- 56969b6: Add new `EventsService` as well as `eventsServiceRef` for the new backend system.
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
**Summary:**
|
|
11
10
|
|
|
12
|
-
|
|
11
|
+
- new:
|
|
12
|
+
`EventsService`, `eventsServiceRef`, `TestEventsService`
|
|
13
|
+
- deprecated:
|
|
14
|
+
`EventBroker`, `EventPublisher`, `EventSubscriber`, `DefaultEventBroker`, `EventsBackend`,
|
|
15
|
+
most parts of `EventsExtensionPoint` (alpha),
|
|
16
|
+
`TestEventBroker`, `TestEventPublisher`, `TestEventSubscriber`
|
|
17
|
+
|
|
18
|
+
Add the `eventsServiceRef` as dependency to your backend plugins
|
|
19
|
+
or backend plugin modules.
|
|
20
|
+
|
|
21
|
+
**Details:**
|
|
22
|
+
|
|
23
|
+
The previous implementation using the `EventsExtensionPoint` was added in the early stages
|
|
24
|
+
of the new backend system and does not respect the plugin isolation.
|
|
25
|
+
This made it not compatible anymore with the new backend system.
|
|
26
|
+
|
|
27
|
+
Additionally, the previous interfaces had some room for simplification,
|
|
28
|
+
supporting less exposure of internal concerns as well.
|
|
29
|
+
|
|
30
|
+
Hereby, this change adds a new `EventsService` interface as replacement for the now deprecated `EventBroker`.
|
|
31
|
+
The new interface does not require any `EventPublisher` or `EventSubscriber` interfaces anymore.
|
|
32
|
+
Instead, it is expected that the `EventsService` gets passed into publishers and subscribers,
|
|
33
|
+
and used internally. There is no need to expose anything of that at their own interfaces.
|
|
34
|
+
|
|
35
|
+
Most parts of `EventsExtensionPoint` (alpha) are deprecated as well and were not usable
|
|
36
|
+
(by other plugins or their modules) anyway.
|
|
37
|
+
|
|
38
|
+
The `DefaultEventBroker` implementation is deprecated and wraps the new `DefaultEventsService` implementation.
|
|
39
|
+
Optionally, an instance can be passed as argument to allow mixed setups to operate alongside.
|
|
13
40
|
|
|
14
41
|
- Updated dependencies
|
|
15
|
-
- @backstage/plugin-events-node@0.
|
|
42
|
+
- @backstage/plugin-events-node@0.3.0-next.0
|
|
16
43
|
|
|
17
44
|
## 0.1.20
|
|
18
45
|
|
package/README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
# plugin-events-backend-test-utils
|
|
1
|
+
# `@backstage/plugin-events-backend-test-utils`
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
This is a package that can be used as `devDependency`
|
|
4
|
+
and provides a test implementation for the `EventsService`
|
|
5
|
+
by [`events-node` package](../events-node/README.md): `TestEventsService`.
|
package/dist/index.cjs.js
CHANGED
|
@@ -21,34 +21,34 @@ class TestEventBroker {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
var __accessCheck = (obj, member, msg) => {
|
|
24
|
+
var __accessCheck$1 = (obj, member, msg) => {
|
|
25
25
|
if (!member.has(obj))
|
|
26
26
|
throw TypeError("Cannot " + msg);
|
|
27
27
|
};
|
|
28
|
-
var __privateGet = (obj, member, getter) => {
|
|
29
|
-
__accessCheck(obj, member, "read from private field");
|
|
28
|
+
var __privateGet$1 = (obj, member, getter) => {
|
|
29
|
+
__accessCheck$1(obj, member, "read from private field");
|
|
30
30
|
return getter ? getter.call(obj) : member.get(obj);
|
|
31
31
|
};
|
|
32
|
-
var __privateAdd = (obj, member, value) => {
|
|
32
|
+
var __privateAdd$1 = (obj, member, value) => {
|
|
33
33
|
if (member.has(obj))
|
|
34
34
|
throw TypeError("Cannot add the same private member more than once");
|
|
35
35
|
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
36
36
|
};
|
|
37
|
-
var __privateSet = (obj, member, value, setter) => {
|
|
38
|
-
__accessCheck(obj, member, "write to private field");
|
|
37
|
+
var __privateSet$1 = (obj, member, value, setter) => {
|
|
38
|
+
__accessCheck$1(obj, member, "write to private field");
|
|
39
39
|
setter ? setter.call(obj, value) : member.set(obj, value);
|
|
40
40
|
return value;
|
|
41
41
|
};
|
|
42
42
|
var _eventBroker;
|
|
43
43
|
class TestEventPublisher {
|
|
44
44
|
constructor() {
|
|
45
|
-
__privateAdd(this, _eventBroker, void 0);
|
|
45
|
+
__privateAdd$1(this, _eventBroker, void 0);
|
|
46
46
|
}
|
|
47
47
|
async setEventBroker(eventBroker) {
|
|
48
|
-
__privateSet(this, _eventBroker, eventBroker);
|
|
48
|
+
__privateSet$1(this, _eventBroker, eventBroker);
|
|
49
49
|
}
|
|
50
50
|
get eventBroker() {
|
|
51
|
-
return __privateGet(this, _eventBroker);
|
|
51
|
+
return __privateGet$1(this, _eventBroker);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
_eventBroker = new WeakMap();
|
|
@@ -77,7 +77,52 @@ class TestEventSubscriber {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
var __accessCheck = (obj, member, msg) => {
|
|
81
|
+
if (!member.has(obj))
|
|
82
|
+
throw TypeError("Cannot " + msg);
|
|
83
|
+
};
|
|
84
|
+
var __privateGet = (obj, member, getter) => {
|
|
85
|
+
__accessCheck(obj, member, "read from private field");
|
|
86
|
+
return getter ? getter.call(obj) : member.get(obj);
|
|
87
|
+
};
|
|
88
|
+
var __privateAdd = (obj, member, value) => {
|
|
89
|
+
if (member.has(obj))
|
|
90
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
91
|
+
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
92
|
+
};
|
|
93
|
+
var __privateSet = (obj, member, value, setter) => {
|
|
94
|
+
__accessCheck(obj, member, "write to private field");
|
|
95
|
+
setter ? setter.call(obj, value) : member.set(obj, value);
|
|
96
|
+
return value;
|
|
97
|
+
};
|
|
98
|
+
var _published, _subscribed;
|
|
99
|
+
class TestEventsService {
|
|
100
|
+
constructor() {
|
|
101
|
+
__privateAdd(this, _published, []);
|
|
102
|
+
__privateAdd(this, _subscribed, []);
|
|
103
|
+
}
|
|
104
|
+
async publish(params) {
|
|
105
|
+
__privateGet(this, _published).push(params);
|
|
106
|
+
}
|
|
107
|
+
async subscribe(options) {
|
|
108
|
+
__privateGet(this, _subscribed).push(options);
|
|
109
|
+
}
|
|
110
|
+
get published() {
|
|
111
|
+
return __privateGet(this, _published);
|
|
112
|
+
}
|
|
113
|
+
get subscribed() {
|
|
114
|
+
return __privateGet(this, _subscribed);
|
|
115
|
+
}
|
|
116
|
+
reset() {
|
|
117
|
+
__privateSet(this, _published, []);
|
|
118
|
+
__privateSet(this, _subscribed, []);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
_published = new WeakMap();
|
|
122
|
+
_subscribed = new WeakMap();
|
|
123
|
+
|
|
80
124
|
exports.TestEventBroker = TestEventBroker;
|
|
81
125
|
exports.TestEventPublisher = TestEventPublisher;
|
|
82
126
|
exports.TestEventSubscriber = TestEventSubscriber;
|
|
127
|
+
exports.TestEventsService = TestEventsService;
|
|
83
128
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../src/testUtils/TestEventBroker.ts","../src/testUtils/TestEventPublisher.ts","../src/testUtils/TestEventSubscriber.ts"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n EventBroker,\n EventParams,\n EventSubscriber,\n} from '@backstage/plugin-events-node';\n\n
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../src/testUtils/TestEventBroker.ts","../src/testUtils/TestEventPublisher.ts","../src/testUtils/TestEventSubscriber.ts","../src/testUtils/TestEventsService.ts"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n EventBroker,\n EventParams,\n EventSubscriber,\n} from '@backstage/plugin-events-node';\n\n/**\n * @public\n * @deprecated use `TestEventsService` instead\n */\nexport class TestEventBroker implements EventBroker {\n readonly published: EventParams[] = [];\n readonly subscribed: EventSubscriber[] = [];\n\n async publish(params: EventParams): Promise<void> {\n this.published.push(params);\n }\n\n subscribe(\n ...subscribers: Array<EventSubscriber | Array<EventSubscriber>>\n ): void {\n this.subscribed.push(...subscribers.flat());\n }\n}\n","/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { EventBroker, EventPublisher } from '@backstage/plugin-events-node';\n\n/**\n * @public\n * @deprecated `EventPublisher` was replaced by `EventsService.publish`\n */\nexport class TestEventPublisher implements EventPublisher {\n #eventBroker?: EventBroker;\n\n async setEventBroker(eventBroker: EventBroker): Promise<void> {\n this.#eventBroker = eventBroker;\n }\n\n get eventBroker() {\n return this.#eventBroker;\n }\n}\n","/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { EventParams, EventSubscriber } from '@backstage/plugin-events-node';\n\n/**\n * @public\n * @deprecated `EventSubscriber` was replaced by `EventsService.subscribe`.\n */\nexport class TestEventSubscriber implements EventSubscriber {\n readonly name: string;\n readonly topics: string[];\n\n readonly receivedEvents: Record<string, EventParams[]> = {};\n\n constructor(name: string, topics: string[]) {\n this.name = name;\n this.topics = topics;\n }\n\n supportsEventTopics(): string[] {\n return this.topics;\n }\n\n async onEvent(params: EventParams): Promise<void> {\n this.receivedEvents[params.topic] = this.receivedEvents[params.topic] ?? [];\n this.receivedEvents[params.topic].push(params);\n }\n}\n","/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n EventParams,\n EventsService,\n EventsServiceSubscribeOptions,\n} from '@backstage/plugin-events-node';\n\n/** @public */\nexport class TestEventsService implements EventsService {\n #published: EventParams[] = [];\n #subscribed: EventsServiceSubscribeOptions[] = [];\n\n async publish(params: EventParams): Promise<void> {\n this.#published.push(params);\n }\n\n async subscribe(options: EventsServiceSubscribeOptions): Promise<void> {\n this.#subscribed.push(options);\n }\n\n get published(): EventParams[] {\n return this.#published;\n }\n\n get subscribed(): EventsServiceSubscribeOptions[] {\n return this.#subscribed;\n }\n\n reset(): void {\n this.#published = [];\n this.#subscribed = [];\n }\n}\n"],"names":["__publicField","__privateAdd","__privateSet","__privateGet"],"mappings":"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"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { EventBroker, EventParams, EventSubscriber, EventPublisher } from '@backstage/plugin-events-node';
|
|
1
|
+
import { EventBroker, EventParams, EventSubscriber, EventPublisher, EventsService, EventsServiceSubscribeOptions } from '@backstage/plugin-events-node';
|
|
2
2
|
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
* @deprecated use `TestEventsService` instead
|
|
6
|
+
*/
|
|
4
7
|
declare class TestEventBroker implements EventBroker {
|
|
5
8
|
readonly published: EventParams[];
|
|
6
9
|
readonly subscribed: EventSubscriber[];
|
|
@@ -8,14 +11,20 @@ declare class TestEventBroker implements EventBroker {
|
|
|
8
11
|
subscribe(...subscribers: Array<EventSubscriber | Array<EventSubscriber>>): void;
|
|
9
12
|
}
|
|
10
13
|
|
|
11
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
* @deprecated `EventPublisher` was replaced by `EventsService.publish`
|
|
17
|
+
*/
|
|
12
18
|
declare class TestEventPublisher implements EventPublisher {
|
|
13
19
|
#private;
|
|
14
20
|
setEventBroker(eventBroker: EventBroker): Promise<void>;
|
|
15
21
|
get eventBroker(): EventBroker | undefined;
|
|
16
22
|
}
|
|
17
23
|
|
|
18
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* @deprecated `EventSubscriber` was replaced by `EventsService.subscribe`.
|
|
27
|
+
*/
|
|
19
28
|
declare class TestEventSubscriber implements EventSubscriber {
|
|
20
29
|
readonly name: string;
|
|
21
30
|
readonly topics: string[];
|
|
@@ -25,4 +34,14 @@ declare class TestEventSubscriber implements EventSubscriber {
|
|
|
25
34
|
onEvent(params: EventParams): Promise<void>;
|
|
26
35
|
}
|
|
27
36
|
|
|
28
|
-
|
|
37
|
+
/** @public */
|
|
38
|
+
declare class TestEventsService implements EventsService {
|
|
39
|
+
#private;
|
|
40
|
+
publish(params: EventParams): Promise<void>;
|
|
41
|
+
subscribe(options: EventsServiceSubscribeOptions): Promise<void>;
|
|
42
|
+
get published(): EventParams[];
|
|
43
|
+
get subscribed(): EventsServiceSubscribeOptions[];
|
|
44
|
+
reset(): void;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { TestEventBroker, TestEventPublisher, TestEventSubscriber, TestEventsService };
|
package/package.json
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-events-backend-test-utils",
|
|
3
|
+
"version": "0.1.23-next.0",
|
|
3
4
|
"description": "The plugin-events-backend-test-utils for @backstage/plugin-events-node",
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"license": "Apache-2.0",
|
|
5
|
+
"backstage": {
|
|
6
|
+
"role": "node-library"
|
|
7
|
+
},
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"access": "public",
|
|
10
10
|
"main": "dist/index.cjs.js",
|
|
11
11
|
"types": "dist/index.d.ts"
|
|
12
12
|
},
|
|
13
|
-
"backstage": {
|
|
14
|
-
"role": "node-library"
|
|
15
|
-
},
|
|
16
13
|
"homepage": "https://backstage.io",
|
|
17
14
|
"repository": {
|
|
18
15
|
"type": "git",
|
|
19
16
|
"url": "https://github.com/backstage/backstage",
|
|
20
17
|
"directory": "plugins/events-backend-test-utils"
|
|
21
18
|
},
|
|
19
|
+
"license": "Apache-2.0",
|
|
20
|
+
"main": "dist/index.cjs.js",
|
|
21
|
+
"types": "dist/index.d.ts",
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
22
25
|
"scripts": {
|
|
23
|
-
"start": "backstage-cli package start",
|
|
24
26
|
"build": "backstage-cli package build",
|
|
25
|
-
"lint": "backstage-cli package lint",
|
|
26
|
-
"test": "backstage-cli package test",
|
|
27
27
|
"clean": "backstage-cli package clean",
|
|
28
|
+
"lint": "backstage-cli package lint",
|
|
28
29
|
"prepack": "backstage-cli package prepack",
|
|
29
|
-
"postpack": "backstage-cli package postpack"
|
|
30
|
+
"postpack": "backstage-cli package postpack",
|
|
31
|
+
"start": "backstage-cli package start",
|
|
32
|
+
"test": "backstage-cli package test"
|
|
30
33
|
},
|
|
31
34
|
"dependencies": {
|
|
32
|
-
"@backstage/plugin-events-node": "^0.
|
|
35
|
+
"@backstage/plugin-events-node": "^0.3.0-next.0"
|
|
33
36
|
},
|
|
34
37
|
"devDependencies": {
|
|
35
|
-
"@backstage/cli": "^0.25.
|
|
36
|
-
}
|
|
37
|
-
"files": [
|
|
38
|
-
"dist"
|
|
39
|
-
]
|
|
38
|
+
"@backstage/cli": "^0.25.3-next.0"
|
|
39
|
+
}
|
|
40
40
|
}
|