New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@backstage/plugin-permission-common

Package Overview
Dependencies
Maintainers
4
Versions
500
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@backstage/plugin-permission-common - npm Package Compare versions

Comparing version 0.0.0-nightly-20220418024512 to 0.0.0-nightly-20220419024359

3

CHANGELOG.md
# @backstage/plugin-permission-common
## 0.0.0-nightly-20220418024512
## 0.0.0-nightly-20220419024359

@@ -21,2 +21,3 @@ ### Minor 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:

@@ -23,0 +24,0 @@

@@ -98,3 +98,3 @@ 'use strict';

params: zod.z.array(zod.z.unknown())
}).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()));
}).or(zod.z.object({ anyOf: zod.z.array(permissionCriteriaSchema).nonempty() })).or(zod.z.object({ allOf: zod.z.array(permissionCriteriaSchema).nonempty() })).or(zod.z.object({ not: permissionCriteriaSchema })));
const authorizePermissionResponseSchema = zod.z.object({

@@ -101,0 +101,0 @@ result: zod.z.literal(AuthorizeResult.ALLOW).or(zod.z.literal(AuthorizeResult.DENY))

@@ -71,3 +71,3 @@ import { ResponseError } from '@backstage/errors';

params: z.array(z.unknown())
}).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()));
}).or(z.object({ anyOf: z.array(permissionCriteriaSchema).nonempty() })).or(z.object({ allOf: z.array(permissionCriteriaSchema).nonempty() })).or(z.object({ not: permissionCriteriaSchema })));
const authorizePermissionResponseSchema = z.object({

@@ -74,0 +74,0 @@ result: z.literal(AuthorizeResult.ALLOW).or(z.literal(AuthorizeResult.DENY))

{
"name": "@backstage/plugin-permission-common",
"description": "Isomorphic types and client for Backstage permissions and authorization",
"version": "0.0.0-nightly-20220418024512",
"version": "0.0.0-nightly-20220419024359",
"main": "dist/index.cjs.js",

@@ -51,3 +51,3 @@ "types": "dist/index.d.ts",

"devDependencies": {
"@backstage/cli": "^0.0.0-nightly-20220418024512",
"@backstage/cli": "^0.0.0-nightly-20220419024359",
"@types/jest": "^26.0.7",

@@ -54,0 +54,0 @@ "msw": "^0.35.0"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc