@backstage-community/plugin-rbac-node 1.8.2 → 1.8.3

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-community/plugin-rbac-node [1.4.0](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-rbac-node@1.3.1...@backstage-community/plugin-rbac-node@1.4.0) (2024-07-26)
2
2
 
3
+ ## 1.8.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 4b3653a: Clean up api report warnings and remove unnecessary files
8
+
3
9
  ## 1.8.2
4
10
 
5
11
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"extensions.cjs.js","sources":["../src/extensions.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createExtensionPoint } from '@backstage/backend-plugin-api';\n\nimport { PluginIdProvider, RBACProvider } from './types';\n\n/**\n * An extension point the exposes the ability to configure additional PluginIDProviders.\n *\n * @public\n */\nexport const pluginIdProviderExtensionPoint =\n createExtensionPoint<PluginIdProviderExtensionPoint>({\n id: 'permission.rbac.pluginIdProvider',\n });\n\n/**\n * The interface for {@link pluginIdProviderExtensionPoint}.\n *\n * @public\n */\nexport type PluginIdProviderExtensionPoint = {\n addPluginIdProvider(pluginIdProvider: PluginIdProvider): void;\n};\n\nexport const rbacProviderExtensionPoint =\n createExtensionPoint<RBACProviderExtensionPoint>({\n id: 'permission.rbac.rbacProvider',\n });\n\nexport type RBACProviderExtensionPoint = {\n addRBACProvider(\n ...providers: Array<RBACProvider | Array<RBACProvider>>\n ): void;\n};\n"],"names":["createExtensionPoint"],"mappings":";;;;AAwBO,MAAM,iCACXA,qCAAqD,CAAA;AAAA,EACnD,EAAI,EAAA,kCAAA;AACN,CAAC,EAAA;AAWI,MAAM,6BACXA,qCAAiD,CAAA;AAAA,EAC/C,EAAI,EAAA,8BAAA;AACN,CAAC;;;;;"}
1
+ {"version":3,"file":"extensions.cjs.js","sources":["../src/extensions.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createExtensionPoint } from '@backstage/backend-plugin-api';\n\nimport { PluginIdProvider, RBACProvider } from './types';\n\n/**\n * An extension point the exposes the ability to configure additional PluginIDProviders.\n *\n * @public\n */\nexport const pluginIdProviderExtensionPoint =\n createExtensionPoint<PluginIdProviderExtensionPoint>({\n id: 'permission.rbac.pluginIdProvider',\n });\n\n/**\n * The interface for {@link pluginIdProviderExtensionPoint}.\n *\n * @public\n */\nexport type PluginIdProviderExtensionPoint = {\n addPluginIdProvider(pluginIdProvider: PluginIdProvider): void;\n};\n\n/**\n * @public\n */\nexport const rbacProviderExtensionPoint =\n createExtensionPoint<RBACProviderExtensionPoint>({\n id: 'permission.rbac.rbacProvider',\n });\n\n/**\n * @public\n */\nexport type RBACProviderExtensionPoint = {\n addRBACProvider(\n ...providers: Array<RBACProvider | Array<RBACProvider>>\n ): void;\n};\n"],"names":["createExtensionPoint"],"mappings":";;;;AAwBO,MAAM,iCACXA,qCAAqD,CAAA;AAAA,EACnD,EAAI,EAAA;AACN,CAAC;AAcI,MAAM,6BACXA,qCAAiD,CAAA;AAAA,EAC/C,EAAI,EAAA;AACN,CAAC;;;;;"}
package/dist/index.d.ts CHANGED
@@ -7,11 +7,17 @@ import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
7
7
  interface PluginIdProvider {
8
8
  getPluginIds: () => string[];
9
9
  }
10
+ /**
11
+ * @public
12
+ */
10
13
  interface RBACProvider {
11
14
  getProviderName(): string;
12
15
  connect(connection: RBACProviderConnection): Promise<void>;
13
16
  refresh(): Promise<void>;
14
17
  }
18
+ /**
19
+ * @public
20
+ */
15
21
  interface RBACProviderConnection {
16
22
  applyRoles(roles: string[][]): Promise<void>;
17
23
  applyPermissions(permissions: string[][]): Promise<void>;
@@ -31,7 +37,13 @@ declare const pluginIdProviderExtensionPoint: _backstage_backend_plugin_api.Exte
31
37
  type PluginIdProviderExtensionPoint = {
32
38
  addPluginIdProvider(pluginIdProvider: PluginIdProvider): void;
33
39
  };
40
+ /**
41
+ * @public
42
+ */
34
43
  declare const rbacProviderExtensionPoint: _backstage_backend_plugin_api.ExtensionPoint<RBACProviderExtensionPoint>;
44
+ /**
45
+ * @public
46
+ */
35
47
  type RBACProviderExtensionPoint = {
36
48
  addRBACProvider(...providers: Array<RBACProvider | Array<RBACProvider>>): void;
37
49
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-rbac-node",
3
3
  "description": "Node.js library for the rbac plugin",
4
- "version": "1.8.2",
4
+ "version": "1.8.3",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -58,5 +58,15 @@
58
58
  "keywords": [
59
59
  "support:production",
60
60
  "lifecycle:active"
61
- ]
61
+ ],
62
+ "prettier": "@spotify/prettier-config",
63
+ "lint-staged": {
64
+ "*.{js,jsx,ts,tsx,mjs,cjs}": [
65
+ "eslint --fix",
66
+ "prettier --write"
67
+ ],
68
+ "*.{json,md}": [
69
+ "prettier --write"
70
+ ]
71
+ }
62
72
  }