@backstage/plugin-catalog-backend-module-azure 0.1.4-next.2 → 0.1.4

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +74 -0
  2. package/package.json +9 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,79 @@
1
1
  # @backstage/plugin-catalog-backend-module-azure
2
2
 
3
+ ## 0.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - b8884fd579: Add a new provider `AzureDevOpsEntityProvider` as replacement for `AzureDevOpsDiscoveryProcessor`.
8
+
9
+ In order to migrate from the `AzureDevOpsDiscoveryProcessor` you need to apply
10
+ the following changes:
11
+
12
+ **Before:**
13
+
14
+ ```yaml
15
+ # app-config.yaml
16
+
17
+ catalog:
18
+ locations:
19
+ - type: azure-discovery
20
+ target: https://dev.azure.com/myorg/myproject/_git/service-*?path=/catalog-info.yaml
21
+ ```
22
+
23
+ ```ts
24
+ /* packages/backend/src/plugins/catalog.ts */
25
+
26
+ import { AzureDevOpsDiscoveryProcessor } from '@backstage/plugin-catalog-backend-module-azure';
27
+
28
+ const builder = await CatalogBuilder.create(env);
29
+ /** ... other processors ... */
30
+ builder.addProcessor(new AzureDevOpsDiscoveryProcessor(env.reader));
31
+ ```
32
+
33
+ **After:**
34
+
35
+ ```yaml
36
+ # app-config.yaml
37
+
38
+ catalog:
39
+ providers:
40
+ azureDevOps:
41
+ anyProviderId:
42
+ host: selfhostedazure.yourcompany.com # This is only really needed for on-premise user, defaults to dev.azure.com
43
+ organization: myorg # For on-premise this would be your Collection
44
+ project: myproject
45
+ repository: service-*
46
+ path: /catalog-info.yaml
47
+ ```
48
+
49
+ ```ts
50
+ /* packages/backend/src/plugins/catalog.ts */
51
+
52
+ import { AzureDevOpsEntityProvider } from '@backstage/plugin-catalog-backend-module-azure';
53
+
54
+ const builder = await CatalogBuilder.create(env);
55
+ /** ... other processors and/or providers ... */
56
+ builder.addEntityProvider(
57
+ AzureDevOpsEntityProvider.fromConfig(env.config, {
58
+ logger: env.logger,
59
+ schedule: env.scheduler.createScheduledTaskRunner({
60
+ frequency: { minutes: 30 },
61
+ timeout: { minutes: 3 },
62
+ }),
63
+ }),
64
+ );
65
+ ```
66
+
67
+ Visit [https://backstage.io/docs/integrations/azure/discovery](https://backstage.io/docs/integrations/azure/discovery) for more details and options on configuration.
68
+
69
+ - 8f7b1835df: Updated dependency `msw` to `^0.41.0`.
70
+ - Updated dependencies
71
+ - @backstage/plugin-catalog-backend@1.2.0
72
+ - @backstage/backend-tasks@0.3.2
73
+ - @backstage/backend-common@0.14.0
74
+ - @backstage/integration@1.2.1
75
+ - @backstage/catalog-model@1.0.3
76
+
3
77
  ## 0.1.4-next.2
4
78
 
5
79
  ### Patch Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend-module-azure",
3
3
  "description": "A Backstage catalog backend module that helps integrate towards Azure",
4
- "version": "0.1.4-next.2",
4
+ "version": "0.1.4",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -33,13 +33,13 @@
33
33
  "start": "backstage-cli package start"
34
34
  },
35
35
  "dependencies": {
36
- "@backstage/backend-common": "^0.14.0-next.2",
37
- "@backstage/backend-tasks": "^0.3.2-next.2",
38
- "@backstage/catalog-model": "^1.0.3-next.0",
36
+ "@backstage/backend-common": "^0.14.0",
37
+ "@backstage/backend-tasks": "^0.3.2",
38
+ "@backstage/catalog-model": "^1.0.3",
39
39
  "@backstage/config": "^1.0.1",
40
40
  "@backstage/errors": "^1.0.0",
41
- "@backstage/integration": "^1.2.1-next.2",
42
- "@backstage/plugin-catalog-backend": "^1.2.0-next.2",
41
+ "@backstage/integration": "^1.2.1",
42
+ "@backstage/plugin-catalog-backend": "^1.2.0",
43
43
  "@backstage/types": "^1.0.0",
44
44
  "lodash": "^4.17.21",
45
45
  "msw": "^0.42.0",
@@ -48,8 +48,8 @@
48
48
  "winston": "^3.2.1"
49
49
  },
50
50
  "devDependencies": {
51
- "@backstage/backend-test-utils": "^0.1.25-next.2",
52
- "@backstage/cli": "^0.17.2-next.2",
51
+ "@backstage/backend-test-utils": "^0.1.25",
52
+ "@backstage/cli": "^0.17.2",
53
53
  "@types/lodash": "^4.14.151"
54
54
  },
55
55
  "files": [
@@ -57,5 +57,5 @@
57
57
  "config.d.ts"
58
58
  ],
59
59
  "configSchema": "config.d.ts",
60
- "gitHead": "afc672d59763a835574e6c47819107d22cfd1ad7"
60
+ "gitHead": "e42cb3887e41f756c16380d757d93feda27f40ee"
61
61
  }