@backstage/backend-app-api 0.7.9-next.0 → 0.7.9

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,17 +1,51 @@
1
1
  # @backstage/backend-app-api
2
2
 
3
- ## 0.7.9-next.0
3
+ ## 0.7.9
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - b60db08: Fixing exporting of classes properly from new packages
8
- - a63c4b6: Fixing issue with `MiddlewareFactory` deprecation wrapping
9
7
  - Updated dependencies
10
- - @backstage/backend-plugin-api@0.6.21-next.0
11
- - @backstage/backend-common@0.23.2-next.0
12
- - @backstage/backend-tasks@0.5.26-next.0
13
- - @backstage/plugin-auth-node@0.4.16-next.0
14
- - @backstage/plugin-permission-node@0.7.32-next.0
8
+ - @backstage/backend-plugin-api@0.6.21
9
+ - @backstage/backend-tasks@0.5.26
10
+ - @backstage/backend-common@0.23.2
11
+ - @backstage/plugin-auth-node@0.4.16
12
+ - @backstage/plugin-permission-node@0.7.32
13
+ - @backstage/cli-common@0.1.14
14
+ - @backstage/cli-node@0.2.6
15
+ - @backstage/config@1.2.0
16
+ - @backstage/config-loader@1.8.1
17
+ - @backstage/errors@1.2.4
18
+ - @backstage/types@1.1.1
19
+
20
+ ## 0.7.8
21
+
22
+ ### Patch Changes
23
+
24
+ - c5957b0: Fixing issue with `MiddlewareFactory` deprecation wrapping
25
+ - Updated dependencies
26
+ - @backstage/backend-common@0.23.1
27
+ - @backstage/backend-plugin-api@0.6.20
28
+ - @backstage/backend-tasks@0.5.25
29
+ - @backstage/cli-common@0.1.14
30
+ - @backstage/cli-node@0.2.6
31
+ - @backstage/config@1.2.0
32
+ - @backstage/config-loader@1.8.1
33
+ - @backstage/errors@1.2.4
34
+ - @backstage/types@1.1.1
35
+ - @backstage/plugin-auth-node@0.4.15
36
+ - @backstage/plugin-permission-node@0.7.31
37
+
38
+ ## 0.7.7
39
+
40
+ ### Patch Changes
41
+
42
+ - d7cce61: Fixing exporting of classes properly from new packages
43
+ - Updated dependencies
44
+ - @backstage/backend-common@0.23.1
45
+ - @backstage/backend-tasks@0.5.25
46
+ - @backstage/plugin-auth-node@0.4.15
47
+ - @backstage/plugin-permission-node@0.7.31
48
+ - @backstage/backend-plugin-api@0.6.20
15
49
  - @backstage/cli-common@0.1.14
16
50
  - @backstage/cli-node@0.2.6
17
51
  - @backstage/config@1.2.0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/backend-app-api__alpha",
3
- "version": "0.7.9-next.0",
3
+ "version": "0.7.9",
4
4
  "main": "../dist/alpha.cjs.js",
5
5
  "types": "../dist/alpha.d.ts"
6
6
  }
package/dist/index.cjs.js CHANGED
@@ -3690,25 +3690,6 @@ let DefaultRootHttpRouter$1 = class DefaultRootHttpRouter {
3690
3690
  }
3691
3691
  };
3692
3692
 
3693
- function createHealthRouter(options) {
3694
- const router = Router__default.default();
3695
- router.get(
3696
- ".backstage/health/v1/readiness",
3697
- async (_request, response) => {
3698
- const { status, payload } = await options.health.getReadiness();
3699
- response.status(status).json(payload);
3700
- }
3701
- );
3702
- router.get(
3703
- ".backstage/health/v1/liveness",
3704
- async (_request, response) => {
3705
- const { status, payload } = await options.health.getLiveness();
3706
- response.status(status).json(payload);
3707
- }
3708
- );
3709
- return router;
3710
- }
3711
-
3712
3693
  function defaultConfigure({ applyDefaults }) {
3713
3694
  applyDefaults();
3714
3695
  }
@@ -3718,17 +3699,15 @@ const rootHttpRouterServiceFactory$1 = backendPluginApi.createServiceFactory(
3718
3699
  deps: {
3719
3700
  config: backendPluginApi.coreServices.rootConfig,
3720
3701
  rootLogger: backendPluginApi.coreServices.rootLogger,
3721
- lifecycle: backendPluginApi.coreServices.rootLifecycle,
3722
- health: backendPluginApi.coreServices.rootHealth
3702
+ lifecycle: backendPluginApi.coreServices.rootLifecycle
3723
3703
  },
3724
- async factory({ config, rootLogger, lifecycle, health }) {
3704
+ async factory({ config, rootLogger, lifecycle }) {
3725
3705
  const { indexPath, configure = defaultConfigure } = options ?? {};
3726
3706
  const logger = rootLogger.child({ service: "rootHttpRouter" });
3727
3707
  const app = express__default.default();
3728
3708
  const router = DefaultRootHttpRouter$1.create({ indexPath });
3729
3709
  const middleware = MiddlewareFactory$1.create({ config, logger });
3730
3710
  const routes = router.handler();
3731
- const healthRouter = createHealthRouter({ health });
3732
3711
  const server = await createHttpServer$1(
3733
3712
  app,
3734
3713
  readHttpServerOptions$1(config.getOptionalConfig("backend")),
@@ -3742,13 +3721,11 @@ const rootHttpRouterServiceFactory$1 = backendPluginApi.createServiceFactory(
3742
3721
  config,
3743
3722
  logger,
3744
3723
  lifecycle,
3745
- healthRouter,
3746
3724
  applyDefaults() {
3747
3725
  app.use(middleware.helmet());
3748
3726
  app.use(middleware.cors());
3749
3727
  app.use(middleware.compression());
3750
3728
  app.use(middleware.logging());
3751
- app.use(healthRouter);
3752
3729
  app.use(routes);
3753
3730
  app.use(middleware.notFound());
3754
3731
  app.use(middleware.error());