@backstage/plugin-catalog-backend 1.2.0-next.2 → 1.2.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,36 @@
1
1
  # @backstage/plugin-catalog-backend
2
2
 
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b594679ae3: Allow array as non-spread arguments at the `CatalogBuilder`.
8
+
9
+ ```typescript
10
+ builder.addEntityProvider(...getArrayOfProviders());
11
+ ```
12
+
13
+ can be simplified to
14
+
15
+ ```typescript
16
+ builder.addEntityProvider(getArrayOfProviders());
17
+ ```
18
+
19
+ ### Patch Changes
20
+
21
+ - 8838b13038: Disallow anything but `'url'` locations from being registered via the location service.
22
+ - 8f7b1835df: Updated dependency `msw` to `^0.41.0`.
23
+ - Updated dependencies
24
+ - @backstage/plugin-search-common@0.3.5
25
+ - @backstage/plugin-permission-node@0.6.2
26
+ - @backstage/plugin-catalog-common@1.0.3
27
+ - @backstage/backend-common@0.14.0
28
+ - @backstage/integration@1.2.1
29
+ - @backstage/catalog-client@1.0.3
30
+ - @backstage/plugin-permission-common@0.6.2
31
+ - @backstage/catalog-model@1.0.3
32
+ - @backstage/plugin-scaffolder-common@1.1.1
33
+
3
34
  ## 1.2.0-next.2
4
35
 
5
36
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend",
3
- "version": "1.2.0-next.2",
3
+ "version": "1.2.0",
4
4
  "main": "../dist/index.cjs.js",
5
5
  "types": "../dist/index.alpha.d.ts"
6
6
  }
package/dist/index.cjs.js CHANGED
@@ -1926,6 +1926,9 @@ class DefaultLocationService {
1926
1926
  this.orchestrator = orchestrator;
1927
1927
  }
1928
1928
  async createLocation(input, dryRun) {
1929
+ if (input.type !== "url") {
1930
+ throw new errors.InputError(`Registered locations must be of type 'url'`);
1931
+ }
1929
1932
  if (dryRun) {
1930
1933
  return this.dryRunCreateLocation(input);
1931
1934
  }