@backstage/backend-app-api 0.4.6-next.0 → 0.5.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.

Potentially problematic release.


This version of @backstage/backend-app-api might be problematic. Click here for more details.

package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
3
- import { LoggerService, ConfigService, RootLoggerService, BackendFeature, ServiceFactoryOrFunction, LifecycleService, RootHttpRouterService, RootLifecycleService } from '@backstage/backend-plugin-api';
3
+ import { LoggerService, RootConfigService, RootLoggerService, BackendFeature, ServiceFactoryOrFunction, LifecycleService, RootHttpRouterService, RootLifecycleService } from '@backstage/backend-plugin-api';
4
4
  import { LoadConfigOptionsRemote, RemoteConfigSourceOptions } from '@backstage/config-loader';
5
5
  import { Config, AppConfig } from '@backstage/config';
6
6
  import * as http from 'http';
@@ -102,7 +102,7 @@ declare function createHttpServer(listener: RequestListener, options: HttpServer
102
102
  * @public
103
103
  */
104
104
  interface MiddlewareFactoryOptions {
105
- config: ConfigService;
105
+ config: RootConfigService;
106
106
  logger: LoggerService;
107
107
  }
108
108
  /**
@@ -309,7 +309,7 @@ declare function createSpecializedBackend(options: CreateSpecializedBackendOptio
309
309
  declare const cacheServiceFactory: () => _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_common.CacheClient, "plugin">;
310
310
 
311
311
  /** @public */
312
- interface ConfigFactoryOptions {
312
+ interface RootConfigFactoryOptions {
313
313
  /**
314
314
  * Process arguments to use instead of the default `process.argv()`.
315
315
  */
@@ -320,7 +320,7 @@ interface ConfigFactoryOptions {
320
320
  remote?: Pick<RemoteConfigSourceOptions, 'reloadInterval'>;
321
321
  }
322
322
  /** @public */
323
- declare const configServiceFactory: (options?: ConfigFactoryOptions | undefined) => _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_plugin_api.ConfigService, "root">;
323
+ declare const rootConfigServiceFactory: (options?: RootConfigFactoryOptions | undefined) => _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_plugin_api.RootConfigService, "root">;
324
324
 
325
325
  /** @public */
326
326
  declare const databaseServiceFactory: () => _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_common.PluginDatabaseManager, "plugin">;
@@ -402,7 +402,7 @@ interface RootHttpRouterConfigureContext {
402
402
  app: Express;
403
403
  middleware: MiddlewareFactory;
404
404
  routes: RequestHandler;
405
- config: ConfigService;
405
+ config: RootConfigService;
406
406
  logger: LoggerService;
407
407
  lifecycle: LifecycleService;
408
408
  }
@@ -465,4 +465,4 @@ declare const tokenManagerServiceFactory: () => _backstage_backend_plugin_api.Se
465
465
  /** @public */
466
466
  declare const urlReaderServiceFactory: () => _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_common.UrlReader, "plugin">;
467
467
 
468
- export { Backend, ConfigFactoryOptions, CreateSpecializedBackendOptions, DefaultRootHttpRouter, DefaultRootHttpRouterOptions, ExtendedHttpServer, HttpRouterFactoryOptions, HttpServerCertificateOptions, HttpServerOptions, IdentityFactoryOptions, LifecycleMiddlewareOptions, MiddlewareFactory, MiddlewareFactoryErrorOptions, MiddlewareFactoryOptions, RootHttpRouterConfigureContext, RootHttpRouterFactoryOptions, WinstonLogger, WinstonLoggerOptions, cacheServiceFactory, configServiceFactory, createConfigSecretEnumerator, createHttpServer, createLifecycleMiddleware, createSpecializedBackend, databaseServiceFactory, discoveryServiceFactory, httpRouterServiceFactory, identityServiceFactory, lifecycleServiceFactory, loadBackendConfig, loggerServiceFactory, permissionsServiceFactory, readCorsOptions, readHelmetOptions, readHttpServerOptions, rootHttpRouterServiceFactory, rootLifecycleServiceFactory, rootLoggerServiceFactory, schedulerServiceFactory, tokenManagerServiceFactory, urlReaderServiceFactory };
468
+ export { Backend, CreateSpecializedBackendOptions, DefaultRootHttpRouter, DefaultRootHttpRouterOptions, ExtendedHttpServer, HttpRouterFactoryOptions, HttpServerCertificateOptions, HttpServerOptions, IdentityFactoryOptions, LifecycleMiddlewareOptions, MiddlewareFactory, MiddlewareFactoryErrorOptions, MiddlewareFactoryOptions, RootConfigFactoryOptions, RootHttpRouterConfigureContext, RootHttpRouterFactoryOptions, WinstonLogger, WinstonLoggerOptions, cacheServiceFactory, createConfigSecretEnumerator, createHttpServer, createLifecycleMiddleware, createSpecializedBackend, databaseServiceFactory, discoveryServiceFactory, httpRouterServiceFactory, identityServiceFactory, lifecycleServiceFactory, loadBackendConfig, loggerServiceFactory, permissionsServiceFactory, readCorsOptions, readHelmetOptions, readHttpServerOptions, rootConfigServiceFactory, rootHttpRouterServiceFactory, rootLifecycleServiceFactory, rootLoggerServiceFactory, schedulerServiceFactory, tokenManagerServiceFactory, urlReaderServiceFactory };
package/package.json CHANGED
@@ -1,17 +1,28 @@
1
1
  {
2
2
  "name": "@backstage/backend-app-api",
3
3
  "description": "Core API used by Backstage backend apps",
4
- "version": "0.4.6-next.0",
5
- "main": "dist/index.cjs.js",
6
- "types": "dist/index.d.ts",
4
+ "version": "0.5.0-next.2",
5
+ "main": "./dist/index.cjs.js",
6
+ "types": "./dist/index.d.ts",
7
7
  "publishConfig": {
8
- "access": "public",
9
- "main": "dist/index.cjs.js",
10
- "types": "dist/index.d.ts"
8
+ "access": "public"
11
9
  },
12
10
  "backstage": {
13
11
  "role": "node-library"
14
12
  },
13
+ "exports": {
14
+ ".": {
15
+ "require": "./dist/index.cjs.js",
16
+ "types": "./dist/index.d.ts",
17
+ "default": "./dist/index.cjs.js"
18
+ },
19
+ "./alpha": {
20
+ "require": "./dist/alpha.cjs.js",
21
+ "types": "./dist/alpha.d.ts",
22
+ "default": "./dist/alpha.cjs.js"
23
+ },
24
+ "./package.json": "./package.json"
25
+ },
15
26
  "homepage": "https://backstage.io",
16
27
  "repository": {
17
28
  "type": "git",
@@ -32,15 +43,16 @@
32
43
  "start": "backstage-cli package start"
33
44
  },
34
45
  "dependencies": {
35
- "@backstage/backend-common": "^0.19.2-next.0",
36
- "@backstage/backend-plugin-api": "^0.5.5-next.0",
37
- "@backstage/backend-tasks": "^0.5.5-next.0",
46
+ "@backstage/backend-common": "^0.19.2-next.2",
47
+ "@backstage/backend-plugin-api": "^0.6.0-next.2",
48
+ "@backstage/backend-tasks": "^0.5.5-next.2",
38
49
  "@backstage/cli-common": "^0.1.12",
50
+ "@backstage/cli-node": "^0.1.3-next.0",
39
51
  "@backstage/config": "^1.0.8",
40
- "@backstage/config-loader": "^1.4.0-next.0",
52
+ "@backstage/config-loader": "^1.4.0-next.1",
41
53
  "@backstage/errors": "^1.2.1",
42
- "@backstage/plugin-auth-node": "^0.2.17-next.0",
43
- "@backstage/plugin-permission-node": "^0.7.11-next.0",
54
+ "@backstage/plugin-auth-node": "^0.2.17-next.2",
55
+ "@backstage/plugin-permission-node": "^0.7.11-next.2",
44
56
  "@backstage/types": "^1.1.0",
45
57
  "@manypkg/get-packages": "^1.1.3",
46
58
  "@types/cors": "^2.8.6",
@@ -63,8 +75,8 @@
63
75
  "winston-transport": "^4.5.0"
64
76
  },
65
77
  "devDependencies": {
66
- "@backstage/backend-test-utils": "^0.1.40-next.0",
67
- "@backstage/cli": "^0.22.10-next.0",
78
+ "@backstage/backend-test-utils": "^0.2.0-next.2",
79
+ "@backstage/cli": "^0.22.10-next.1",
68
80
  "@types/compression": "^1.7.0",
69
81
  "@types/fs-extra": "^9.0.3",
70
82
  "@types/http-errors": "^2.0.0",
@@ -73,6 +85,7 @@
73
85
  "@types/node-forge": "^1.3.0",
74
86
  "@types/stoppable": "^1.1.0",
75
87
  "http-errors": "^2.0.0",
88
+ "mock-fs": "^5.2.0",
76
89
  "supertest": "^6.1.3"
77
90
  },
78
91
  "files": [