@backstage/plugin-catalog-backend 1.1.2-next.2 → 1.2.0-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,66 @@
1
1
  # @backstage/plugin-catalog-backend
2
2
 
3
+ ## 1.2.0-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 8f7b1835df: Updated dependency `msw` to `^0.41.0`.
8
+ - Updated dependencies
9
+ - @backstage/backend-common@0.13.6-next.1
10
+ - @backstage/catalog-client@1.0.3-next.0
11
+ - @backstage/integration@1.2.1-next.1
12
+ - @backstage/plugin-permission-common@0.6.2-next.0
13
+ - @backstage/plugin-permission-node@0.6.2-next.1
14
+ - @backstage/catalog-model@1.0.3-next.0
15
+ - @backstage/plugin-catalog-common@1.0.3-next.0
16
+ - @backstage/plugin-search-common@0.3.5-next.0
17
+ - @backstage/plugin-scaffolder-common@1.1.1-next.0
18
+
19
+ ## 1.2.0-next.0
20
+
21
+ ### Minor Changes
22
+
23
+ - b594679ae3: Allow array as non-spread arguments at the `CatalogBuilder`.
24
+
25
+ ```typescript
26
+ builder.addEntityProvider(...getArrayOfProviders());
27
+ ```
28
+
29
+ can be simplified to
30
+
31
+ ```typescript
32
+ builder.addEntityProvider(getArrayOfProviders());
33
+ ```
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies
38
+ - @backstage/backend-common@0.13.6-next.0
39
+ - @backstage/integration@1.2.1-next.0
40
+ - @backstage/plugin-permission-node@0.6.2-next.0
41
+
42
+ ## 1.1.2
43
+
44
+ ### Patch Changes
45
+
46
+ - 16a40ac4c0: Fix wrong return type of the `isGroupEntity` function.
47
+ - 55e09b29dd: Fixing broken types for `knex` when checking returned rows
48
+ - 1ccbe081cc: Minor internal tweak to support TypeScript 4.6
49
+ - cfc0f19699: Updated dependency `fs-extra` to `10.1.0`.
50
+ - 2909746147: Updated parseEntityTransformParams to handle keys with '.' in them. This will allow for querying of entities based off annotations such as 'backstage.io/orgin-location' or other entity field keys that have '.' in them.
51
+ - 8cc75993a6: Fixed issue in `PermissionEvaluator` instance check that would cause unexpected "invalid union" errors.
52
+ - Updated dependencies
53
+ - @backstage/backend-common@0.13.3
54
+ - @backstage/integration@1.2.0
55
+ - @backstage/plugin-scaffolder-common@1.1.0
56
+ - @backstage/config@1.0.1
57
+ - @backstage/plugin-search-common@0.3.4
58
+ - @backstage/catalog-client@1.0.2
59
+ - @backstage/catalog-model@1.0.2
60
+ - @backstage/plugin-catalog-common@1.0.2
61
+ - @backstage/plugin-permission-common@0.6.1
62
+ - @backstage/plugin-permission-node@0.6.1
63
+
3
64
  ## 1.1.2-next.2
4
65
 
5
66
  ### Patch Changes
@@ -473,7 +534,7 @@
473
534
  - 022507c860: A `DefaultCatalogCollatorFactory`, which works with the new stream-based
474
535
  search indexing subsystem, is now available. The `DefaultCatalogCollator` will
475
536
  continue to be available for those unable to upgrade to the stream-based
476
- `@backstage/search-backend-node` (and related packages), however it is now
537
+ `@backstage/plugin-search-backend-node` (and related packages), however it is now
477
538
  marked as deprecated and will be removed in a future version.
478
539
 
479
540
  To upgrade this plugin and the search indexing subsystem in one go, check
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend",
3
- "version": "1.1.2-next.2",
3
+ "version": "1.2.0-next.1",
4
4
  "main": "../dist/index.cjs.js",
5
5
  "types": "../dist/index.alpha.d.ts"
6
6
  }
