@backstage/plugin-catalog-backend 1.1.0 → 1.1.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,11 @@
1
1
  # @backstage/plugin-catalog-backend
2
2
 
3
+ ## 1.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 777f2125ac: Fixed issue in `PermissionEvaluator` instance check that would cause unexpected "invalid union" errors.
8
+
3
9
  ## 1.1.0
4
10
 
5
11
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "main": "../dist/index.cjs.js",
5
5
  "types": "../dist/index.alpha.d.ts"
6
6
  }
package/dist/index.cjs.js CHANGED
@@ -3475,7 +3475,7 @@ class CatalogBuilder {
3475
3475
  });
3476
3476
  const unauthorizedEntitiesCatalog = new DefaultEntitiesCatalog(dbClient);
3477
3477
  let permissionEvaluator;
3478
- if ("query" in permissions) {
3478
+ if ("authorizeConditional" in permissions) {
3479
3479
  permissionEvaluator = permissions;
3480
3480
  } else {
3481
3481
  logger.warn("PermissionAuthorizer is deprecated. Please use an instance of PermissionEvaluator instead of PermissionAuthorizer in PluginEnvironment#permissions");