@backstage/plugin-catalog-backend-module-bitbucket-cloud 0.4.0-next.2 → 0.4.1
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 +54 -0
- package/alpha/package.json +1 -1
- package/dist/alpha.cjs.js +2 -2
- package/dist/alpha.cjs.js.map +1 -1
- package/dist/alpha.d.ts +3 -5
- package/dist/index.cjs.js +4 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/module/catalogModuleBitbucketCloudEntityProvider.cjs.js.map +1 -1
- package/package.json +14 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,59 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-backend-module-bitbucket-cloud
|
|
2
2
|
|
|
3
|
+
## 0.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/plugin-events-node@0.4.2
|
|
9
|
+
- @backstage/backend-plugin-api@1.0.1
|
|
10
|
+
- @backstage/plugin-catalog-node@1.13.1
|
|
11
|
+
|
|
12
|
+
## 0.4.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- 6343c8d: Fixes the event-based updates at `BitbucketCloudEntityProvider`.
|
|
17
|
+
|
|
18
|
+
Previously, this entity provider had optional event support for legacy backends
|
|
19
|
+
that could be enabled by passing `catalogApi`, `events`, and `tokenManager`.
|
|
20
|
+
|
|
21
|
+
For the new/current backend system, the `catalogModuleBitbucketCloudEntityProvider`
|
|
22
|
+
(`catalog.bitbucket-cloud-entity-provider`), event support was enabled by default.
|
|
23
|
+
|
|
24
|
+
A recent change removed `tokenManager` as a dependency from the module as well as removed it as input.
|
|
25
|
+
While this didn't break the instantiation of the module, it broke the event-based updates,
|
|
26
|
+
and led to a runtime misbehavior, accompanied by an info log message.
|
|
27
|
+
|
|
28
|
+
This change will replace the use of `tokenManager` with the use of `auth` (`AuthService`).
|
|
29
|
+
|
|
30
|
+
Additionally, to simplify, it will make `catalogApi` and `events` required dependencies.
|
|
31
|
+
For the current backend system, this change is transparent and doesn't require any action.
|
|
32
|
+
For the legacy backend system, this change will require you to pass those dependencies
|
|
33
|
+
if you didn't do it already.
|
|
34
|
+
|
|
35
|
+
BREAKING CHANGES:
|
|
36
|
+
|
|
37
|
+
_(For legacy backend users only.)_
|
|
38
|
+
|
|
39
|
+
Previously optional `catalogApi`, and `events` are required now.
|
|
40
|
+
A new required dependency `auth` was added.
|
|
41
|
+
|
|
42
|
+
### Patch Changes
|
|
43
|
+
|
|
44
|
+
- 094eaa3: Remove references to in-repo backend-common
|
|
45
|
+
- 3109c24: The export for the new backend system at the `/alpha` export is now also available via the main entry point, which means that you can remove the `/alpha` suffix from the import.
|
|
46
|
+
- Updated dependencies
|
|
47
|
+
- @backstage/plugin-events-node@0.4.1
|
|
48
|
+
- @backstage/plugin-catalog-node@1.13.1
|
|
49
|
+
- @backstage/integration@1.15.1
|
|
50
|
+
- @backstage/catalog-client@1.7.1
|
|
51
|
+
- @backstage/backend-plugin-api@1.0.1
|
|
52
|
+
- @backstage/catalog-model@1.7.0
|
|
53
|
+
- @backstage/config@1.2.0
|
|
54
|
+
- @backstage/plugin-bitbucket-cloud-common@0.2.24
|
|
55
|
+
- @backstage/plugin-catalog-common@1.1.0
|
|
56
|
+
|
|
3
57
|
## 0.4.0-next.2
|
|
4
58
|
|
|
5
59
|
### Minor Changes
|
package/alpha/package.json
CHANGED
package/dist/alpha.cjs.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var catalogModuleBitbucketCloudEntityProvider = require('./module/catalogModuleBitbucketCloudEntityProvider.cjs.js');
|
|
6
6
|
|
|
7
|
+
const _feature = catalogModuleBitbucketCloudEntityProvider.catalogModuleBitbucketCloudEntityProvider;
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
exports.default = catalogModuleBitbucketCloudEntityProvider.catalogModuleBitbucketCloudEntityProvider;
|
|
9
|
+
exports.default = _feature;
|
|
10
10
|
//# sourceMappingURL=alpha.cjs.js.map
|
package/dist/alpha.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alpha.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"alpha.cjs.js","sources":["../src/alpha.ts"],"sourcesContent":["/*\n * Copyright 2023 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 { default as feature } from './module';\n\n/** @alpha */\nconst _feature = feature;\nexport default _feature;\n"],"names":["feature"],"mappings":";;;;;;AAmBA,MAAM,QAAW,GAAAA;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
declare const catalogModuleBitbucketCloudEntityProvider: _backstage_backend_plugin_api.BackendFeature;
|
|
3
|
+
/** @alpha */
|
|
4
|
+
declare const _feature: _backstage_backend_plugin_api.BackendFeature;
|
|
7
5
|
|
|
8
|
-
export {
|
|
6
|
+
export { _feature as default };
|
package/dist/index.cjs.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var catalogModuleBitbucketCloudEntityProvider = require('./module/catalogModuleBitbucketCloudEntityProvider.cjs.js');
|
|
3
6
|
var BitbucketCloudEntityProvider = require('./providers/BitbucketCloudEntityProvider.cjs.js');
|
|
4
7
|
|
|
5
8
|
|
|
6
9
|
|
|
10
|
+
exports.default = catalogModuleBitbucketCloudEntityProvider.catalogModuleBitbucketCloudEntityProvider;
|
|
7
11
|
exports.BitbucketCloudEntityProvider = BitbucketCloudEntityProvider.BitbucketCloudEntityProvider;
|
|
8
12
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
|
|
1
2
|
import { AuthService, LoggerService, SchedulerServiceTaskRunner, SchedulerService } from '@backstage/backend-plugin-api';
|
|
2
3
|
import { CatalogApi } from '@backstage/catalog-client';
|
|
3
4
|
import { Config } from '@backstage/config';
|
|
@@ -5,6 +6,11 @@ import { Events } from '@backstage/plugin-bitbucket-cloud-common';
|
|
|
5
6
|
import { EntityProvider, EntityProviderConnection } from '@backstage/plugin-catalog-node';
|
|
6
7
|
import { EventsService } from '@backstage/plugin-events-node';
|
|
7
8
|
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
declare const catalogModuleBitbucketCloudEntityProvider: _backstage_backend_plugin_api.BackendFeature;
|
|
13
|
+
|
|
8
14
|
/**
|
|
9
15
|
* Discovers catalog files located in [Bitbucket Cloud](https://bitbucket.org).
|
|
10
16
|
* The provider will search your Bitbucket Cloud account and register catalog files matching the configured path
|
|
@@ -49,4 +55,4 @@ declare class BitbucketCloudEntityProvider implements EntityProvider {
|
|
|
49
55
|
private static toLocationSpec;
|
|
50
56
|
}
|
|
51
57
|
|
|
52
|
-
export { BitbucketCloudEntityProvider };
|
|
58
|
+
export { BitbucketCloudEntityProvider, catalogModuleBitbucketCloudEntityProvider as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalogModuleBitbucketCloudEntityProvider.cjs.js","sources":["../../src/module/catalogModuleBitbucketCloudEntityProvider.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 coreServices,\n createBackendModule,\n} from '@backstage/backend-plugin-api';\nimport {\n catalogProcessingExtensionPoint,\n catalogServiceRef,\n} from '@backstage/plugin-catalog-node/alpha';\nimport { eventsServiceRef } from '@backstage/plugin-events-node';\nimport { BitbucketCloudEntityProvider } from '../providers/BitbucketCloudEntityProvider';\n\n/**\n * @
|
|
1
|
+
{"version":3,"file":"catalogModuleBitbucketCloudEntityProvider.cjs.js","sources":["../../src/module/catalogModuleBitbucketCloudEntityProvider.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 coreServices,\n createBackendModule,\n} from '@backstage/backend-plugin-api';\nimport {\n catalogProcessingExtensionPoint,\n catalogServiceRef,\n} from '@backstage/plugin-catalog-node/alpha';\nimport { eventsServiceRef } from '@backstage/plugin-events-node';\nimport { BitbucketCloudEntityProvider } from '../providers/BitbucketCloudEntityProvider';\n\n/**\n * @public\n */\nexport const catalogModuleBitbucketCloudEntityProvider = createBackendModule({\n pluginId: 'catalog',\n moduleId: 'bitbucket-cloud-entity-provider',\n register(env) {\n env.registerInit({\n deps: {\n auth: coreServices.auth,\n catalog: catalogProcessingExtensionPoint,\n catalogApi: catalogServiceRef,\n config: coreServices.rootConfig,\n events: eventsServiceRef,\n logger: coreServices.logger,\n scheduler: coreServices.scheduler,\n },\n async init({\n auth,\n catalog,\n catalogApi,\n config,\n events,\n logger,\n scheduler,\n }) {\n const providers = BitbucketCloudEntityProvider.fromConfig(config, {\n auth,\n catalogApi,\n events,\n logger,\n scheduler,\n });\n\n catalog.addEntityProvider(providers);\n },\n });\n },\n});\n"],"names":["createBackendModule","coreServices","catalogProcessingExtensionPoint","catalogServiceRef","eventsServiceRef","BitbucketCloudEntityProvider"],"mappings":";;;;;;;AA8BO,MAAM,4CAA4CA,oCAAoB,CAAA;AAAA,EAC3E,QAAU,EAAA,SAAA;AAAA,EACV,QAAU,EAAA,iCAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAA,GAAA,CAAI,YAAa,CAAA;AAAA,MACf,IAAM,EAAA;AAAA,QACJ,MAAMC,6BAAa,CAAA,IAAA;AAAA,QACnB,OAAS,EAAAC,qCAAA;AAAA,QACT,UAAY,EAAAC,uBAAA;AAAA,QACZ,QAAQF,6BAAa,CAAA,UAAA;AAAA,QACrB,MAAQ,EAAAG,iCAAA;AAAA,QACR,QAAQH,6BAAa,CAAA,MAAA;AAAA,QACrB,WAAWA,6BAAa,CAAA,SAAA;AAAA,OAC1B;AAAA,MACA,MAAM,IAAK,CAAA;AAAA,QACT,IAAA;AAAA,QACA,OAAA;AAAA,QACA,UAAA;AAAA,QACA,MAAA;AAAA,QACA,MAAA;AAAA,QACA,MAAA;AAAA,QACA,SAAA;AAAA,OACC,EAAA;AACD,QAAM,MAAA,SAAA,GAAYI,yDAA6B,CAAA,UAAA,CAAW,MAAQ,EAAA;AAAA,UAChE,IAAA;AAAA,UACA,UAAA;AAAA,UACA,MAAA;AAAA,UACA,MAAA;AAAA,UACA,SAAA;AAAA,SACD,CAAA,CAAA;AAED,QAAA,OAAA,CAAQ,kBAAkB,SAAS,CAAA,CAAA;AAAA,OACrC;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-backend-module-bitbucket-cloud",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "A Backstage catalog backend module that helps integrate towards Bitbucket Cloud",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "backend-plugin-module",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|
|
25
|
+
"backstage": "@backstage/BackendFeature",
|
|
25
26
|
"require": "./dist/index.cjs.js",
|
|
26
27
|
"types": "./dist/index.d.ts",
|
|
27
28
|
"default": "./dist/index.cjs.js"
|
|
@@ -51,21 +52,21 @@
|
|
|
51
52
|
"test": "backstage-cli package test"
|
|
52
53
|
},
|
|
53
54
|
"dependencies": {
|
|
54
|
-
"@backstage/backend-plugin-api": "1.0.1
|
|
55
|
-
"@backstage/catalog-client": "1.7.1
|
|
56
|
-
"@backstage/catalog-model": "1.7.0",
|
|
57
|
-
"@backstage/config": "1.2.0",
|
|
58
|
-
"@backstage/integration": "1.15.1
|
|
59
|
-
"@backstage/plugin-bitbucket-cloud-common": "0.2.24
|
|
60
|
-
"@backstage/plugin-catalog-common": "1.1.0",
|
|
61
|
-
"@backstage/plugin-catalog-node": "1.13.1
|
|
62
|
-
"@backstage/plugin-events-node": "0.4.
|
|
55
|
+
"@backstage/backend-plugin-api": "^1.0.1",
|
|
56
|
+
"@backstage/catalog-client": "^1.7.1",
|
|
57
|
+
"@backstage/catalog-model": "^1.7.0",
|
|
58
|
+
"@backstage/config": "^1.2.0",
|
|
59
|
+
"@backstage/integration": "^1.15.1",
|
|
60
|
+
"@backstage/plugin-bitbucket-cloud-common": "^0.2.24",
|
|
61
|
+
"@backstage/plugin-catalog-common": "^1.1.0",
|
|
62
|
+
"@backstage/plugin-catalog-node": "^1.13.1",
|
|
63
|
+
"@backstage/plugin-events-node": "^0.4.2",
|
|
63
64
|
"uuid": "^9.0.0"
|
|
64
65
|
},
|
|
65
66
|
"devDependencies": {
|
|
66
|
-
"@backstage/backend-test-utils": "1.0.
|
|
67
|
-
"@backstage/cli": "0.28.0
|
|
68
|
-
"@backstage/plugin-events-backend-test-utils": "0.1.
|
|
67
|
+
"@backstage/backend-test-utils": "^1.0.2",
|
|
68
|
+
"@backstage/cli": "^0.28.0",
|
|
69
|
+
"@backstage/plugin-events-backend-test-utils": "^0.1.37",
|
|
69
70
|
"luxon": "^3.0.0",
|
|
70
71
|
"msw": "^1.0.0"
|
|
71
72
|
},
|