@backstage/plugin-devtools-backend 0.4.0-next.1 → 0.4.0

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +24 -19
  3. package/package.json +9 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,49 @@
1
1
  # @backstage/plugin-devtools-backend
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d425fc4: **BREAKING**: The return values from `createBackendPlugin`, `createBackendModule`, and `createServiceFactory` are now simply `BackendFeature` and `ServiceFactory`, instead of the previously deprecated form of a function that returns them. For this reason, `createServiceFactory` also no longer accepts the callback form where you provide direct options to the service. This also affects all `coreServices.*` service refs.
8
+
9
+ This may in particular affect tests; if you were effectively doing `createBackendModule({...})()` (note the parentheses), you can now remove those extra parentheses at the end. You may encounter cases of this in your `packages/backend/src/index.ts` too, where you add plugins, modules, and services. If you were using `createServiceFactory` with a function as its argument for the purpose of passing in options, this pattern has been deprecated for a while and is no longer supported. You may want to explore the new multiton patterns to achieve your goals, or moving settings to app-config.
10
+
11
+ As part of this change, the `IdentityFactoryOptions` type was removed, and can no longer be used to tweak that service. The identity service was also deprecated some time ago, and you will want to [migrate to the new auth system](https://backstage.io/docs/tutorials/auth-service-migration) if you still rely on it.
12
+
13
+ ### Patch Changes
14
+
15
+ - 5d1670f: Update README installation instructions
16
+ - c2b63ab: Updated dependency `supertest` to `^7.0.0`.
17
+ - Updated dependencies
18
+ - @backstage/backend-common@0.25.0
19
+ - @backstage/backend-plugin-api@1.0.0
20
+ - @backstage/plugin-permission-node@0.8.3
21
+ - @backstage/config-loader@1.9.1
22
+ - @backstage/cli-common@0.1.14
23
+ - @backstage/config@1.2.0
24
+ - @backstage/errors@1.2.4
25
+ - @backstage/types@1.1.1
26
+ - @backstage/plugin-devtools-common@0.1.12
27
+ - @backstage/plugin-permission-common@0.8.1
28
+
29
+ ## 0.4.0-next.2
30
+
31
+ ### Patch Changes
32
+
33
+ - 5d1670f: Update README installation instructions
34
+ - c2b63ab: Updated dependency `supertest` to `^7.0.0`.
35
+ - Updated dependencies
36
+ - @backstage/backend-common@0.25.0-next.2
37
+ - @backstage/backend-plugin-api@1.0.0-next.2
38
+ - @backstage/config-loader@1.9.1-next.0
39
+ - @backstage/plugin-permission-node@0.8.3-next.2
40
+ - @backstage/cli-common@0.1.14
41
+ - @backstage/config@1.2.0
42
+ - @backstage/errors@1.2.4
43
+ - @backstage/types@1.1.1
44
+ - @backstage/plugin-devtools-common@0.1.12
45
+ - @backstage/plugin-permission-common@0.8.1
46
+
3
47
  ## 0.4.0-next.1
4
48
 
5
49
  ### Patch Changes
package/README.md CHANGED
@@ -4,7 +4,30 @@ Welcome to the DevTools backend plugin! This plugin provides data for the [DevTo
4
4
 
5
5
  ## Setup
6
6
 
7
- Here's how to get the DevTools Backend up and running:
7
+ Here's how to get the DevTools Backend up and running in the new backend system:
8
+
9
+ 1. First we need to add the `@backstage/plugin-devtools-backend` package to your backend:
10
+
11
+ ```sh
12
+ # From the Backstage root directory
13
+ yarn --cwd packages/backend add @backstage/plugin-devtools-backend
14
+ ```
15
+
16
+ 2. Then add the plugin to your backend index file:
17
+
18
+ ```ts
19
+ // In packages/backend/src/index.ts
20
+ const backend = createBackend();
21
+ // ... other feature additions
22
+ backend.add(import('@backstage/plugin-devtools-backend'));
23
+ ```
24
+
25
+ 3. Now run `yarn start-backend` from the repo root
26
+ 4. Finally open `http://localhost:7007/api/devtools/health` in a browser and it should return `{"status":"ok"}`
27
+
28
+ ## Old Backend System
29
+
30
+ If you are still on the old backend system, please consider migrating to the new backend system. But to install this plugin in an old backend, see below.
8
31
 
9
32
  1. First we need to add the `@backstage/plugin-devtools-backend` package to your backend:
10
33
 
@@ -50,24 +73,6 @@ Here's how to get the DevTools Backend up and running:
50
73
  4. Now run `yarn start-backend` from the repo root
51
74
  5. Finally open `http://localhost:7007/api/devtools/health` in a browser and it should return `{"status":"ok"}`
52
75
 
53
- ### New Backend System
54
-
55
- The DevTools backend plugin has support for the [new backend system](https://backstage.io/docs/backend-system/), here's how you can set that up:
56
-
57
- In your `packages/backend/src/index.ts` make the following changes:
58
-
59
- ```diff
60
- import { createBackend } from '@backstage/backend-defaults';
61
-
62
- const backend = createBackend();
63
-
64
- // ... other feature additions
65
-
66
- + backend.add(import('@backstage/plugin-devtools-backend'));
67
-
68
- backend.start();
69
- ```
70
-
71
76
  ## Links
72
77
 
73
78
  - [Frontend part of the plugin](https://github.com/backstage/backstage/tree/master/plugins/devtools)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-devtools-backend",
3
- "version": "0.4.0-next.1",
3
+ "version": "0.4.0",
4
4
  "backstage": {
5
5
  "role": "backend-plugin",
6
6
  "pluginId": "devtools",
@@ -38,15 +38,15 @@
38
38
  "test": "backstage-cli package test"
39
39
  },
40
40
  "dependencies": {
41
- "@backstage/backend-common": "^0.25.0-next.1",
42
- "@backstage/backend-plugin-api": "^0.9.0-next.1",
41
+ "@backstage/backend-common": "^0.25.0",
42
+ "@backstage/backend-plugin-api": "^1.0.0",
43
43
  "@backstage/cli-common": "^0.1.14",
44
44
  "@backstage/config": "^1.2.0",
45
- "@backstage/config-loader": "^1.9.0",
45
+ "@backstage/config-loader": "^1.9.1",
46
46
  "@backstage/errors": "^1.2.4",
47
47
  "@backstage/plugin-devtools-common": "^0.1.12",
48
48
  "@backstage/plugin-permission-common": "^0.8.1",
49
- "@backstage/plugin-permission-node": "^0.8.3-next.1",
49
+ "@backstage/plugin-permission-node": "^0.8.3",
50
50
  "@backstage/types": "^1.1.1",
51
51
  "@manypkg/get-packages": "^1.1.3",
52
52
  "@types/express": "*",
@@ -62,13 +62,13 @@
62
62
  "yn": "^4.0.0"
63
63
  },
64
64
  "devDependencies": {
65
- "@backstage/backend-defaults": "^0.5.0-next.1",
66
- "@backstage/backend-test-utils": "^0.6.0-next.1",
67
- "@backstage/cli": "^0.27.1-next.1",
65
+ "@backstage/backend-defaults": "^0.5.0",
66
+ "@backstage/backend-test-utils": "^1.0.0",
67
+ "@backstage/cli": "^0.27.1",
68
68
  "@types/ping": "^0.4.1",
69
69
  "@types/supertest": "^2.0.8",
70
70
  "@types/yarnpkg__lockfile": "^1.1.4",
71
- "supertest": "^6.2.4"
71
+ "supertest": "^7.0.0"
72
72
  },
73
73
  "configSchema": "config.d.ts"
74
74
  }