@backstage/plugin-events-backend-module-aws-sqs 0.3.0-next.1 → 0.3.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 CHANGED
@@ -1,5 +1,60 @@
1
1
  # @backstage/plugin-events-backend-module-aws-sqs
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 132d672: BREAKING CHANGE: Migrate `AwsSqsConsumingEventPublisher` and its backend module to use `EventsService`.
8
+
9
+ Uses the `EventsService` instead of `EventBroker` at `AwsSqsConsumingEventPublisher`,
10
+ dropping the use of `EventPublisher` including `setEventBroker(..)`.
11
+
12
+ Now, `AwsSqsConsumingEventPublisher.fromConfig` requires `events: EventsService` as option.
13
+
14
+ ```diff
15
+ const sqs = AwsSqsConsumingEventPublisher.fromConfig({
16
+ config: env.config,
17
+ + events: env.events,
18
+ logger: env.logger,
19
+ scheduler: env.scheduler,
20
+ });
21
+ + await Promise.all(sqs.map(publisher => publisher.start()));
22
+
23
+ // e.g. at packages/backend/src/plugins/events.ts
24
+ - await new EventsBackend(env.logger)
25
+ - .setEventBroker(env.eventBroker)
26
+ - .addPublishers(sqs)
27
+ - .start();
28
+
29
+ // or for other kinds of setups
30
+ - await Promise.all(sqs.map(publisher => publisher.setEventBroker(eventBroker)));
31
+ ```
32
+
33
+ `eventsModuleAwsSqsConsumingEventPublisher` uses the `eventsServiceRef` as dependency,
34
+ instead of `eventsExtensionPoint`.
35
+
36
+ ### Patch Changes
37
+
38
+ - Updated dependencies
39
+ - @backstage/plugin-events-node@0.3.0
40
+ - @backstage/backend-common@0.21.4
41
+ - @backstage/config@1.2.0
42
+ - @backstage/backend-plugin-api@0.6.14
43
+ - @backstage/backend-tasks@0.5.19
44
+ - @backstage/types@1.1.1
45
+
46
+ ## 0.3.0-next.2
47
+
48
+ ### Patch Changes
49
+
50
+ - Updated dependencies
51
+ - @backstage/backend-common@0.21.4-next.2
52
+ - @backstage/backend-plugin-api@0.6.14-next.2
53
+ - @backstage/backend-tasks@0.5.19-next.2
54
+ - @backstage/config@1.2.0-next.1
55
+ - @backstage/types@1.1.1
56
+ - @backstage/plugin-events-node@0.3.0-next.2
57
+
3
58
  ## 0.3.0-next.1
4
59
 
5
60
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-events-backend-module-aws-sqs",
3
- "version": "0.3.0-next.1",
3
+ "version": "0.3.0",
4
4
  "main": "../dist/alpha.cjs.js",
5
5
  "types": "../dist/alpha.d.ts"
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-events-backend-module-aws-sqs",
3
- "version": "0.3.0-next.1",
3
+ "version": "0.3.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "Apache-2.0",
@@ -40,20 +40,20 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@aws-sdk/client-sqs": "^3.350.0",
43
- "@backstage/backend-common": "^0.21.4-next.1",
44
- "@backstage/backend-plugin-api": "^0.6.14-next.1",
45
- "@backstage/backend-tasks": "^0.5.19-next.1",
46
- "@backstage/config": "^1.2.0-next.1",
47
- "@backstage/plugin-events-node": "^0.3.0-next.1",
43
+ "@backstage/backend-common": "^0.21.4",
44
+ "@backstage/backend-plugin-api": "^0.6.14",
45
+ "@backstage/backend-tasks": "^0.5.19",
46
+ "@backstage/config": "^1.2.0",
47
+ "@backstage/plugin-events-node": "^0.3.0",
48
48
  "@backstage/types": "^1.1.1",
49
49
  "luxon": "^3.0.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@aws-sdk/types": "^3.347.0",
53
- "@backstage/backend-common": "^0.21.4-next.1",
54
- "@backstage/backend-test-utils": "^0.3.4-next.1",
55
- "@backstage/cli": "^0.25.3-next.1",
56
- "@backstage/plugin-events-backend-test-utils": "^0.1.24-next.1",
53
+ "@backstage/backend-common": "^0.21.4",
54
+ "@backstage/backend-test-utils": "^0.3.4",
55
+ "@backstage/cli": "^0.26.0",
56
+ "@backstage/plugin-events-backend-test-utils": "^0.1.24",
57
57
  "aws-sdk-client-mock": "^3.0.0"
58
58
  },
59
59
  "files": [