@backstage/plugin-proxy-backend 0.2.17-next.1 → 0.2.19

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,58 @@
1
1
  # @backstage/plugin-proxy-backend
2
2
 
3
+ ## 0.2.19
4
+
5
+ ### Patch Changes
6
+
7
+ - c77c5c7eb6: Added `backstage.role` to `package.json`
8
+ - Updated dependencies
9
+ - @backstage/backend-common@0.10.8
10
+ - @backstage/config@0.1.14
11
+
12
+ ## 0.2.18
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+ - @backstage/backend-common@0.10.7
18
+
19
+ ## 0.2.18-next.0
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies
24
+ - @backstage/backend-common@0.10.7-next.0
25
+
26
+ ## 0.2.17
27
+
28
+ ### Patch Changes
29
+
30
+ - 332d3decb2: Adds a new option `skipInvalidTargets` for the proxy `createRouter` which allows the proxy backend to be started with an invalid proxy configuration. If configured, it will simply skip the failed proxy and mount the other valid proxies.
31
+
32
+ To configure it to pass by failing proxies:
33
+
34
+ ```
35
+ const router = await createRouter({
36
+ config,
37
+ logger,
38
+ discovery,
39
+ skipInvalidProxies: true,
40
+ });
41
+ ```
42
+
43
+ If you would like it to fail if a proxy is configured badly:
44
+
45
+ ```
46
+ const router = await createRouter({
47
+ config,
48
+ logger,
49
+ discovery,
50
+ });
51
+ ```
52
+
53
+ - Updated dependencies
54
+ - @backstage/backend-common@0.10.6
55
+
3
56
  ## 0.2.17-next.1
4
57
 
5
58
  ### Patch Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/plugin-proxy-backend",
3
3
  "description": "A Backstage backend plugin that helps you set up proxy endpoints in the backend",
4
- "version": "0.2.17-next.1",
4
+ "version": "0.2.19",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -10,6 +10,9 @@
10
10
  "main": "dist/index.cjs.js",
11
11
  "types": "dist/index.d.ts"
12
12
  },
13
+ "backstage": {
14
+ "role": "backend-plugin"
15
+ },
13
16
  "homepage": "https://backstage.io",
14
17
  "repository": {
15
18
  "type": "git",
@@ -20,17 +23,17 @@
20
23
  "backstage"
21
24
  ],
22
25
  "scripts": {
23
- "start": "backstage-cli backend:dev",
24
- "build": "backstage-cli backend:build",
25
- "lint": "backstage-cli lint",
26
- "test": "backstage-cli test",
27
- "prepack": "backstage-cli prepack",
28
- "postpack": "backstage-cli postpack",
29
- "clean": "backstage-cli clean"
26
+ "start": "backstage-cli package start",
27
+ "build": "backstage-cli package build",
28
+ "lint": "backstage-cli package lint",
29
+ "test": "backstage-cli package test",
30
+ "prepack": "backstage-cli package prepack",
31
+ "postpack": "backstage-cli package postpack",
32
+ "clean": "backstage-cli package clean"
30
33
  },
31
34
  "dependencies": {
32
- "@backstage/backend-common": "^0.10.6-next.0",
33
- "@backstage/config": "^0.1.13",
35
+ "@backstage/backend-common": "^0.10.8",
36
+ "@backstage/config": "^0.1.14",
34
37
  "@types/express": "^4.17.6",
35
38
  "express": "^4.17.1",
36
39
  "express-promise-router": "^4.1.0",
@@ -43,7 +46,7 @@
43
46
  "yup": "^0.32.9"
44
47
  },
45
48
  "devDependencies": {
46
- "@backstage/cli": "^0.13.1-next.1",
49
+ "@backstage/cli": "^0.14.0",
47
50
  "@types/http-proxy-middleware": "^0.19.3",
48
51
  "@types/supertest": "^2.0.8",
49
52
  "@types/uuid": "^8.0.0",
@@ -55,5 +58,5 @@
55
58
  "config.d.ts"
56
59
  ],
57
60
  "configSchema": "config.d.ts",
58
- "gitHead": "d6da97a1edeb21fcefc682d91916987ba9f3d89a"
61
+ "gitHead": "4805c3d13ce9bfc369e53c271b1b95e722b3b4dc"
59
62
  }
package/dist/index.d.ts DELETED
@@ -1,14 +0,0 @@
1
- import { Config } from '@backstage/config';
2
- import express from 'express';
3
- import { Logger } from 'winston';
4
- import { PluginEndpointDiscovery } from '@backstage/backend-common';
5
-
6
- interface RouterOptions {
7
- logger: Logger;
8
- config: Config;
9
- discovery: PluginEndpointDiscovery;
10
- skipInvalidProxies?: boolean;
11
- }
12
- declare function createRouter(options: RouterOptions): Promise<express.Router>;
13
-
14
- export { createRouter };