@backstage/backend-plugin-api 1.1.0-next.1 → 1.1.0-next.2

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,21 @@
1
1
  # @backstage/backend-plugin-api
2
2
 
3
+ ## 1.1.0-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 0e9c9fa: The `RootLifecycleService` now has a new `addBeforeShutdownHook` method, and hooks added through this method will run immediately when a termination event is received.
8
+
9
+ The backend will not proceed with the shutdown and run the `Shutdown` hooks until all `BeforeShutdown` hooks have completed.
10
+
11
+ - Updated dependencies
12
+ - @backstage/errors@1.2.6-next.0
13
+ - @backstage/plugin-auth-node@0.5.5-next.2
14
+ - @backstage/cli-common@0.1.15
15
+ - @backstage/config@1.3.1-next.0
16
+ - @backstage/types@1.2.0
17
+ - @backstage/plugin-permission-common@0.8.3-next.0
18
+
3
19
  ## 1.1.0-next.1
4
20
 
5
21
  ### 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-next.2",
4
4
  "description": "Core API used by Backstage backend plugins",
5
5
  "backstage": {
6
6
  "role": "node-library"
@@ -66,10 +66,10 @@
66
66
  },
67
67
  "dependencies": {
68
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",
69
+ "@backstage/config": "1.3.1-next.0",
70
+ "@backstage/errors": "1.2.6-next.0",
71
+ "@backstage/plugin-auth-node": "0.5.5-next.2",
72
+ "@backstage/plugin-permission-common": "0.8.3-next.0",
73
73
  "@backstage/types": "1.2.0",
74
74
  "@types/express": "^4.17.6",
75
75
  "@types/luxon": "^3.0.0",
@@ -77,8 +77,8 @@
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-next.2",
81
+ "@backstage/cli": "0.29.3-next.2"
82
82
  },
83
83
  "configSchema": "config.d.ts"
84
84
  }