@backstage/backend-app-api 0.7.4 → 0.7.6-next.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/dist/index.d.ts CHANGED
@@ -313,10 +313,16 @@ declare function createSpecializedBackend(options: CreateSpecializedBackendOptio
313
313
  /** @public */
314
314
  declare const authServiceFactory: () => _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_plugin_api.AuthService, "plugin">;
315
315
 
316
- /** @public */
316
+ /**
317
+ * @public
318
+ * @deprecated Please import from `@backstage/backend-defaults/cache` instead.
319
+ */
317
320
  declare const cacheServiceFactory: () => _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_common.CacheClient, "plugin">;
318
321
 
319
- /** @public */
322
+ /**
323
+ * @public
324
+ * @deprecated Please import from `@backstage/backend-defaults/rootConfig` instead.
325
+ */
320
326
  interface RootConfigFactoryOptions {
321
327
  /**
322
328
  * Process arguments to use instead of the default `process.argv()`.
@@ -328,13 +334,22 @@ interface RootConfigFactoryOptions {
328
334
  remote?: Pick<RemoteConfigSourceOptions, 'reloadInterval'>;
329
335
  watch?: boolean;
330
336
  }
331
- /** @public */
337
+ /**
338
+ * @public
339
+ * @deprecated Please import from `@backstage/backend-defaults/rootConfig` instead.
340
+ */
332
341
  declare const rootConfigServiceFactory: (options?: RootConfigFactoryOptions | undefined) => _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_plugin_api.RootConfigService, "root">;
333
342
 
334
- /** @public */
343
+ /**
344
+ * @public
345
+ * @deprecated Please import from `@backstage/backend-defaults/database` instead.
346
+ */
335
347
  declare const databaseServiceFactory: () => _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_common.PluginDatabaseManager, "plugin">;
336
348
 
337
- /** @public */
349
+ /**
350
+ * @public
351
+ * @deprecated Please import from `@backstage/backend-defaults/discovery` instead.
352
+ */
338
353
  declare const discoveryServiceFactory: () => _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_plugin_api.DiscoveryService, "plugin">;
339
354
 
340
355
  /**
@@ -346,6 +361,7 @@ declare const discoveryServiceFactory: () => _backstage_backend_plugin_api.Servi
346
361
  * resolved to the same host, so there won't be any balancing of internal traffic.
347
362
  *
348
363
  * @public
364
+ * @deprecated Please import from `@backstage/backend-defaults/discovery` instead.
349
365
  */
350
366
  declare class HostDiscovery implements DiscoveryService {
351
367
  private readonly internalBaseUrl;
@@ -432,26 +448,37 @@ declare function createLifecycleMiddleware(options: LifecycleMiddlewareOptions):
432
448
  * An identity client options object which allows extra configurations
433
449
  *
434
450
  * @public
451
+ * @deprecated Please migrate to the new `coreServices.auth`, `coreServices.httpAuth`, and `coreServices.userInfo` services as needed instead
435
452
  */
436
453
  type IdentityFactoryOptions = {
437
454
  issuer?: string;
438
- /** JWS "alg" (Algorithm) Header Parameter values. Defaults to an array containing just ES256.
439
- * More info on supported algorithms: https://github.com/panva/jose */
455
+ /**
456
+ * JWS "alg" (Algorithm) Header Parameter values. Defaults to an array containing just ES256.
457
+ * More info on supported algorithms: https://github.com/panva/jose
458
+ */
440
459
  algorithms?: string[];
441
460
  };
442
- /** @public */
461
+ /**
462
+ * @public
463
+ * @deprecated Please migrate to the new `coreServices.auth`, `coreServices.httpAuth`, and `coreServices.userInfo` services as needed instead
464
+ */
443
465
  declare const identityServiceFactory: (options?: IdentityFactoryOptions | undefined) => _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_plugin_api.IdentityService, "plugin">;
444
466
 
445
467
  /**
446
468
  * Allows plugins to register shutdown hooks that are run when the process is about to exit.
469
+ *
447
470
  * @public
471
+ * @deprecated Please import from `@backstage/backend-defaults/lifecycle` instead.
448
472
  */
449
473
  declare const lifecycleServiceFactory: () => _backstage_backend_plugin_api.ServiceFactory<LifecycleService, "plugin">;
450
474
 
451
475
  /** @public */
452
476
  declare const loggerServiceFactory: () => _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_plugin_api.LoggerService, "plugin">;
453
477
 
454
- /** @public */
478
+ /**
479
+ * @public
480
+ * @deprecated Please import from `@backstage/backend-defaults/permissions` instead.
481
+ */
455
482
  declare const permissionsServiceFactory: () => _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_plugin_api.PermissionsService, "plugin">;
456
483
 
457
484
  /**
@@ -511,22 +538,32 @@ declare class DefaultRootHttpRouter implements RootHttpRouterService {
511
538
  * Allows plugins to register shutdown hooks that are run when the process is about to exit.
512
539
  *
513
540
  * @public
541
+ * @deprecated Please import from `@backstage/backend-defaults/rootLifecycle` instead.
514
542
  */
515
543
  declare const rootLifecycleServiceFactory: () => _backstage_backend_plugin_api.ServiceFactory<RootLifecycleService, "root">;
516
544
 
517
545
  /** @public */
518
546
  declare const rootLoggerServiceFactory: () => _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_plugin_api.RootLoggerService, "root">;
519
547
 
520
- /** @public */
521
- declare const schedulerServiceFactory: () => _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_plugin_api.SchedulerService, "plugin">;
522
-
523
- /** @public */
548
+ /**
549
+ * @public
550
+ * @deprecated Please migrate to the new `coreServices.auth`, `coreServices.httpAuth`, and `coreServices.userInfo` services as needed instead
551
+ */
524
552
  declare const tokenManagerServiceFactory: () => _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_plugin_api.TokenManagerService, "plugin">;
525
553
 
526
- /** @public */
554
+ /**
555
+ * @public
556
+ * @deprecated Please import from `@backstage/backend-defaults/urlReader` instead.
557
+ */
527
558
  declare const urlReaderServiceFactory: () => _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_common.UrlReader, "plugin">;
528
559
 
529
560
  /** @public */
530
561
  declare const userInfoServiceFactory: () => _backstage_backend_plugin_api.ServiceFactory<UserInfoService, "plugin">;
531
562
 
563
+ /**
564
+ * @public
565
+ * @deprecated Please import from `@backstage/backend-defaults/scheduler` instead.
566
+ */
567
+ declare const schedulerServiceFactory: () => _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_plugin_api.SchedulerService, "plugin">;
568
+
532
569
  export { type Backend, type CreateSpecializedBackendOptions, DefaultRootHttpRouter, type DefaultRootHttpRouterOptions, type ExtendedHttpServer, HostDiscovery, type HttpRouterFactoryOptions, type HttpServerCertificateOptions, type HttpServerOptions, type IdentityFactoryOptions, type LifecycleMiddlewareOptions, MiddlewareFactory, type MiddlewareFactoryErrorOptions, type MiddlewareFactoryOptions, type RootConfigFactoryOptions, type RootHttpRouterConfigureContext, type RootHttpRouterFactoryOptions, WinstonLogger, type WinstonLoggerOptions, authServiceFactory, cacheServiceFactory, createConfigSecretEnumerator, createHttpServer, createLifecycleMiddleware, createSpecializedBackend, databaseServiceFactory, discoveryServiceFactory, httpAuthServiceFactory, httpRouterServiceFactory, identityServiceFactory, lifecycleServiceFactory, loadBackendConfig, loggerServiceFactory, permissionsServiceFactory, readCorsOptions, readHelmetOptions, readHttpServerOptions, rootConfigServiceFactory, rootHttpRouterServiceFactory, rootLifecycleServiceFactory, rootLoggerServiceFactory, schedulerServiceFactory, tokenManagerServiceFactory, urlReaderServiceFactory, userInfoServiceFactory };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/backend-app-api",
3
- "version": "0.7.4",
3
+ "version": "0.7.6-next.0",
4
4
  "description": "Core API used by Backstage backend apps",
5
5
  "backstage": {
6
6
  "role": "node-library"
@@ -49,16 +49,16 @@
49
49
  "test": "backstage-cli package test"
50
50
  },
51
51
  "dependencies": {
52
- "@backstage/backend-common": "^0.22.0",
53
- "@backstage/backend-plugin-api": "^0.6.18",
54
- "@backstage/backend-tasks": "^0.5.23",
52
+ "@backstage/backend-common": "^0.22.1-next.0",
53
+ "@backstage/backend-plugin-api": "^0.6.19-next.0",
54
+ "@backstage/backend-tasks": "^0.5.24-next.0",
55
55
  "@backstage/cli-common": "^0.1.13",
56
- "@backstage/cli-node": "^0.2.5",
56
+ "@backstage/cli-node": "^0.2.6-next.0",
57
57
  "@backstage/config": "^1.2.0",
58
58
  "@backstage/config-loader": "^1.8.0",
59
59
  "@backstage/errors": "^1.2.4",
60
- "@backstage/plugin-auth-node": "^0.4.13",
61
- "@backstage/plugin-permission-node": "^0.7.29",
60
+ "@backstage/plugin-auth-node": "^0.4.14-next.0",
61
+ "@backstage/plugin-permission-node": "^0.7.30-next.0",
62
62
  "@backstage/types": "^1.1.1",
63
63
  "@manypkg/get-packages": "^1.1.3",
64
64
  "@types/cors": "^2.8.6",
@@ -82,13 +82,14 @@
82
82
  "path-to-regexp": "^6.2.1",
83
83
  "selfsigned": "^2.0.0",
84
84
  "stoppable": "^1.1.0",
85
+ "triple-beam": "^1.4.1",
85
86
  "uuid": "^9.0.0",
86
87
  "winston": "^3.2.1",
87
88
  "winston-transport": "^4.5.0"
88
89
  },
89
90
  "devDependencies": {
90
- "@backstage/backend-test-utils": "^0.3.8",
91
- "@backstage/cli": "^0.26.5",
91
+ "@backstage/backend-test-utils": "^0.3.9-next.0",
92
+ "@backstage/cli": "^0.26.6-next.0",
92
93
  "@types/compression": "^1.7.0",
93
94
  "@types/fs-extra": "^11.0.0",
94
95
  "@types/http-errors": "^2.0.0",