@backstage/plugin-permission-backend 0.5.0 → 0.5.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,37 @@
1
1
  # @backstage/plugin-permission-backend
2
2
 
3
+ ## 0.5.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/backend-common@0.12.0
9
+ - @backstage/plugin-permission-common@0.5.2
10
+ - @backstage/plugin-permission-node@0.5.3
11
+ - @backstage/plugin-auth-node@0.1.4
12
+
13
+ ## 0.5.2
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+ - @backstage/backend-common@0.11.0
19
+ - @backstage/plugin-permission-node@0.5.2
20
+ - @backstage/plugin-auth-node@0.1.3
21
+
22
+ ## 0.5.1
23
+
24
+ ### Patch Changes
25
+
26
+ - Fix for the previous release with missing type declarations.
27
+ - Updated dependencies
28
+ - @backstage/backend-common@0.10.9
29
+ - @backstage/config@0.1.15
30
+ - @backstage/errors@0.2.2
31
+ - @backstage/plugin-auth-node@0.1.2
32
+ - @backstage/plugin-permission-common@0.5.1
33
+ - @backstage/plugin-permission-node@0.5.1
34
+
3
35
  ## 0.5.0
4
36
 
5
37
  ### Minor Changes
@@ -0,0 +1,29 @@
1
+ import express from 'express';
2
+ import { Logger } from 'winston';
3
+ import { PluginEndpointDiscovery } from '@backstage/backend-common';
4
+ import { IdentityClient } from '@backstage/plugin-auth-node';
5
+ import { PermissionPolicy } from '@backstage/plugin-permission-node';
6
+ import { Config } from '@backstage/config';
7
+
8
+ /**
9
+ * Options required when constructing a new {@link express#Router} using
10
+ * {@link createRouter}.
11
+ *
12
+ * @public
13
+ */
14
+ interface RouterOptions {
15
+ logger: Logger;
16
+ discovery: PluginEndpointDiscovery;
17
+ policy: PermissionPolicy;
18
+ identity: IdentityClient;
19
+ config: Config;
20
+ }
21
+ /**
22
+ * Creates a new {@link express#Router} which provides the backend API
23
+ * for the permission system.
24
+ *
25
+ * @public
26
+ */
27
+ declare function createRouter(options: RouterOptions): Promise<express.Router>;
28
+
29
+ export { RouterOptions, createRouter };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-permission-backend",
3
- "version": "0.5.0",
3
+ "version": "0.5.3",
4
4
  "main": "dist/index.cjs.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "license": "Apache-2.0",
@@ -22,12 +22,12 @@
22
22
  "clean": "backstage-cli package clean"
23
23
  },
24
24
  "dependencies": {
25
- "@backstage/backend-common": "^0.10.8",
26
- "@backstage/config": "^0.1.14",
27
- "@backstage/errors": "^0.2.1",
28
- "@backstage/plugin-auth-node": "^0.1.1",
29
- "@backstage/plugin-permission-common": "^0.5.0",
30
- "@backstage/plugin-permission-node": "^0.5.0",
25
+ "@backstage/backend-common": "^0.12.0",
26
+ "@backstage/config": "^0.1.15",
27
+ "@backstage/errors": "^0.2.2",
28
+ "@backstage/plugin-auth-node": "^0.1.4",
29
+ "@backstage/plugin-permission-common": "^0.5.2",
30
+ "@backstage/plugin-permission-node": "^0.5.3",
31
31
  "@types/express": "*",
32
32
  "dataloader": "^2.0.0",
33
33
  "express": "^4.17.1",
@@ -39,7 +39,7 @@
39
39
  "zod": "^3.11.6"
40
40
  },
41
41
  "devDependencies": {
42
- "@backstage/cli": "^0.14.0",
42
+ "@backstage/cli": "^0.15.0",
43
43
  "@types/lodash": "^4.14.151",
44
44
  "@types/supertest": "^2.0.8",
45
45
  "msw": "^0.35.0",
@@ -48,5 +48,5 @@
48
48
  "files": [
49
49
  "dist"
50
50
  ],
51
- "gitHead": "4805c3d13ce9bfc369e53c271b1b95e722b3b4dc"
51
+ "gitHead": "04bb0dd824b78f6b57dac62c3015e681f094045c"
52
52
  }