@backstage/backend-plugin-api 1.1.0-next.1 → 1.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,42 @@
1
1
  # @backstage/backend-plugin-api
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 12eac85: **EXPERIMENTAL**: Adds a new `instanceMetadataService` to hold information about a specific backend instance.
8
+
9
+ ### Patch Changes
10
+
11
+ - eef3ef1: Removed unused `express` dependencies.
12
+ - 0e9c9fa: The `RootLifecycleService` now has a new `addBeforeShutdownHook` method, and hooks added through this method will run immediately when a termination event is received.
13
+
14
+ The backend will not proceed with the shutdown and run the `Shutdown` hooks until all `BeforeShutdown` hooks have completed.
15
+
16
+ - Updated dependencies
17
+ - @backstage/plugin-auth-node@0.5.5
18
+ - @backstage/errors@1.2.6
19
+ - @backstage/cli-common@0.1.15
20
+ - @backstage/config@1.3.1
21
+ - @backstage/types@1.2.0
22
+ - @backstage/plugin-permission-common@0.8.3
23
+
24
+ ## 1.1.0-next.2
25
+
26
+ ### Patch Changes
27
+
28
+ - 0e9c9fa: The `RootLifecycleService` now has a new `addBeforeShutdownHook` method, and hooks added through this method will run immediately when a termination event is received.
29
+
30
+ The backend will not proceed with the shutdown and run the `Shutdown` hooks until all `BeforeShutdown` hooks have completed.
31
+
32
+ - Updated dependencies
33
+ - @backstage/errors@1.2.6-next.0
34
+ - @backstage/plugin-auth-node@0.5.5-next.2
35
+ - @backstage/cli-common@0.1.15
36
+ - @backstage/config@1.3.1-next.0
37
+ - @backstage/types@1.2.0
38
+ - @backstage/plugin-permission-common@0.8.3-next.0
39
+
3
40
  ## 1.1.0-next.1
4
41
 
5
42
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -726,6 +726,7 @@ interface LifecycleService {
726
726
  * @public
727
727
  */
728
728
  interface RootLifecycleService extends LifecycleService {
729
+ addBeforeShutdownHook(hook: () => void | Promise<void>): void;
729
730
  }
730
731
 
731
732
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/backend-plugin-api",
3
- "version": "1.1.0-next.1",
3
+ "version": "1.1.0",
4
4
  "description": "Core API used by Backstage backend plugins",
5
5
  "backstage": {
6
6
  "role": "node-library"
@@ -65,20 +65,20 @@
65
65
  "test": "backstage-cli package test"
66
66
  },
67
67
  "dependencies": {
68
- "@backstage/cli-common": "0.1.15",
69
- "@backstage/config": "1.3.0",
70
- "@backstage/errors": "1.2.5",
71
- "@backstage/plugin-auth-node": "0.5.5-next.1",
72
- "@backstage/plugin-permission-common": "0.8.2",
73
- "@backstage/types": "1.2.0",
68
+ "@backstage/cli-common": "^0.1.15",
69
+ "@backstage/config": "^1.3.1",
70
+ "@backstage/errors": "^1.2.6",
71
+ "@backstage/plugin-auth-node": "^0.5.5",
72
+ "@backstage/plugin-permission-common": "^0.8.3",
73
+ "@backstage/types": "^1.2.0",
74
74
  "@types/express": "^4.17.6",
75
75
  "@types/luxon": "^3.0.0",
76
76
  "knex": "^3.0.0",
77
77
  "luxon": "^3.0.0"
78
78
  },
79
79
  "devDependencies": {
80
- "@backstage/backend-test-utils": "1.2.0-next.1",
81
- "@backstage/cli": "0.29.3-next.1"
80
+ "@backstage/backend-test-utils": "^1.2.0",
81
+ "@backstage/cli": "^0.29.4"
82
82
  },
83
83
  "configSchema": "config.d.ts"
84
84
  }