@backstage/plugin-catalog-backend 1.2.0-next.1 → 1.2.1-next.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,59 @@
1
1
  # @backstage/plugin-catalog-backend
2
2
 
3
+ ## 1.2.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/backend-common@0.14.1-next.0
9
+ - @backstage/catalog-model@1.1.0-next.0
10
+ - @backstage/integration@1.2.2-next.0
11
+ - @backstage/plugin-permission-node@0.6.3-next.0
12
+ - @backstage/catalog-client@1.0.4-next.0
13
+ - @backstage/plugin-scaffolder-common@1.1.2-next.0
14
+
15
+ ## 1.2.0
16
+
17
+ ### Minor Changes
18
+
19
+ - b594679ae3: Allow array as non-spread arguments at the `CatalogBuilder`.
20
+
21
+ ```typescript
22
+ builder.addEntityProvider(...getArrayOfProviders());
23
+ ```
24
+
25
+ can be simplified to
26
+
27
+ ```typescript
28
+ builder.addEntityProvider(getArrayOfProviders());
29
+ ```
30
+
31
+ ### Patch Changes
32
+
33
+ - 8838b13038: Disallow anything but `'url'` locations from being registered via the location service.
34
+ - 8f7b1835df: Updated dependency `msw` to `^0.41.0`.
35
+ - Updated dependencies
36
+ - @backstage/plugin-search-common@0.3.5
37
+ - @backstage/plugin-permission-node@0.6.2
38
+ - @backstage/plugin-catalog-common@1.0.3
39
+ - @backstage/backend-common@0.14.0
40
+ - @backstage/integration@1.2.1
41
+ - @backstage/catalog-client@1.0.3
42
+ - @backstage/plugin-permission-common@0.6.2
43
+ - @backstage/catalog-model@1.0.3
44
+ - @backstage/plugin-scaffolder-common@1.1.1
45
+
46
+ ## 1.2.0-next.2
47
+
48
+ ### Patch Changes
49
+
50
+ - Updated dependencies
51
+ - @backstage/plugin-search-common@0.3.5-next.1
52
+ - @backstage/plugin-catalog-common@1.0.3-next.1
53
+ - @backstage/backend-common@0.14.0-next.2
54
+ - @backstage/integration@1.2.1-next.2
55
+ - @backstage/plugin-permission-node@0.6.2-next.2
56
+
3
57
  ## 1.2.0-next.1
4
58
 
5
59
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend",
3
- "version": "1.2.0-next.1",
3
+ "version": "1.2.1-next.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
  }