@backstage/backend-dynamic-feature-service 0.6.2 → 0.7.0-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/CHANGELOG.md +29 -0
- package/dist/index.d.ts +3 -62
- package/dist/manager/types.cjs.js.map +1 -1
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @backstage/backend-dynamic-feature-service
|
|
2
2
|
|
|
3
|
+
## 0.7.0-next.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 10f693c: **BREAKING** Removed support for the legacy backend, please migrate to the new backend system
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @backstage/backend-defaults@0.9.1-next.0
|
|
13
|
+
- @backstage/plugin-catalog-backend@1.32.2-next.0
|
|
14
|
+
- @backstage/plugin-scaffolder-node@0.8.2-next.0
|
|
15
|
+
- @backstage/backend-plugin-api@1.3.1-next.0
|
|
16
|
+
- @backstage/cli-node@0.2.13
|
|
17
|
+
- @backstage/config-loader@1.10.0
|
|
18
|
+
- @backstage/plugin-auth-node@0.6.3-next.0
|
|
19
|
+
- @backstage/plugin-events-backend@0.5.2-next.0
|
|
20
|
+
- @backstage/plugin-events-node@0.4.11-next.0
|
|
21
|
+
- @backstage/plugin-permission-node@0.9.2-next.0
|
|
22
|
+
- @backstage/plugin-search-backend-node@1.3.11-next.0
|
|
23
|
+
- @backstage/backend-openapi-utils@0.5.3-next.0
|
|
24
|
+
- @backstage/cli-common@0.1.15
|
|
25
|
+
- @backstage/config@1.3.2
|
|
26
|
+
- @backstage/errors@1.2.7
|
|
27
|
+
- @backstage/types@1.2.1
|
|
28
|
+
- @backstage/plugin-app-node@0.1.33-next.0
|
|
29
|
+
- @backstage/plugin-permission-common@0.8.4
|
|
30
|
+
- @backstage/plugin-search-common@1.2.17
|
|
31
|
+
|
|
3
32
|
## 0.6.2
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import { BackstagePackageJson, PackageRole, PackagePlatform } from '@backstage/cli-node';
|
|
2
2
|
import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
|
|
3
|
-
import { LoggerService,
|
|
4
|
-
import { Logger } from 'winston';
|
|
3
|
+
import { LoggerService, BackendFeature } from '@backstage/backend-plugin-api';
|
|
5
4
|
import { Config } from '@backstage/config';
|
|
6
|
-
import { Router } from 'express';
|
|
7
|
-
import { IdentityApi } from '@backstage/plugin-auth-node';
|
|
8
|
-
import { PermissionEvaluator } from '@backstage/plugin-permission-common';
|
|
9
|
-
import { EventBroker, EventsService, HttpPostIngressOptions } from '@backstage/plugin-events-node';
|
|
10
|
-
import { CatalogBuilder } from '@backstage/plugin-catalog-backend';
|
|
11
|
-
import { TemplateAction } from '@backstage/plugin-scaffolder-node';
|
|
12
|
-
import { IndexBuilder } from '@backstage/plugin-search-backend-node';
|
|
13
|
-
import { PermissionPolicy } from '@backstage/plugin-permission-node';
|
|
14
5
|
import { ConfigSchema } from '@backstage/config-loader';
|
|
15
6
|
import { WinstonLoggerOptions } from '@backstage/backend-defaults/rootLogger';
|
|
16
7
|
import { JsonObject } from '@backstage/types';
|
|
@@ -59,31 +50,6 @@ declare class CommonJSModuleLoader implements ModuleLoader {
|
|
|
59
50
|
load(packagePath: string): Promise<any>;
|
|
60
51
|
}
|
|
61
52
|
|
|
62
|
-
/**
|
|
63
|
-
* @public
|
|
64
|
-
*
|
|
65
|
-
* @deprecated
|
|
66
|
-
*
|
|
67
|
-
* Support for the legacy backend system will be removed in the future.
|
|
68
|
-
*
|
|
69
|
-
* When adding a legacy plugin installer entrypoint in your plugin,
|
|
70
|
-
* you should always take the opportunity to also implement support
|
|
71
|
-
* for the new backend system if not already done.
|
|
72
|
-
*
|
|
73
|
-
*/
|
|
74
|
-
type LegacyPluginEnvironment = {
|
|
75
|
-
logger: Logger;
|
|
76
|
-
database: DatabaseService;
|
|
77
|
-
config: Config;
|
|
78
|
-
reader: UrlReaderService;
|
|
79
|
-
discovery: DiscoveryService;
|
|
80
|
-
permissions: PermissionEvaluator;
|
|
81
|
-
scheduler: SchedulerService;
|
|
82
|
-
identity: IdentityApi;
|
|
83
|
-
eventBroker: EventBroker;
|
|
84
|
-
events: EventsService;
|
|
85
|
-
pluginProvider: BackendPluginProvider;
|
|
86
|
-
};
|
|
87
53
|
/**
|
|
88
54
|
* @public
|
|
89
55
|
*/
|
|
@@ -139,7 +105,7 @@ interface BackendDynamicPlugin extends BaseDynamicPlugin {
|
|
|
139
105
|
/**
|
|
140
106
|
* @public
|
|
141
107
|
*/
|
|
142
|
-
type BackendDynamicPluginInstaller =
|
|
108
|
+
type BackendDynamicPluginInstaller = NewBackendPluginInstaller;
|
|
143
109
|
/**
|
|
144
110
|
* @public
|
|
145
111
|
*/
|
|
@@ -147,31 +113,6 @@ interface NewBackendPluginInstaller {
|
|
|
147
113
|
kind: 'new';
|
|
148
114
|
install(): BackendFeature | BackendFeature[];
|
|
149
115
|
}
|
|
150
|
-
/**
|
|
151
|
-
* @public
|
|
152
|
-
* @deprecated
|
|
153
|
-
*
|
|
154
|
-
* Support for the legacy backend system will be removed in the future.
|
|
155
|
-
*
|
|
156
|
-
* When adding a legacy plugin installer entrypoint in your plugin,
|
|
157
|
-
* you should always take the opportunity to also implement support
|
|
158
|
-
* for the new backend system if not already done.
|
|
159
|
-
*
|
|
160
|
-
*/
|
|
161
|
-
interface LegacyBackendPluginInstaller {
|
|
162
|
-
kind: 'legacy';
|
|
163
|
-
router?: {
|
|
164
|
-
pluginID: string;
|
|
165
|
-
createPlugin(env: LegacyPluginEnvironment): Promise<Router>;
|
|
166
|
-
};
|
|
167
|
-
catalog?(builder: CatalogBuilder, env: LegacyPluginEnvironment): void;
|
|
168
|
-
scaffolder?(env: LegacyPluginEnvironment): TemplateAction<any>[];
|
|
169
|
-
search?(indexBuilder: IndexBuilder, schedule: SchedulerServiceTaskRunner, env: LegacyPluginEnvironment): void;
|
|
170
|
-
events?(env: LegacyPluginEnvironment): HttpPostIngressOptions[];
|
|
171
|
-
permissions?: {
|
|
172
|
-
policy?: PermissionPolicy;
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
116
|
/**
|
|
176
117
|
* @public
|
|
177
118
|
*/
|
|
@@ -418,4 +359,4 @@ interface DynamicPluginsFrontendRemotesService {
|
|
|
418
359
|
*/
|
|
419
360
|
declare const dynamicPluginsFrontendServiceRef: _backstage_backend_plugin_api.ServiceRef<DynamicPluginsFrontendRemotesService, "root", "singleton">;
|
|
420
361
|
|
|
421
|
-
export { type AdditionalRemoteInfo, type BackendDynamicPlugin, type BackendDynamicPluginInstaller, type BackendPluginProvider, type BaseDynamicPlugin, CommonJSModuleLoader, type CommonJSModuleLoaderOptions, type DynamicPlugin, DynamicPluginManager, type DynamicPluginManagerOptions, type DynamicPluginProvider, type DynamicPluginsFactoryOptions, type DynamicPluginsFeatureLoaderOptions, type DynamicPluginsFrontendRemotesService, type DynamicPluginsRootLoggerFactoryOptions, type DynamicPluginsSchemasOptions, type DynamicPluginsSchemasService, type FrontendDynamicPlugin, type FrontendPluginProvider, type FrontendRemoteResolver, type FrontendRemoteResolverProvider, type
|
|
362
|
+
export { type AdditionalRemoteInfo, type BackendDynamicPlugin, type BackendDynamicPluginInstaller, type BackendPluginProvider, type BaseDynamicPlugin, CommonJSModuleLoader, type CommonJSModuleLoaderOptions, type DynamicPlugin, DynamicPluginManager, type DynamicPluginManagerOptions, type DynamicPluginProvider, type DynamicPluginsFactoryOptions, type DynamicPluginsFeatureLoaderOptions, type DynamicPluginsFrontendRemotesService, type DynamicPluginsRootLoggerFactoryOptions, type DynamicPluginsSchemasOptions, type DynamicPluginsSchemasService, type FrontendDynamicPlugin, type FrontendPluginProvider, type FrontendRemoteResolver, type FrontendRemoteResolverProvider, type ModuleLoader, type NewBackendPluginInstaller, type RemoteInfo, type RemoteInfoTypeEnum, type ScannedPluginManifest, type ScannedPluginPackage, dynamicPluginsFeatureDiscoveryLoader, dynamicPluginsFeatureLoader, dynamicPluginsFrontendSchemas, dynamicPluginsFrontendServiceRef, dynamicPluginsRootLoggerServiceFactory, dynamicPluginsSchemasServiceFactory, dynamicPluginsServiceFactory, dynamicPluginsServiceFactoryWithOptions, dynamicPluginsServiceRef, isBackendDynamicPluginInstaller };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.cjs.js","sources":["../../src/manager/types.ts"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {
|
|
1
|
+
{"version":3,"file":"types.cjs.js","sources":["../../src/manager/types.ts"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { BackendFeature } from '@backstage/backend-plugin-api';\nimport { PackagePlatform, PackageRole } from '@backstage/cli-node';\nimport { ScannedPluginPackage } from '../scanner';\n\n/**\n * @public\n */\nexport interface DynamicPluginProvider\n extends FrontendPluginProvider,\n BackendPluginProvider {\n plugins(options?: { includeFailed?: boolean }): DynamicPlugin[];\n getScannedPackage(plugin: DynamicPlugin): ScannedPluginPackage;\n}\n\n/**\n * @public\n */\nexport interface BackendPluginProvider {\n backendPlugins(options?: { includeFailed?: boolean }): BackendDynamicPlugin[];\n}\n\n/**\n * @public\n */\nexport interface FrontendPluginProvider {\n frontendPlugins(options?: {\n includeFailed?: boolean;\n }): FrontendDynamicPlugin[];\n}\n\n/**\n * @public\n */\nexport interface BaseDynamicPlugin {\n name: string;\n version: string;\n role: PackageRole;\n platform: PackagePlatform;\n failure?: string;\n}\n\n/**\n * @public\n */\nexport type DynamicPlugin = FrontendDynamicPlugin | BackendDynamicPlugin;\n\n/**\n * @public\n */\nexport interface FrontendDynamicPlugin extends BaseDynamicPlugin {\n platform: 'web';\n}\n\n/**\n * @public\n */\nexport interface BackendDynamicPlugin extends BaseDynamicPlugin {\n platform: 'node';\n installer?: BackendDynamicPluginInstaller;\n}\n\n/**\n * @public\n */\nexport type BackendDynamicPluginInstaller = NewBackendPluginInstaller;\n\n/**\n * @public\n */\nexport interface NewBackendPluginInstaller {\n kind: 'new';\n\n install(): BackendFeature | BackendFeature[];\n}\n\n/**\n * @public\n */\nexport function isBackendDynamicPluginInstaller(\n obj: any,\n): obj is BackendDynamicPluginInstaller {\n return (\n obj !== undefined &&\n 'kind' in obj &&\n (obj.kind === 'new' || obj.kind === 'legacy')\n );\n}\n"],"names":[],"mappings":";;AA8FO,SAAS,gCACd,GACsC,EAAA;AACtC,EACE,OAAA,GAAA,KAAQ,UACR,MAAU,IAAA,GAAA,KACT,IAAI,IAAS,KAAA,KAAA,IAAS,IAAI,IAAS,KAAA,QAAA,CAAA;AAExC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/backend-dynamic-feature-service",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0-next.0",
|
|
4
4
|
"description": "Backstage dynamic feature service",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "node-library"
|
|
@@ -52,28 +52,27 @@
|
|
|
52
52
|
"test": "backstage-cli package test"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@backstage/backend-defaults": "
|
|
56
|
-
"@backstage/backend-openapi-utils": "
|
|
57
|
-
"@backstage/backend-plugin-api": "
|
|
58
|
-
"@backstage/cli-common": "
|
|
59
|
-
"@backstage/cli-node": "
|
|
60
|
-
"@backstage/config": "
|
|
61
|
-
"@backstage/config-loader": "
|
|
62
|
-
"@backstage/errors": "
|
|
63
|
-
"@backstage/plugin-app-node": "
|
|
64
|
-
"@backstage/plugin-auth-node": "
|
|
65
|
-
"@backstage/plugin-catalog-backend": "
|
|
66
|
-
"@backstage/plugin-events-backend": "
|
|
67
|
-
"@backstage/plugin-events-node": "
|
|
68
|
-
"@backstage/plugin-permission-common": "
|
|
69
|
-
"@backstage/plugin-permission-node": "
|
|
70
|
-
"@backstage/plugin-scaffolder-node": "
|
|
71
|
-
"@backstage/plugin-search-backend-node": "
|
|
72
|
-
"@backstage/plugin-search-common": "
|
|
73
|
-
"@backstage/types": "
|
|
55
|
+
"@backstage/backend-defaults": "0.9.1-next.0",
|
|
56
|
+
"@backstage/backend-openapi-utils": "0.5.3-next.0",
|
|
57
|
+
"@backstage/backend-plugin-api": "1.3.1-next.0",
|
|
58
|
+
"@backstage/cli-common": "0.1.15",
|
|
59
|
+
"@backstage/cli-node": "0.2.13",
|
|
60
|
+
"@backstage/config": "1.3.2",
|
|
61
|
+
"@backstage/config-loader": "1.10.0",
|
|
62
|
+
"@backstage/errors": "1.2.7",
|
|
63
|
+
"@backstage/plugin-app-node": "0.1.33-next.0",
|
|
64
|
+
"@backstage/plugin-auth-node": "0.6.3-next.0",
|
|
65
|
+
"@backstage/plugin-catalog-backend": "1.32.2-next.0",
|
|
66
|
+
"@backstage/plugin-events-backend": "0.5.2-next.0",
|
|
67
|
+
"@backstage/plugin-events-node": "0.4.11-next.0",
|
|
68
|
+
"@backstage/plugin-permission-common": "0.8.4",
|
|
69
|
+
"@backstage/plugin-permission-node": "0.9.2-next.0",
|
|
70
|
+
"@backstage/plugin-scaffolder-node": "0.8.2-next.0",
|
|
71
|
+
"@backstage/plugin-search-backend-node": "1.3.11-next.0",
|
|
72
|
+
"@backstage/plugin-search-common": "1.2.17",
|
|
73
|
+
"@backstage/types": "1.2.1",
|
|
74
74
|
"@manypkg/get-packages": "^1.1.3",
|
|
75
75
|
"@module-federation/sdk": "^0.9.0",
|
|
76
|
-
"@types/express": "^4.17.6",
|
|
77
76
|
"chokidar": "^3.5.3",
|
|
78
77
|
"express": "^4.17.1",
|
|
79
78
|
"express-promise-router": "^4.1.0",
|
|
@@ -82,11 +81,12 @@
|
|
|
82
81
|
"winston": "^3.2.1"
|
|
83
82
|
},
|
|
84
83
|
"devDependencies": {
|
|
85
|
-
"@backstage/backend-app-api": "
|
|
86
|
-
"@backstage/backend-test-utils": "
|
|
87
|
-
"@backstage/cli": "
|
|
88
|
-
"@backstage/plugin-app-backend": "
|
|
89
|
-
"@backstage/repo-tools": "
|
|
84
|
+
"@backstage/backend-app-api": "1.2.3-next.0",
|
|
85
|
+
"@backstage/backend-test-utils": "1.5.0-next.0",
|
|
86
|
+
"@backstage/cli": "0.32.1-next.0",
|
|
87
|
+
"@backstage/plugin-app-backend": "0.5.2-next.0",
|
|
88
|
+
"@backstage/repo-tools": "0.13.3-next.0",
|
|
89
|
+
"@types/express": "^4.17.6",
|
|
90
90
|
"triple-beam": "^1.4.1",
|
|
91
91
|
"wait-for-expect": "^3.0.2"
|
|
92
92
|
},
|