@backstage/plugin-catalog-backend-module-bitbucket-cloud 0.2.0-next.2 → 0.2.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 +58 -0
- package/alpha/package.json +1 -1
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,63 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-backend-module-bitbucket-cloud
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 9e527c9: BREAKING CHANGE: Migrates the `BitbucketCloudEntityProvider` to use the `EventsService`; fix new backend system support.
|
|
8
|
+
|
|
9
|
+
`BitbucketCloudEntityProvider.fromConfig` accepts `events: EventsService` as optional argument to its `options`.
|
|
10
|
+
With provided `events`, the event-based updates/refresh will be available.
|
|
11
|
+
However, the `EventSubscriber` interface was removed including its `supportsEventTopics()` and `onEvent(params)`.
|
|
12
|
+
|
|
13
|
+
The event subscription happens on `connect(connection)` if the `events` is available.
|
|
14
|
+
|
|
15
|
+
**Migration:**
|
|
16
|
+
|
|
17
|
+
```diff
|
|
18
|
+
const bitbucketCloudProvider = BitbucketCloudEntityProvider.fromConfig(
|
|
19
|
+
env.config,
|
|
20
|
+
{
|
|
21
|
+
catalogApi: new CatalogClient({ discoveryApi: env.discovery }),
|
|
22
|
+
+ events: env.events,
|
|
23
|
+
logger: env.logger,
|
|
24
|
+
scheduler: env.scheduler,
|
|
25
|
+
tokenManager: env.tokenManager,
|
|
26
|
+
},
|
|
27
|
+
);
|
|
28
|
+
- env.eventBroker.subscribe(bitbucketCloudProvider);
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
**New Backend System:**
|
|
32
|
+
|
|
33
|
+
Before this change, using this module with the new backend system was broken.
|
|
34
|
+
Now, you can add the catalog module for Bitbucket Cloud incl. event support backend.
|
|
35
|
+
Event support will always be enabled.
|
|
36
|
+
However, no updates/refresh will happen without receiving events.
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
backend.add(
|
|
40
|
+
import('@backstage/plugin-catalog-backend-module-bitbucket-cloud/alpha'),
|
|
41
|
+
);
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Patch Changes
|
|
45
|
+
|
|
46
|
+
- 0fb419b: Updated dependency `uuid` to `^9.0.0`.
|
|
47
|
+
Updated dependency `@types/uuid` to `^9.0.0`.
|
|
48
|
+
- Updated dependencies
|
|
49
|
+
- @backstage/plugin-events-node@0.3.0
|
|
50
|
+
- @backstage/backend-common@0.21.4
|
|
51
|
+
- @backstage/integration@1.9.1
|
|
52
|
+
- @backstage/config@1.2.0
|
|
53
|
+
- @backstage/backend-plugin-api@0.6.14
|
|
54
|
+
- @backstage/plugin-catalog-node@1.8.0
|
|
55
|
+
- @backstage/catalog-client@1.6.1
|
|
56
|
+
- @backstage/backend-tasks@0.5.19
|
|
57
|
+
- @backstage/catalog-model@1.4.5
|
|
58
|
+
- @backstage/plugin-bitbucket-cloud-common@0.2.17
|
|
59
|
+
- @backstage/plugin-catalog-common@1.0.22
|
|
60
|
+
|
|
3
61
|
## 0.2.0-next.2
|
|
4
62
|
|
|
5
63
|
### Patch Changes
|
package/alpha/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-backend-module-bitbucket-cloud",
|
|
3
3
|
"description": "A Backstage catalog backend module that helps integrate towards Bitbucket Cloud",
|
|
4
|
-
"version": "0.2.0
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -43,24 +43,24 @@
|
|
|
43
43
|
"clean": "backstage-cli package clean"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@backstage/backend-common": "^0.21.4
|
|
47
|
-
"@backstage/backend-plugin-api": "^0.6.14
|
|
48
|
-
"@backstage/backend-tasks": "^0.5.19
|
|
49
|
-
"@backstage/catalog-client": "^1.6.1
|
|
50
|
-
"@backstage/catalog-model": "^1.4.5
|
|
51
|
-
"@backstage/config": "^1.2.0
|
|
52
|
-
"@backstage/integration": "^1.9.1
|
|
53
|
-
"@backstage/plugin-bitbucket-cloud-common": "^0.2.17
|
|
54
|
-
"@backstage/plugin-catalog-common": "^1.0.22
|
|
55
|
-
"@backstage/plugin-catalog-node": "^1.8.0
|
|
56
|
-
"@backstage/plugin-events-node": "^0.3.0
|
|
46
|
+
"@backstage/backend-common": "^0.21.4",
|
|
47
|
+
"@backstage/backend-plugin-api": "^0.6.14",
|
|
48
|
+
"@backstage/backend-tasks": "^0.5.19",
|
|
49
|
+
"@backstage/catalog-client": "^1.6.1",
|
|
50
|
+
"@backstage/catalog-model": "^1.4.5",
|
|
51
|
+
"@backstage/config": "^1.2.0",
|
|
52
|
+
"@backstage/integration": "^1.9.1",
|
|
53
|
+
"@backstage/plugin-bitbucket-cloud-common": "^0.2.17",
|
|
54
|
+
"@backstage/plugin-catalog-common": "^1.0.22",
|
|
55
|
+
"@backstage/plugin-catalog-node": "^1.8.0",
|
|
56
|
+
"@backstage/plugin-events-node": "^0.3.0",
|
|
57
57
|
"uuid": "^9.0.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@backstage/backend-common": "^0.21.4
|
|
61
|
-
"@backstage/backend-test-utils": "^0.3.4
|
|
62
|
-
"@backstage/cli": "^0.
|
|
63
|
-
"@backstage/plugin-events-backend-test-utils": "^0.1.24
|
|
60
|
+
"@backstage/backend-common": "^0.21.4",
|
|
61
|
+
"@backstage/backend-test-utils": "^0.3.4",
|
|
62
|
+
"@backstage/cli": "^0.26.0",
|
|
63
|
+
"@backstage/plugin-events-backend-test-utils": "^0.1.24",
|
|
64
64
|
"luxon": "^3.0.0",
|
|
65
65
|
"msw": "^1.0.0"
|
|
66
66
|
},
|