@backstage/plugin-catalog-backend 1.3.0-next.3 → 1.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,72 @@
1
1
  # @backstage/plugin-catalog-backend
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1dd6c22cc8: Added an option to be able to trigger refreshes on entities based on a prestored arbitrary key.
8
+
9
+ The UrlReaderProcessor, FileReaderProcessor got updated to store the absolute URL of the catalog file as a refresh key. In the format of `<type>:<target>`
10
+ The PlaceholderProcessor got updated to store the resolverValues as refreshKeys for the entities.
11
+
12
+ The custom resolvers will need to be updated to pass in a `CatalogProcessorEmit` function as parameter and they should be updated to emit their refresh processingResults. You can see the updated resolvers in the `PlaceholderProcessor.ts`
13
+
14
+ ```ts
15
+ // yamlPlaceholderResolver
16
+ ...
17
+ const { content, url } = await readTextLocation(params);
18
+
19
+ params.emit(processingResult.refresh(`url:${url}`));
20
+ ...
21
+ ```
22
+
23
+ - 91c1d12123: Export experimental `catalogPlugin` for the new backend system. This export is not considered stable and should not be used in production.
24
+
25
+ ### Patch Changes
26
+
27
+ - 1e02fe46d6: Fixed bug where catalog metrics weren't being tracked.
28
+ - 5f6b847c15: Fix Error Code in Register Component DryRun
29
+ - a70869e775: Updated dependency `msw` to `^0.43.0`.
30
+ - 4e9a90e307: Updated dependency `luxon` to `^3.0.0`.
31
+ - 72622d9143: Updated dependency `yaml` to `^2.0.0`.
32
+ - 8006d0f9bf: Updated dependency `msw` to `^0.44.0`.
33
+ - 679b32172e: Updated dependency `knex` to `^2.0.0`.
34
+ - fa0533e604: CatalogBuilder supports now subscription to processing engine errors.
35
+
36
+ ```ts
37
+ subscribe(options: {
38
+ onProcessingError: (event: { unprocessedEntity: Entity, error: Error }) => Promise<void> | void;
39
+ });
40
+ ```
41
+
42
+ If you want to get notified on errors while processing the entities, you call CatalogBuilder.subscribe
43
+ to get notifications with the parameters defined as above.
44
+
45
+ - e2d7b76f43: Upgrade git-url-parse to 12.0.0.
46
+
47
+ Motivation for upgrade is transitively upgrading parse-url which is vulnerable
48
+ to several CVEs detected by Snyk.
49
+
50
+ - SNYK-JS-PARSEURL-2935944
51
+ - SNYK-JS-PARSEURL-2935947
52
+ - SNYK-JS-PARSEURL-2936249
53
+
54
+ - f1dcc6f3c6: Use entity type predicates from catalog-model
55
+ - 9a6aba1d85: Many symbol declarations have been moved to `@backstage/plugin-catalog-node`. This has no affect on users of this package as they are all re-exported. Modules that build on top of the catalog backend plugin should switch all of their imports to the `@backstage/plugin-catalog-node` package and remove the dependency on `@backstage/plugin-catalog-backend`.
56
+ - Updated dependencies
57
+ - @backstage/backend-plugin-api@0.1.0
58
+ - @backstage/backend-common@0.14.1
59
+ - @backstage/catalog-model@1.1.0
60
+ - @backstage/plugin-search-common@1.0.0
61
+ - @backstage/plugin-catalog-node@1.0.0
62
+ - @backstage/integration@1.2.2
63
+ - @backstage/catalog-client@1.0.4
64
+ - @backstage/plugin-permission-common@0.6.3
65
+ - @backstage/plugin-permission-node@0.6.3
66
+ - @backstage/errors@1.1.0
67
+ - @backstage/plugin-catalog-common@1.0.4
68
+ - @backstage/plugin-scaffolder-common@1.1.2
69
+
3
70
  ## 1.3.0-next.3
4
71
 
