@backstage/plugin-catalog-backend 1.3.0-next.3 → 1.3.1-next.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 CHANGED
@@ -1,5 +1,96 @@
1
1
  # @backstage/plugin-catalog-backend
2
2
 
3
+ ## 1.3.1-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - e3d3018531: Fix issue for conditional decisions based on properties stored as arrays, like tags.
8
+
9
+ Before this change, having a permission policy returning conditional decisions based on metadata like tags, such like `createCatalogConditionalDecision(permission, catalogConditions.hasMetadata('tags', 'java'),)`, was producing wrong results. The issue occurred when authorizing entities already loaded from the database, for example when authorizing `catalogEntityDeletePermission`.
10
+
11
+ - Updated dependencies
12
+ - @backstage/plugin-catalog-common@1.0.5-next.0
13
+ - @backstage/backend-common@0.15.0-next.1
14
+ - @backstage/integration@1.3.0-next.1
15
+
16
+ ## 1.3.1-next.0
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+ - @backstage/backend-common@0.15.0-next.0
22
+ - @backstage/integration@1.3.0-next.0
23
+ - @backstage/backend-plugin-api@0.1.1-next.0
24
+ - @backstage/plugin-catalog-node@1.0.1-next.0
25
+ - @backstage/plugin-permission-node@0.6.4-next.0
26
+
27
+ ## 1.3.0
28
+
29
+ ### Minor Changes
30
+
31
+ - 1dd6c22cc8: Added an option to be able to trigger refreshes on entities based on a prestored arbitrary key.
32
+
33
+ The UrlReaderProcessor, FileReaderProcessor got updated to store the absolute URL of the catalog file as a refresh key. In the format of `<type>:<target>`
34
+ The PlaceholderProcessor got updated to store the resolverValues as refreshKeys for the entities.
35
+
36
+ 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`
37
+
38
+ ```ts
39
+ // yamlPlaceholderResolver
40
+ ...
41
+ const { content, url } = await readTextLocation(params);
42
+
43
+ params.emit(processingResult.refresh(`url:${url}`));
44
+ ...
45
+ ```
46
+
47
+ - 91c1d12123: Export experimental `catalogPlugin` for the new backend system. This export is not considered stable and should not be used in production.
48
+
49
+ ### Patch Changes
50
+
51
+ - 1e02fe46d6: Fixed bug where catalog metrics weren't being tracked.
52
+ - 5f6b847c15: Fix Error Code in Register Component DryRun
53
+ - a70869e775: Updated dependency `msw` to `^0.43.0`.
54
+ - 4e9a90e307: Updated dependency `luxon` to `^3.0.0`.
55
+ - 72622d9143: Updated dependency `yaml` to `^2.0.0`.
56
+ - 8006d0f9bf: Updated dependency `msw` to `^0.44.0`.
57
+ - 679b32172e: Updated dependency `knex` to `^2.0.0`.
58
+ - fa0533e604: CatalogBuilder supports now subscription to processing engine errors.
59
+
60
+ ```ts
61
+ subscribe(options: {
62
+ onProcessingError: (event: { unprocessedEntity: Entity, error: Error }) => Promise<void> | void;
63
+ });
64
+ ```
65
+
66
+ If you want to get notified on errors while processing the entities, you call CatalogBuilder.subscribe
67
+ to get notifications with the parameters defined as above.
68
+
69
+ - e2d7b76f43: Upgrade git-url-parse to 12.0.0.
70
+
71
+ Motivation for upgrade is transitively upgrading parse-url which is vulnerable
72
+ to several CVEs detected by Snyk.
73
+
74
+ - SNYK-JS-PARSEURL-2935944
75
+ - SNYK-JS-PARSEURL-2935947
76
+ - SNYK-JS-PARSEURL-2936249
77
+
78
+ - f1dcc6f3c6: Use entity type predicates from catalog-model
79
+ - 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`.
80
+ - Updated dependencies
81
+ - @backstage/backend-plugin-api@0.1.0
82
+ - @backstage/backend-common@0.14.1
83
+ - @backstage/catalog-model@1.1.0
84
+ - @backstage/plugin-search-common@1.0.0
85
+ - @backstage/plugin-catalog-node@1.0.0
86
+ - @backstage/integration@1.2.2
87
+ - @backstage/catalog-client@1.0.4
88
+ - @backstage/plugin-permission-common@0.6.3
89
+ - @backstage/plugin-permission-node@0.6.3
90
+ - @backstage/errors@1.1.0
91
+ - @backstage/plugin-catalog-common@1.0.4
92
+ - @backstage/plugin-scaffolder-common@1.1.2
93
+
3
94
  ## 1.3.0-next.3
4
95
 
5
96
  ### 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.1-next.1",
4
4
  "main": "../dist/index.cjs.js",
5
5
  "types": "../dist/index.alpha.d.ts"
6
6
  }