@backstage/plugin-catalog-backend 1.6.0-next.2 → 1.6.0-next.3

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,28 @@
1
1
  # @backstage/plugin-catalog-backend
2
2
 
3
+ ## 1.6.0-next.3
4
+
5
+ ### Patch Changes
6
+
7
+ - ba13ff663c: Added a new `catalog.rules[].location` configuration that makes it possible to configure catalog rules to only apply to specific locations, either via exact match or a glob pattern.
8
+ - b05dcd5530: Move the `zod` dependency to a version that does not collide with other libraries
9
+ - 71147d5c16: Internal code reorganization.
10
+ - Updated dependencies
11
+ - @backstage/plugin-permission-common@0.7.2-next.2
12
+ - @backstage/plugin-permission-node@0.7.2-next.3
13
+ - @backstage/backend-common@0.17.0-next.3
14
+ - @backstage/backend-plugin-api@0.2.0-next.3
15
+ - @backstage/catalog-client@1.2.0-next.1
16
+ - @backstage/catalog-model@1.1.4-next.1
17
+ - @backstage/config@1.0.5-next.1
18
+ - @backstage/errors@1.1.4-next.1
19
+ - @backstage/integration@1.4.1-next.1
20
+ - @backstage/types@1.0.2-next.1
21
+ - @backstage/plugin-catalog-common@1.0.9-next.3
22
+ - @backstage/plugin-catalog-node@1.3.0-next.3
23
+ - @backstage/plugin-scaffolder-common@1.2.3-next.1
24
+ - @backstage/plugin-search-common@1.2.0-next.3
25
+
3
26
  ## 1.6.0-next.2
4
27
 
5
28
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend",
3
- "version": "1.6.0-next.2",
3
+ "version": "1.6.0-next.3",
4
4
  "main": "../dist/index.cjs.js",
5
5
  "types": "../dist/index.alpha.d.ts"
6
6
  }
package/config.d.ts CHANGED
@@ -38,6 +38,37 @@ export interface Config {
38
38
  * E.g. ["Component", "API", "Template", "Location"]
39
39
  */
40
40
  allow: Array<string>;
41
+ /**
42
+ * Limit this rule to a specific location
43
+ *
44
+ * Example with a fixed location
45
+ * { "type": "url", "exact": "https://github.com/a/b/blob/file.yaml"}
46
+ *
47
+ * Example using a Regex
48
+ * { "type": "url", "pattern": "https://github.com/org/*\/blob/master/*.yaml"}
49
+ *
50
+ * Using both exact and pattern will result in an error starting the application
51
+ */
52
+ locations?: Array<{
53
+ /**
54
+ * The type of location, e.g. "url".
55
+ */
56
+ type: string;
57
+ /**
58
+ * The exact location, e.g.
59
+ * "https://github.com/org/repo/blob/master/users.yaml".
60
+ *
61
+ * The exact location can also be used to match on locations
62
+ * that contain glob characters themselves, e.g.
63
+ * "https://github.com/org/*\/blob/master/*.yaml".
64
+ */
65
+ exact?: string;
66
+ /**
67
+ * The pattern allowed for the location, e.g.
68
+ * "https://github.com/org/*\/blob/master/*.yaml".
69
+ */
70
+ pattern?: string;
71
+ }>;
41
72
  }>;
42
73
 
43
74
  /**
@@ -392,7 +392,13 @@ export declare type CatalogPermissionRule<TParams extends PermissionRuleParams =
392
392
  */
393
393
  export declare const catalogPlugin: (options?: undefined) => BackendFeature;
394
394
 
395
- /** @public */
395
+ /**
396
+ * Represents the engine that drives the processing loops. Some backend
397
+ * instances may choose to not call start, if they focus only on API
398
+ * interactions.
399
+ *
400
+ * @public
401
+ */
396
402
  export declare interface CatalogProcessingEngine {
397
403
  start(): Promise<void>;
398
404
  stop(): Promise<void>;
@@ -345,7 +345,13 @@ export declare type CatalogEnvironment = {
345
345
 
346
346
  /* Excluded from this release type: catalogPlugin */
347
347
 
348
- /** @public */
348
+ /**
349
+ * Represents the engine that drives the processing loops. Some backend
350
+ * instances may choose to not call start, if they focus only on API
351
+ * interactions.
352
+ *
353
+ * @public
354
+ */
349
355
  export declare interface CatalogProcessingEngine {
350
356
  start(): Promise<void>;
351
357
  stop(): Promise<void>;