Version Packages
This commit is contained in:
@@ -1,5 +1,34 @@
|
||||
# @backstage/plugin-permission-common
|
||||
|
||||
## 0.6.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 8012ac46a0: Add `resourceType` property to `PermissionCondition` type to allow matching them with `ResourcePermission` instances.
|
||||
- c98d271466: Refactor api types into more specific, decoupled names.
|
||||
|
||||
- **BREAKING:**
|
||||
- Renamed `AuthorizeDecision` to `EvaluatePermissionResponse`
|
||||
- Renamed `AuthorizeQuery` to `EvaluatePermissionRequest`
|
||||
- Renamed `AuthorizeRequest` to `EvaluatePermissionRequestBatch`
|
||||
- Renamed `AuthorizeResponse` to `EvaluatePermissionResponseBatch`
|
||||
- Renamed `Identified` to `IdentifiedPermissionMessage`
|
||||
- Add `PermissionMessageBatch` helper type
|
||||
- Add `ConditionalPolicyDecision`, `DefinitivePolicyDecision`, and `PolicyDecision` types from `@backstage/plugin-permission-node`
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 90754d4fa9: Removed [strict](https://github.com/colinhacks/zod#strict) validation from `PermissionCriteria` schemas to support backward-compatible changes.
|
||||
- 2b07063d77: Added `PermissionEvaluator`, which will replace the existing `PermissionAuthorizer` interface. This new interface provides stronger type safety and validation by splitting `PermissionAuthorizer.authorize()` into two methods:
|
||||
|
||||
- `authorize()`: Used when the caller requires a definitive decision.
|
||||
- `authorizeConditional()`: Used when the caller can optimize the evaluation of any conditional decisions. For example, a plugin backend may want to use conditions in a database query instead of evaluating each resource in memory.
|
||||
|
||||
- 8012ac46a0: Add `isPermission` helper method.
|
||||
- 95284162d6: - Add more specific `Permission` types.
|
||||
- Add `createPermission` helper to infer the appropriate type for some permission input.
|
||||
- Add `isResourcePermission` helper to refine Permissions to ResourcePermissions.
|
||||
|
||||
## 0.6.0-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-permission-common",
|
||||
"description": "Isomorphic types and client for Backstage permissions and authorization",
|
||||
"version": "0.6.0-next.1",
|
||||
"version": "0.6.0",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"publishConfig": {
|
||||
@@ -48,7 +48,7 @@
|
||||
"zod": "^3.11.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@backstage/cli": "^0.17.0-next.3",
|
||||
"@backstage/cli": "^0.17.0",
|
||||
"@types/jest": "^26.0.7",
|
||||
"msw": "^0.35.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user