@@ -170,7 +170,7 @@ export declare class CatalogBuilder {
170
170
  *
171
171
  * @param policies - One or more policies
172
172
  */
173
- addEntityPolicy(...policies: EntityPolicy[]): CatalogBuilder;
173
+ addEntityPolicy(...policies: Array<EntityPolicy | Array<EntityPolicy>>): CatalogBuilder;
174
174
  /**
175
175
  * Processing interval determines how often entities should be processed.
176
176
  * Seconds provided will be multiplied by 1.5
@@ -229,14 +229,14 @@ export declare class CatalogBuilder {
229
229
  *
230
230
  * @param providers - One or more entity providers
231
231
  */
232
- addEntityProvider(...providers: EntityProvider[]): CatalogBuilder;
232
+ addEntityProvider(...providers: Array<EntityProvider | Array<EntityProvider>>): CatalogBuilder;
233
233
  /**
234
234
  * Adds entity processors. These are responsible for reading, parsing, and
235
235
  * processing entities before they are persisted in the catalog.
236
236
  *
237
237
  * @param processors - One or more processors
238
238
  */
239
- addProcessor(...processors: CatalogProcessor[]): CatalogBuilder;
239
+ addProcessor(...processors: Array<CatalogProcessor | Array<CatalogProcessor>>): CatalogBuilder;
240
240
  /**
241
241
  * Sets what entity processors to use. These are responsible for reading,
242
242
  * parsing, and processing entities before they are persisted in the catalog.
@@ -274,7 +274,7 @@ export declare class CatalogBuilder {
274
274
  * @param permissionRules - Additional permission rules
275
275
  * @alpha
276
276
  */
277
- addPermissionRules(...permissionRules: CatalogPermissionRule[]): void;
277
+ addPermissionRules(...permissionRules: Array<CatalogPermissionRule | Array<CatalogPermissionRule>>): void;
278
278
  /**
279
279
  * Wires up and returns all of the component parts of the catalog
280
280
  */
@@ -531,7 +531,7 @@ export declare function createRandomProcessingInterval(options: {
531
531
 
532
532
  /**
533
533
  * @public
534
- * @deprecated Upgrade to a more recent `@backstage/search-backend-node` and
534
+ * @deprecated Upgrade to a more recent `@backstage/plugin-search-backend-node` and
535
535
  * use `DefaultCatalogCollatorFactory` instead.
536
536
  */
537
537
  export declare class DefaultCatalogCollator {
@@ -170,7 +170,7 @@ export declare class CatalogBuilder {
170
170
  *
171
171
  * @param policies - One or more policies
172
172
  */
173
- addEntityPolicy(...policies: EntityPolicy[]): CatalogBuilder;
173
+ addEntityPolicy(...policies: Array<EntityPolicy | Array<EntityPolicy>>): CatalogBuilder;
174
174
  /**
175
175
  * Processing interval determines how often entities should be processed.
176
176
  * Seconds provided will be multiplied by 1.5
@@ -229,14 +229,14 @@ export declare class CatalogBuilder {
229
229
  *
230
230
  * @param providers - One or more entity providers
231
231
  */
232
- addEntityProvider(...providers: EntityProvider[]): CatalogBuilder;
232
+ addEntityProvider(...providers: Array<EntityProvider | Array<EntityProvider>>): CatalogBuilder;
233
233
  /**
234
234
  * Adds entity processors. These are responsible for reading, parsing, and
235
235
  * processing entities before they are persisted in the catalog.
236
236
  *
237
237
  * @param processors - One or more processors
238
238
  */
239
- addProcessor(...processors: CatalogProcessor[]): CatalogBuilder;
239
+ addProcessor(...processors: Array<CatalogProcessor | Array<CatalogProcessor>>): CatalogBuilder;
240
240
  /**
241
241
  * Sets what entity processors to use. These are responsible for reading,
242
242
  * parsing, and processing entities before they are persisted in the catalog.
@@ -465,7 +465,7 @@ export declare function createRandomProcessingInterval(options: {
465
465
 
466
466
  /**
467
467
  * @public
468
- * @deprecated Upgrade to a more recent `@backstage/search-backend-node` and
468
+ * @deprecated Upgrade to a more recent `@backstage/plugin-search-backend-node` and
469
469
  * use `DefaultCatalogCollatorFactory` instead.
470
470
  */
471
471
  export declare class DefaultCatalogCollator {
package/dist/index.cjs.js CHANGED
@@ -3397,7 +3397,7 @@ class CatalogBuilder {
3397
3397
  return new CatalogBuilder(env);
3398
3398
  }
3399
3399
  addEntityPolicy(...policies) {
3400
- this.entityPolicies.push(...policies);
3400
+ this.entityPolicies.push(...policies.flat());
3401
3401
  return this;
3402
3402
  }
3403
3403
  setProcessingIntervalSeconds(seconds) {
@@ -3429,11 +3429,11 @@ class CatalogBuilder {
3429
3429
  return this;
3430
3430
  }
3431
3431
  addEntityProvider(...providers) {
3432
- this.entityProviders.push(...providers);
3432
+ this.entityProviders.push(...providers.flat());
3433
3433
  return this;
3434
3434
  }
3435
3435
  addProcessor(...processors) {
3436
- this.processors.push(...processors);
3436
+ this.processors.push(...processors.flat());
3437
3437
  return this;
3438
3438
  }
3439
3439
  replaceProcessors(processors) {
@@ -3456,7 +3456,7 @@ class CatalogBuilder {
3456
3456
  return this;
3457
3457
  }
3458
3458
  addPermissionRules(...permissionRules) {
3459
- this.permissionRules.push(...permissionRules);
3459
+ this.permissionRules.push(...permissionRules.flat());
3460
3460
  }
3461
3461
  async build() {
3462
3462
  var _a, _b;