5
72
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend",
3
- "version": "1.3.0-next.3",
3
+ "version": "1.3.0",
4
4
  "main": "../dist/index.cjs.js",
5
5
  "types": "../dist/index.alpha.d.ts"
6
6
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend",
3
3
  "description": "The Backstage backend plugin that provides the Backstage catalog",
4
- "version": "1.3.0-next.3",
4
+ "version": "1.3.0",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -34,19 +34,19 @@
34
34
  "clean": "backstage-cli package clean"
35
35
  },
36
36
  "dependencies": {
37
- "@backstage/backend-common": "^0.14.1-next.3",
38
- "@backstage/backend-plugin-api": "^0.1.0-next.0",
39
- "@backstage/catalog-client": "^1.0.4-next.2",
40
- "@backstage/catalog-model": "^1.1.0-next.3",
37
+ "@backstage/backend-common": "^0.14.1",
38
+ "@backstage/backend-plugin-api": "^0.1.0",
39
+ "@backstage/catalog-client": "^1.0.4",
40
+ "@backstage/catalog-model": "^1.1.0",
41
41
  "@backstage/config": "^1.0.1",
42
- "@backstage/errors": "^1.1.0-next.0",
43
- "@backstage/integration": "^1.2.2-next.3",
44
- "@backstage/plugin-catalog-common": "^1.0.4-next.0",
45
- "@backstage/plugin-catalog-node": "^1.0.0-next.0",
46
- "@backstage/plugin-permission-common": "^0.6.3-next.1",
47
- "@backstage/plugin-permission-node": "^0.6.3-next.2",
48
- "@backstage/plugin-scaffolder-common": "^1.1.2-next.0",
49
- "@backstage/plugin-search-common": "^0.3.6-next.0",
42
+ "@backstage/errors": "^1.1.0",
43
+ "@backstage/integration": "^1.2.2",
44
+ "@backstage/plugin-catalog-common": "^1.0.4",
45
+ "@backstage/plugin-catalog-node": "^1.0.0",
46
+ "@backstage/plugin-permission-common": "^0.6.3",
47
+ "@backstage/plugin-permission-node": "^0.6.3",
48
+ "@backstage/plugin-scaffolder-common": "^1.1.2",
49
+ "@backstage/plugin-search-common": "^1.0.0",
50
50
  "@backstage/types": "^1.0.0",
51
51
  "@types/express": "^4.17.6",
52
52
  "codeowners-utils": "^1.0.2",
@@ -70,10 +70,10 @@
70
70
  "zod": "^3.11.6"
71
71
  },
72
72
  "devDependencies": {
73
- "@backstage/backend-test-utils": "^0.1.26-next.3",
74
- "@backstage/cli": "^0.18.0-next.3",
75
- "@backstage/plugin-permission-common": "^0.6.3-next.1",
76
- "@backstage/plugin-search-backend-node": "0.6.3-next.2",
73
+ "@backstage/backend-test-utils": "^0.1.26",
74
+ "@backstage/cli": "^0.18.0",
75
+ "@backstage/plugin-permission-common": "^0.6.3",
76
+ "@backstage/plugin-search-backend-node": "1.0.0",
77
77
  "@types/core-js": "^2.5.4",
78
78
  "@types/git-url-parse": "^9.0.0",
79
79
  "@types/lodash": "^4.14.151",
@@ -81,7 +81,7 @@
81
81
  "@types/uuid": "^8.0.0",
82
82
  "better-sqlite3": "^7.5.0",
83
83
  "luxon": "^3.0.0",
84
- "msw": "^0.43.0",
84
+ "msw": "^0.44.0",
85
85
  "supertest": "^6.1.3",
86
86
  "wait-for-expect": "^3.0.2"
87
87
  },
@@ -92,5 +92,5 @@
92
92
  "config.d.ts"
93
93
  ],
94
94
  "configSchema": "config.d.ts",
95
- "gitHead": "291b3a07233061266d9f3ce431345bf19fa4bbd5"
95
+ "gitHead": "999878d8f1ae30f6a15925816af2016cb9d717a1"
96
96
  }