@backstage/plugin-permission-common
Advanced tools
Comparing version 0.4.0 to 0.5.0
# @backstage/plugin-permission-common | ||
## 0.5.0 | ||
### Minor Changes | ||
- 8c646beb24: **BREAKING** `PermissionCriteria` now requires at least one condition in `anyOf` and `allOf` arrays. This addresses some ambiguous behavior outlined in #9280. | ||
### Patch Changes | ||
- 1ed305728b: Bump `node-fetch` to version 2.6.7 and `cross-fetch` to version 3.1.5 | ||
- c77c5c7eb6: Added `backstage.role` to `package.json` | ||
- Updated dependencies | ||
- @backstage/errors@0.2.1 | ||
- @backstage/config@0.1.14 | ||
## 0.4.0 | ||
@@ -4,0 +18,0 @@ |
@@ -56,3 +56,3 @@ 'use strict'; | ||
params: zod.z.array(zod.z.unknown()) | ||
}).or(zod.z.object({ anyOf: zod.z.array(permissionCriteriaSchema) })).or(zod.z.object({ allOf: zod.z.array(permissionCriteriaSchema) })).or(zod.z.object({ not: permissionCriteriaSchema }))); | ||
}).strict().or(zod.z.object({ anyOf: zod.z.array(permissionCriteriaSchema).nonempty() }).strict()).or(zod.z.object({ allOf: zod.z.array(permissionCriteriaSchema).nonempty() }).strict()).or(zod.z.object({ not: permissionCriteriaSchema }).strict())); | ||
const responseSchema = zod.z.object({ | ||
@@ -59,0 +59,0 @@ items: zod.z.array(zod.z.object({ |
@@ -29,3 +29,3 @@ import { ResponseError } from '@backstage/errors'; | ||
params: z.array(z.unknown()) | ||
}).or(z.object({ anyOf: z.array(permissionCriteriaSchema) })).or(z.object({ allOf: z.array(permissionCriteriaSchema) })).or(z.object({ not: permissionCriteriaSchema }))); | ||
}).strict().or(z.object({ anyOf: z.array(permissionCriteriaSchema).nonempty() }).strict()).or(z.object({ allOf: z.array(permissionCriteriaSchema).nonempty() }).strict()).or(z.object({ not: permissionCriteriaSchema }).strict())); | ||
const responseSchema = z.object({ | ||
@@ -32,0 +32,0 @@ items: z.array(z.object({ |
{ | ||
"name": "@backstage/plugin-permission-common", | ||
"description": "Isomorphic types and client for Backstage permissions and authorization", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"main": "dist/index.cjs.js", | ||
@@ -13,2 +13,5 @@ "types": "dist/index.d.ts", | ||
}, | ||
"backstage": { | ||
"role": "common-library" | ||
}, | ||
"homepage": "https://backstage.io", | ||
@@ -31,8 +34,8 @@ "repository": { | ||
"scripts": { | ||
"build": "backstage-cli build", | ||
"lint": "backstage-cli lint", | ||
"test": "backstage-cli test", | ||
"prepack": "backstage-cli prepack", | ||
"postpack": "backstage-cli postpack", | ||
"clean": "backstage-cli clean" | ||
"build": "backstage-cli package build", | ||
"lint": "backstage-cli package lint", | ||
"test": "backstage-cli package test", | ||
"prepack": "backstage-cli package prepack", | ||
"postpack": "backstage-cli package postpack", | ||
"clean": "backstage-cli package clean" | ||
}, | ||
@@ -43,5 +46,5 @@ "bugs": { | ||
"dependencies": { | ||
"@backstage/config": "^0.1.13", | ||
"@backstage/errors": "^0.2.0", | ||
"cross-fetch": "^3.0.6", | ||
"@backstage/config": "^0.1.14", | ||
"@backstage/errors": "^0.2.1", | ||
"cross-fetch": "^3.1.5", | ||
"uuid": "^8.0.0", | ||
@@ -51,8 +54,8 @@ "zod": "^3.11.6" | ||
"devDependencies": { | ||
"@backstage/cli": "^0.12.0", | ||
"@backstage/cli": "^0.14.0", | ||
"@types/jest": "^26.0.7", | ||
"msw": "^0.35.0" | ||
}, | ||
"gitHead": "600d6e3c854bbfb12a0078ca6f726d1c0d1fea0b", | ||
"gitHead": "4805c3d13ce9bfc369e53c271b1b95e722b3b4dc", | ||
"module": "dist/index.esm.js" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48896
9
225
Updated@backstage/config@^0.1.14
Updated@backstage/errors@^0.2.1
Updatedcross-fetch@^3.1.5