@backstage/backend-plugin-api 1.1.1 → 1.2.0-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 +35 -0
- package/dist/alpha.cjs.js +0 -5
- package/dist/alpha.cjs.js.map +1 -1
- package/dist/alpha.d.ts +1 -14
- package/dist/index.cjs.js +2 -2
- package/dist/index.d.ts +1051 -876
- package/dist/services/definitions/coreServices.cjs.js +2 -0
- package/dist/services/definitions/coreServices.cjs.js.map +1 -1
- package/package.json +10 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# @backstage/backend-plugin-api
|
|
2
2
|
|
|
3
|
+
## 1.2.0-next.1
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 92a56f6: **BREAKING ALPHA**: Removed the deprecated `featureDiscoveryServiceRef` and `FeatureDiscoveryService`.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @backstage/plugin-auth-node@0.6.0-next.1
|
|
13
|
+
- @backstage/cli-common@0.1.15
|
|
14
|
+
- @backstage/config@1.3.2
|
|
15
|
+
- @backstage/errors@1.2.7
|
|
16
|
+
- @backstage/types@1.2.1
|
|
17
|
+
- @backstage/plugin-permission-common@0.8.4
|
|
18
|
+
- @backstage/plugin-permission-node@0.8.8-next.1
|
|
19
|
+
|
|
20
|
+
## 1.2.0-next.0
|
|
21
|
+
|
|
22
|
+
### Minor Changes
|
|
23
|
+
|
|
24
|
+
- a4aa244: This change introduces the `auditor` service definition.
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- 9ddfd94: Added new `PermissionsRegistryService` that is used by plugins to register permissions, resource types, and rules into the permission system. This replaces the existing `createPermissionIntegrationRouter` from `@backstage/plugin-permission-node`.
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
- @backstage/plugin-permission-node@0.8.8-next.0
|
|
31
|
+
- @backstage/cli-common@0.1.15
|
|
32
|
+
- @backstage/config@1.3.2
|
|
33
|
+
- @backstage/errors@1.2.7
|
|
34
|
+
- @backstage/types@1.2.1
|
|
35
|
+
- @backstage/plugin-auth-node@0.5.7-next.0
|
|
36
|
+
- @backstage/plugin-permission-common@0.8.4
|
|
37
|
+
|
|
3
38
|
## 1.1.1
|
|
4
39
|
|
|
5
40
|
### Patch Changes
|
package/dist/alpha.cjs.js
CHANGED
|
@@ -2,14 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var backendPluginApi = require('@backstage/backend-plugin-api');
|
|
4
4
|
|
|
5
|
-
const featureDiscoveryServiceRef = backendPluginApi.createServiceRef({
|
|
6
|
-
id: "core.featureDiscovery",
|
|
7
|
-
scope: "root"
|
|
8
|
-
});
|
|
9
5
|
const instanceMetadataServiceRef = backendPluginApi.createServiceRef({
|
|
10
6
|
id: "core.instanceMetadata"
|
|
11
7
|
});
|
|
12
8
|
|
|
13
|
-
exports.featureDiscoveryServiceRef = featureDiscoveryServiceRef;
|
|
14
9
|
exports.instanceMetadataServiceRef = instanceMetadataServiceRef;
|
|
15
10
|
//# sourceMappingURL=alpha.cjs.js.map
|
package/dist/alpha.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alpha.cjs.js","sources":["../src/alpha.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":"alpha.cjs.js","sources":["../src/alpha.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 { createServiceRef } from '@backstage/backend-plugin-api';\n\n/**\n * EXPERIMENTAL: Instance metadata service.\n *\n * @alpha\n */\nexport const instanceMetadataServiceRef = createServiceRef<\n import('./services/definitions/InstanceMetadataService').InstanceMetadataService\n>({\n id: 'core.instanceMetadata',\n});\n\nexport type {\n BackendFeatureMeta,\n InstanceMetadataService,\n} from './services/definitions/InstanceMetadataService';\n"],"names":["createServiceRef"],"mappings":";;;;AAuBO,MAAM,6BAA6BA,iCAExC,CAAA;AAAA,EACA,EAAI,EAAA;AACN,CAAC;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
|
|
2
|
-
import { BackendFeature } from '@backstage/backend-plugin-api';
|
|
3
2
|
|
|
4
3
|
/** @alpha */
|
|
5
4
|
type BackendFeatureMeta = {
|
|
@@ -15,18 +14,6 @@ interface InstanceMetadataService {
|
|
|
15
14
|
getInstalledFeatures: () => BackendFeatureMeta[];
|
|
16
15
|
}
|
|
17
16
|
|
|
18
|
-
/** @alpha */
|
|
19
|
-
interface FeatureDiscoveryService {
|
|
20
|
-
getBackendFeatures(): Promise<{
|
|
21
|
-
features: Array<BackendFeature>;
|
|
22
|
-
}>;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* An optional service that can be used to dynamically load in additional BackendFeatures at runtime.
|
|
26
|
-
* @alpha
|
|
27
|
-
* @deprecated The `featureDiscoveryServiceRef` is deprecated in favor of using {@link @backstage/backend-defaults#discoveryFeatureLoader} instead.
|
|
28
|
-
*/
|
|
29
|
-
declare const featureDiscoveryServiceRef: _backstage_backend_plugin_api.ServiceRef<FeatureDiscoveryService, "root", "singleton">;
|
|
30
17
|
/**
|
|
31
18
|
* EXPERIMENTAL: Instance metadata service.
|
|
32
19
|
*
|
|
@@ -34,4 +21,4 @@ declare const featureDiscoveryServiceRef: _backstage_backend_plugin_api.ServiceR
|
|
|
34
21
|
*/
|
|
35
22
|
declare const instanceMetadataServiceRef: _backstage_backend_plugin_api.ServiceRef<InstanceMetadataService, "plugin", "singleton">;
|
|
36
23
|
|
|
37
|
-
export { type BackendFeatureMeta, type
|
|
24
|
+
export { type BackendFeatureMeta, type InstanceMetadataService, instanceMetadataServiceRef };
|
package/dist/index.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var coreServices = require('./services/definitions/coreServices.cjs.js');
|
|
4
3
|
var SchedulerService = require('./services/definitions/SchedulerService.cjs.js');
|
|
4
|
+
var coreServices = require('./services/definitions/coreServices.cjs.js');
|
|
5
5
|
var types = require('./services/system/types.cjs.js');
|
|
6
6
|
var database = require('./services/utilities/database.cjs.js');
|
|
7
7
|
var paths = require('./paths.cjs.js');
|
|
@@ -13,11 +13,11 @@ var cliCommon = require('@backstage/cli-common');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
exports.readSchedulerServiceTaskScheduleDefinitionFromConfig = SchedulerService.readSchedulerServiceTaskScheduleDefinitionFromConfig;
|
|
16
17
|
Object.defineProperty(exports, "coreServices", {
|
|
17
18
|
enumerable: true,
|
|
18
19
|
get: function () { return coreServices.coreServices; }
|
|
19
20
|
});
|
|
20
|
-
exports.readSchedulerServiceTaskScheduleDefinitionFromConfig = SchedulerService.readSchedulerServiceTaskScheduleDefinitionFromConfig;
|
|
21
21
|
exports.createServiceFactory = types.createServiceFactory;
|
|
22
22
|
exports.createServiceRef = types.createServiceRef;
|
|
23
23
|
exports.isDatabaseConflictError = database.isDatabaseConflictError;
|