@backstage/backend-plugin-api 0.5.3-next.0 → 0.5.3-next.1
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 +12 -0
- package/dist/index.d.ts +24 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @backstage/backend-plugin-api
|
|
2
2
|
|
|
3
|
+
## 0.5.3-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3bb4158a8aa4: Added startup hooks to the lifecycle services.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/backend-tasks@0.5.3-next.1
|
|
10
|
+
- @backstage/plugin-auth-node@0.2.15-next.1
|
|
11
|
+
- @backstage/plugin-permission-common@0.7.6-next.0
|
|
12
|
+
- @backstage/config@1.0.7
|
|
13
|
+
- @backstage/types@1.0.2
|
|
14
|
+
|
|
3
15
|
## 0.5.3-next.0
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -339,6 +339,19 @@ interface LoggerService {
|
|
|
339
339
|
interface RootLoggerService extends LoggerService {
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
+
/**
|
|
343
|
+
* @public
|
|
344
|
+
*/
|
|
345
|
+
type LifecycleServiceStartupHook = () => void | Promise<void>;
|
|
346
|
+
/**
|
|
347
|
+
* @public
|
|
348
|
+
*/
|
|
349
|
+
interface LifecycleServiceStartupOptions {
|
|
350
|
+
/**
|
|
351
|
+
* Optional {@link LoggerService} that will be used for logging instead of the default logger.
|
|
352
|
+
*/
|
|
353
|
+
logger?: LoggerService;
|
|
354
|
+
}
|
|
342
355
|
/**
|
|
343
356
|
* @public
|
|
344
357
|
*/
|
|
@@ -356,6 +369,16 @@ interface LifecycleServiceShutdownOptions {
|
|
|
356
369
|
* @public
|
|
357
370
|
*/
|
|
358
371
|
interface LifecycleService {
|
|
372
|
+
/**
|
|
373
|
+
* Register a function to be called when the backend has been initialized.
|
|
374
|
+
*
|
|
375
|
+
* @remarks
|
|
376
|
+
*
|
|
377
|
+
* When used with plugin scope it will wait for the plugin itself to have been initialized.
|
|
378
|
+
*
|
|
379
|
+
* When used with root scope it will wait for all plugins to have been initialized.
|
|
380
|
+
*/
|
|
381
|
+
addStartupHook(hook: LifecycleServiceStartupHook, options?: LifecycleServiceStartupOptions): void;
|
|
359
382
|
/**
|
|
360
383
|
* Register a function to be called when the backend is shutting down.
|
|
361
384
|
*/
|
|
@@ -913,4 +936,4 @@ interface BackendModuleConfig {
|
|
|
913
936
|
*/
|
|
914
937
|
declare function createBackendModule<TOptions extends [options?: object] = []>(config: BackendModuleConfig | ((...params: TOptions) => BackendModuleConfig)): (...params: TOptions) => BackendFeature;
|
|
915
938
|
|
|
916
|
-
export { BackendFeature, BackendModuleConfig, BackendModuleRegistrationPoints, BackendPluginConfig, BackendPluginRegistrationPoints, CacheService, CacheServiceOptions, CacheServiceSetOptions, ConfigService, DatabaseService, DiscoveryService, ExtensionPoint, ExtensionPointConfig, HttpRouterService, IdentityService, LifecycleService, LifecycleServiceShutdownHook, LifecycleServiceShutdownOptions, LoggerService, PermissionsService, PluginMetadataService, PluginServiceFactoryConfig, ReadTreeOptions, ReadTreeResponse, ReadTreeResponseDirOptions, ReadTreeResponseFile, ReadUrlOptions, ReadUrlResponse, RootHttpRouterService, RootLifecycleService, RootLoggerService, RootServiceFactoryConfig, SchedulerService, SearchOptions, SearchResponse, SearchResponseFile, ServiceFactory, ServiceFactoryOrFunction, ServiceRef, ServiceRefConfig, SharedBackendEnvironment, SharedBackendEnvironmentConfig, TokenManagerService, UrlReaderService, coreServices, createBackendModule, createBackendPlugin, createExtensionPoint, createServiceFactory, createServiceRef, createSharedEnvironment };
|
|
939
|
+
export { BackendFeature, BackendModuleConfig, BackendModuleRegistrationPoints, BackendPluginConfig, BackendPluginRegistrationPoints, CacheService, CacheServiceOptions, CacheServiceSetOptions, ConfigService, DatabaseService, DiscoveryService, ExtensionPoint, ExtensionPointConfig, HttpRouterService, IdentityService, LifecycleService, LifecycleServiceShutdownHook, LifecycleServiceShutdownOptions, LifecycleServiceStartupHook, LifecycleServiceStartupOptions, LoggerService, PermissionsService, PluginMetadataService, PluginServiceFactoryConfig, ReadTreeOptions, ReadTreeResponse, ReadTreeResponseDirOptions, ReadTreeResponseFile, ReadUrlOptions, ReadUrlResponse, RootHttpRouterService, RootLifecycleService, RootLoggerService, RootServiceFactoryConfig, SchedulerService, SearchOptions, SearchResponse, SearchResponseFile, ServiceFactory, ServiceFactoryOrFunction, ServiceRef, ServiceRefConfig, SharedBackendEnvironment, SharedBackendEnvironmentConfig, TokenManagerService, UrlReaderService, coreServices, createBackendModule, createBackendPlugin, createExtensionPoint, createServiceFactory, createServiceRef, createSharedEnvironment };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/backend-plugin-api",
|
|
3
3
|
"description": "Core API used by Backstage backend plugins",
|
|
4
|
-
"version": "0.5.3-next.
|
|
4
|
+
"version": "0.5.3-next.1",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"publishConfig": {
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
"start": "backstage-cli package start"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@backstage/backend-tasks": "^0.5.3-next.
|
|
35
|
+
"@backstage/backend-tasks": "^0.5.3-next.1",
|
|
36
36
|
"@backstage/config": "^1.0.7",
|
|
37
|
-
"@backstage/plugin-auth-node": "^0.2.15-next.
|
|
38
|
-
"@backstage/plugin-permission-common": "^0.7.
|
|
37
|
+
"@backstage/plugin-auth-node": "^0.2.15-next.1",
|
|
38
|
+
"@backstage/plugin-permission-common": "^0.7.6-next.0",
|
|
39
39
|
"@backstage/types": "^1.0.2",
|
|
40
40
|
"@types/express": "^4.17.6",
|
|
41
41
|
"express": "^4.17.1",
|
|
42
42
|
"knex": "^2.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@backstage/cli": "^0.22.8-next.
|
|
45
|
+
"@backstage/cli": "^0.22.8-next.1"
|
|
46
46
|
},
|
|
47
47
|
"files": [
|
|
48
48
|
"dist",
|