@backstage/backend-app-api 0.8.1-next.1 → 0.8.1-next.3

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
@@ -474,7 +474,7 @@ declare function createSpecializedBackend(options: CreateSpecializedBackendOptio
474
474
  * @public
475
475
  * @deprecated Please import from `@backstage/backend-defaults/cache` instead.
476
476
  */
477
- declare const cacheServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.CacheService, "plugin", undefined>;
477
+ declare const cacheServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.CacheService, "plugin", "singleton", undefined>;
478
478
 
479
479
  /**
480
480
  * @public
@@ -495,19 +495,19 @@ interface RootConfigFactoryOptions {
495
495
  * @public
496
496
  * @deprecated Please import from `@backstage/backend-defaults/rootConfig` instead.
497
497
  */
498
- declare const rootConfigServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.RootConfigService, "root", RootConfigFactoryOptions>;
498
+ declare const rootConfigServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.RootConfigService, "root", "singleton", RootConfigFactoryOptions>;
499
499
 
500
500
  /**
501
501
  * @public
502
502
  * @deprecated Please import from `@backstage/backend-defaults/database` instead.
503
503
  */
504
- declare const databaseServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.DatabaseService, "plugin", undefined>;
504
+ declare const databaseServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.DatabaseService, "plugin", "singleton", undefined>;
505
505
 
506
506
  /**
507
507
  * @public
508
508
  * @deprecated Please import from `@backstage/backend-defaults/discovery` instead.
509
509
  */
510
- declare const discoveryServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.DiscoveryService, "plugin", undefined>;
510
+ declare const discoveryServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.DiscoveryService, "plugin", "singleton", undefined>;
511
511
 
512
512
  /**
513
513
  * HostDiscovery is a basic PluginEndpointDiscovery implementation
@@ -572,7 +572,7 @@ type IdentityFactoryOptions = {
572
572
  * @public
573
573
  * @deprecated Please migrate to the new `coreServices.auth`, `coreServices.httpAuth`, and `coreServices.userInfo` services as needed instead
574
574
  */
575
- declare const identityServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.IdentityService, "plugin", IdentityFactoryOptions>;
575
+ declare const identityServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.IdentityService, "plugin", "singleton", IdentityFactoryOptions>;
576
576
 
577
577
  /**
578
578
  * Allows plugins to register shutdown hooks that are run when the process is about to exit.
@@ -580,13 +580,13 @@ declare const identityServiceFactory: _backstage_backend_plugin_api.ServiceFacto
580
580
  * @public
581
581
  * @deprecated Please import from `@backstage/backend-defaults/lifecycle` instead.
582
582
  */
583
- declare const lifecycleServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<LifecycleService, "plugin", undefined>;
583
+ declare const lifecycleServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<LifecycleService, "plugin", "singleton", undefined>;
584
584
 
585
585
  /**
586
586
  * @public
587
587
  * @deprecated Please import from `@backstage/backend-defaults/permissions` instead.
588
588
  */
589
- declare const permissionsServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.PermissionsService, "plugin", undefined>;
589
+ declare const permissionsServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.PermissionsService, "plugin", "singleton", undefined>;
590
590
 
591
591
  /**
592
592
  * Allows plugins to register shutdown hooks that are run when the process is about to exit.
@@ -594,31 +594,31 @@ declare const permissionsServiceFactory: _backstage_backend_plugin_api.ServiceFa
594
594
  * @public
595
595
  * @deprecated Please import from `@backstage/backend-defaults/rootLifecycle` instead.
596
596
  */
597
- declare const rootLifecycleServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<RootLifecycleService, "root", undefined>;
597
+ declare const rootLifecycleServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<RootLifecycleService, "root", "singleton", undefined>;
598
598
 
599
599
  /**
600
600
  * @public
601
601
  * @deprecated Please migrate to the new `coreServices.auth`, `coreServices.httpAuth`, and `coreServices.userInfo` services as needed instead
602
602
  */
603
- declare const tokenManagerServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.TokenManagerService, "plugin", undefined>;
603
+ declare const tokenManagerServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.TokenManagerService, "plugin", "singleton", undefined>;
604
604
 
605
605
  /**
606
606
  * @public
607
607
  * @deprecated Please import from `@backstage/backend-defaults/urlReader` instead.
608
608
  */
609
- declare const urlReaderServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.UrlReaderService, "plugin", undefined>;
609
+ declare const urlReaderServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.UrlReaderService, "plugin", "singleton", undefined>;
610
610
 
611
611
  /**
612
612
  * @public
613
613
  * @deprecated Please import from `@backstage/backend-defaults/auth` instead.
614
614
  */
615
- declare const authServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.AuthService, "plugin", undefined>;
615
+ declare const authServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.AuthService, "plugin", "singleton", undefined>;
616
616
 
617
617
  /**
618
618
  * @public
619
619
  * @deprecated Please import from `@backstage/backend-defaults/httpAuth` instead.
620
620
  */
621
- declare const httpAuthServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.HttpAuthService, "plugin", undefined>;
621
+ declare const httpAuthServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.HttpAuthService, "plugin", "singleton", undefined>;
622
622
 
623
623
  /**
624
624
  * HTTP route registration for plugins.
@@ -630,7 +630,7 @@ declare const httpAuthServiceFactory: _backstage_backend_plugin_api.ServiceFacto
630
630
  * @public
631
631
  * @deprecated Please import from `@backstage/backend-defaults/httpRouter` instead.
632
632
  */
633
- declare const httpRouterServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.HttpRouterService, "plugin", undefined>;
633
+ declare const httpRouterServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.HttpRouterService, "plugin", "singleton", undefined>;
634
634
 
635
635
  /**
636
636
  * Options for {@link createLifecycleMiddleware}.
@@ -694,7 +694,7 @@ declare const createLifecycleMiddleware: typeof createLifecycleMiddleware$1;
694
694
  * @public
695
695
  * @deprecated Please import from `@backstage/backend-defaults/logger` instead.
696
696
  */
697
- declare const loggerServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.LoggerService, "plugin", undefined>;
697
+ declare const loggerServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.LoggerService, "plugin", "singleton", undefined>;
698
698
 
699
699
  /**
700
700
  * @public
@@ -748,7 +748,7 @@ type RootHttpRouterFactoryOptions = RootHttpRouterFactoryOptions$1;
748
748
  * @public
749
749
  * @deprecated Please import from `@backstage/backend-defaults/rootHttpRouter` instead.
750
750
  */
751
- declare const rootHttpRouterServiceFactory: ((options?: RootHttpRouterFactoryOptions$1 | undefined) => _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_plugin_api.RootHttpRouterService, "root">) & _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_plugin_api.RootHttpRouterService, "root">;
751
+ declare const rootHttpRouterServiceFactory: ((options?: RootHttpRouterFactoryOptions$1 | undefined) => _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_plugin_api.RootHttpRouterService, "root", "singleton">) & _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_plugin_api.RootHttpRouterService, "root", "singleton">;
752
752
 
753
753
  /**
754
754
  * Options for the {@link DefaultRootHttpRouter} class.
@@ -795,18 +795,18 @@ declare class DefaultRootHttpRouter implements RootHttpRouterService {
795
795
  * @public
796
796
  * @deprecated Please import from `@backstage/backend-defaults/rootLogger` instead.
797
797
  */
798
- declare const rootLoggerServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.RootLoggerService, "root", undefined>;
798
+ declare const rootLoggerServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.RootLoggerService, "root", "singleton", undefined>;
799
799
 
800
800
  /**
801
801
  * @public
802
802
  * @deprecated Please import from `@backstage/backend-defaults/scheduler` instead.
803
803
  */
804
- declare const schedulerServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.SchedulerService, "plugin", undefined>;
804
+ declare const schedulerServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.SchedulerService, "plugin", "singleton", undefined>;
805
805
 
806
806
  /**
807
807
  * @public
808
808
  * @deprecated Please import from `@backstage/backend-defaults/userInfo` instead.
809
809
  */
810
- declare const userInfoServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.UserInfoService, "plugin", undefined>;
810
+ declare const userInfoServiceFactory: _backstage_backend_plugin_api.ServiceFactoryCompat<_backstage_backend_plugin_api.UserInfoService, "plugin", "singleton", undefined>;
811
811
 
812
812
  export { type Backend, type CreateSpecializedBackendOptions, DefaultRootHttpRouter, type DefaultRootHttpRouterOptions, type ExtendedHttpServer, HostDiscovery, 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.8.1-next.1",
3
+ "version": "0.8.1-next.3",
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.23.4-next.1",
53
- "@backstage/backend-plugin-api": "^0.7.1-next.1",
54
- "@backstage/backend-tasks": "^0.5.28-next.1",
52
+ "@backstage/backend-common": "^0.23.4-next.3",
53
+ "@backstage/backend-plugin-api": "^0.8.0-next.3",
54
+ "@backstage/backend-tasks": "^0.5.28-next.3",
55
55
  "@backstage/cli-common": "^0.1.14",
56
56
  "@backstage/cli-node": "^0.2.7",
57
57
  "@backstage/config": "^1.2.0",
58
- "@backstage/config-loader": "^1.9.0-next.1",
58
+ "@backstage/config-loader": "^1.9.0-next.2",
59
59
  "@backstage/errors": "^1.2.4",
60
- "@backstage/plugin-auth-node": "^0.4.18-next.1",
61
- "@backstage/plugin-permission-node": "^0.8.1-next.1",
60
+ "@backstage/plugin-auth-node": "^0.5.0-next.3",
61
+ "@backstage/plugin-permission-node": "^0.8.1-next.3",
62
62
  "@backstage/types": "^1.1.1",
63
63
  "@manypkg/get-packages": "^1.1.3",
64
64
  "@types/cors": "^2.8.6",
@@ -78,7 +78,7 @@
78
78
  "minimatch": "^9.0.0",
79
79
  "minimist": "^1.2.5",
80
80
  "morgan": "^1.10.0",
81
- "node-fetch": "^2.6.7",
81
+ "node-fetch": "^2.7.0",
82
82
  "node-forge": "^1.3.1",
83
83
  "path-to-regexp": "^6.2.1",
84
84
  "selfsigned": "^2.0.0",
@@ -89,9 +89,9 @@
89
89
  "winston-transport": "^4.5.0"
90
90
  },
91
91
  "devDependencies": {
92
- "@backstage/backend-defaults": "^0.4.2-next.1",
93
- "@backstage/backend-test-utils": "^0.4.5-next.1",
94
- "@backstage/cli": "^0.27.0-next.1",
92
+ "@backstage/backend-defaults": "^0.4.2-next.3",
93
+ "@backstage/backend-test-utils": "^0.4.5-next.3",
94
+ "@backstage/cli": "^0.27.0-next.4",
95
95
  "@types/compression": "^1.7.0",
96
96
  "@types/fs-extra": "^11.0.0",
97
97
  "@types/http-errors": "^2.0.0",