@backstage/backend-plugin-api 0.0.0-nightly-20251207025219 → 0.0.0-nightly-20251210024611
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 +25 -4
- package/dist/alpha/refs.cjs.js +5 -0
- package/dist/alpha/refs.cjs.js.map +1 -1
- package/dist/alpha.cjs.js +1 -0
- package/dist/alpha.cjs.js.map +1 -1
- package/dist/alpha.d.ts +16 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,35 @@
|
|
|
1
1
|
# @backstage/backend-plugin-api
|
|
2
2
|
|
|
3
|
-
## 0.0.0-nightly-
|
|
3
|
+
## 0.0.0-nightly-20251210024611
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 2a0c4b0: Adds a new experimental `RootSystemMetadataService` for tracking the collection of Backstage instances that may be deployed at any one time. It currently offers a single API, `getInstalledPlugins` that returns a list of installed plugins based on config you have set up in `discovery.endpoints` as well as the plugins installed on the instance you're calling the API with. It does not handle wildcard values or fallback values. The intention is for this plugin to provide plugin authors with a simple interface to fetch a trustworthy list of all installed plugins.
|
|
4
8
|
|
|
5
9
|
### Patch Changes
|
|
6
10
|
|
|
7
11
|
- d9759a1: **BREAKING ALPHA**: The old `instanceMetadataService` has been removed from alpha. Please switch over to using the stable `coreServices.rootInstanceMetadata` and related types instead, available from `@backstage/backend-plugin-api`.
|
|
8
12
|
- Updated dependencies
|
|
9
|
-
- @backstage/plugin-auth-node@0.0.0-nightly-
|
|
10
|
-
- @backstage/plugin-permission-node@0.0.0-nightly-
|
|
11
|
-
- @backstage/cli-common@0.0.0-nightly-
|
|
13
|
+
- @backstage/plugin-auth-node@0.0.0-nightly-20251210024611
|
|
14
|
+
- @backstage/plugin-permission-node@0.0.0-nightly-20251210024611
|
|
15
|
+
- @backstage/cli-common@0.0.0-nightly-20251210024611
|
|
16
|
+
- @backstage/config@1.3.6
|
|
17
|
+
- @backstage/errors@1.2.7
|
|
18
|
+
- @backstage/types@1.2.2
|
|
19
|
+
- @backstage/plugin-permission-common@0.9.3
|
|
20
|
+
|
|
21
|
+
## 1.6.0-next.1
|
|
22
|
+
|
|
23
|
+
### Minor Changes
|
|
24
|
+
|
|
25
|
+
- 2a0c4b0: Adds a new experimental `RootSystemMetadataService` for tracking the collection of Backstage instances that may be deployed at any one time. It currently offers a single API, `getInstalledPlugins` that returns a list of installed plugins based on config you have set up in `discovery.endpoints` as well as the plugins installed on the instance you're calling the API with. It does not handle wildcard values or fallback values. The intention is for this plugin to provide plugin authors with a simple interface to fetch a trustworthy list of all installed plugins.
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
- @backstage/plugin-auth-node@0.6.10-next.1
|
|
31
|
+
- @backstage/plugin-permission-node@0.10.7-next.1
|
|
32
|
+
- @backstage/cli-common@0.1.16-next.2
|
|
12
33
|
- @backstage/config@1.3.6
|
|
13
34
|
- @backstage/errors@1.2.7
|
|
14
35
|
- @backstage/types@1.2.2
|
package/dist/alpha/refs.cjs.js
CHANGED
|
@@ -8,7 +8,12 @@ const actionsServiceRef = backendPluginApi.createServiceRef({
|
|
|
8
8
|
const actionsRegistryServiceRef = backendPluginApi.createServiceRef({
|
|
9
9
|
id: "alpha.core.actionsRegistry"
|
|
10
10
|
});
|
|
11
|
+
const rootSystemMetadataServiceRef = backendPluginApi.createServiceRef({
|
|
12
|
+
id: "alpha.core.rootSystemMetadata",
|
|
13
|
+
scope: "root"
|
|
14
|
+
});
|
|
11
15
|
|
|
12
16
|
exports.actionsRegistryServiceRef = actionsRegistryServiceRef;
|
|
13
17
|
exports.actionsServiceRef = actionsServiceRef;
|
|
18
|
+
exports.rootSystemMetadataServiceRef = rootSystemMetadataServiceRef;
|
|
14
19
|
//# sourceMappingURL=refs.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refs.cjs.js","sources":["../../src/alpha/refs.ts"],"sourcesContent":["/*\n * Copyright 2025 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 * Service for calling distributed actions\n *\n * See {@link ActionsService}\n * and {@link https://backstage.io/docs/backend-system/core-services/actions | the service docs}\n * for more information.\n *\n * @alpha\n */\nexport const actionsServiceRef = createServiceRef<\n import('./ActionsService').ActionsService\n>({\n id: 'alpha.core.actions',\n});\n\n/**\n * Service for registering and managing distributed actions.\n *\n * See {@link ActionsRegistryService}\n * and {@link https://backstage.io/docs/backend-system/core-services/actions-registry | the service docs}\n * for more information.\n *\n * @alpha\n */\nexport const actionsRegistryServiceRef = createServiceRef<\n import('./ActionsRegistryService').ActionsRegistryService\n>({\n id: 'alpha.core.actionsRegistry',\n});\n"],"names":["createServiceRef"],"mappings":";;;;AA2BO,MAAM,oBAAoBA,iCAAA,CAE/B;AAAA,EACA,EAAA,EAAI;AACN,CAAC;AAWM,MAAM,4BAA4BA,iCAAA,CAEvC;AAAA,EACA,EAAA,EAAI;AACN,CAAC
|
|
1
|
+
{"version":3,"file":"refs.cjs.js","sources":["../../src/alpha/refs.ts"],"sourcesContent":["/*\n * Copyright 2025 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 * Service for calling distributed actions\n *\n * See {@link ActionsService}\n * and {@link https://backstage.io/docs/backend-system/core-services/actions | the service docs}\n * for more information.\n *\n * @alpha\n */\nexport const actionsServiceRef = createServiceRef<\n import('./ActionsService').ActionsService\n>({\n id: 'alpha.core.actions',\n});\n\n/**\n * Service for registering and managing distributed actions.\n *\n * See {@link ActionsRegistryService}\n * and {@link https://backstage.io/docs/backend-system/core-services/actions-registry | the service docs}\n * for more information.\n *\n * @alpha\n */\nexport const actionsRegistryServiceRef = createServiceRef<\n import('./ActionsRegistryService').ActionsRegistryService\n>({\n id: 'alpha.core.actionsRegistry',\n});\n\n/**\n * Read information about your current Backstage deployment.\n * @alpha\n */\nexport const rootSystemMetadataServiceRef = createServiceRef<\n import('./RootSystemMetadataService').RootSystemMetadataService\n>({\n id: 'alpha.core.rootSystemMetadata',\n scope: 'root',\n});\n"],"names":["createServiceRef"],"mappings":";;;;AA2BO,MAAM,oBAAoBA,iCAAA,CAE/B;AAAA,EACA,EAAA,EAAI;AACN,CAAC;AAWM,MAAM,4BAA4BA,iCAAA,CAEvC;AAAA,EACA,EAAA,EAAI;AACN,CAAC;AAMM,MAAM,+BAA+BA,iCAAA,CAE1C;AAAA,EACA,EAAA,EAAI,+BAAA;AAAA,EACJ,KAAA,EAAO;AACT,CAAC;;;;;;"}
|
package/dist/alpha.cjs.js
CHANGED
|
@@ -6,4 +6,5 @@ var refs = require('./alpha/refs.cjs.js');
|
|
|
6
6
|
|
|
7
7
|
exports.actionsRegistryServiceRef = refs.actionsRegistryServiceRef;
|
|
8
8
|
exports.actionsServiceRef = refs.actionsServiceRef;
|
|
9
|
+
exports.rootSystemMetadataServiceRef = refs.rootSystemMetadataServiceRef;
|
|
9
10
|
//# sourceMappingURL=alpha.cjs.js.map
|
package/dist/alpha.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alpha.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"alpha.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -4,6 +4,15 @@ import { LoggerService, BackstageCredentials } from '@backstage/backend-plugin-a
|
|
|
4
4
|
import { JsonObject, JsonValue } from '@backstage/types';
|
|
5
5
|
import { JSONSchema7 } from 'json-schema';
|
|
6
6
|
|
|
7
|
+
/** @public */
|
|
8
|
+
interface RootSystemMetadataServicePluginInfo {
|
|
9
|
+
readonly pluginId: string;
|
|
10
|
+
}
|
|
11
|
+
/** @public */
|
|
12
|
+
interface RootSystemMetadataService {
|
|
13
|
+
getInstalledPlugins: () => Promise<ReadonlyArray<RootSystemMetadataServicePluginInfo>>;
|
|
14
|
+
}
|
|
15
|
+
|
|
7
16
|
/**
|
|
8
17
|
* @alpha
|
|
9
18
|
*/
|
|
@@ -95,6 +104,11 @@ declare const actionsServiceRef: _backstage_backend_plugin_api.ServiceRef<Action
|
|
|
95
104
|
* @alpha
|
|
96
105
|
*/
|
|
97
106
|
declare const actionsRegistryServiceRef: _backstage_backend_plugin_api.ServiceRef<ActionsRegistryService, "plugin", "singleton">;
|
|
107
|
+
/**
|
|
108
|
+
* Read information about your current Backstage deployment.
|
|
109
|
+
* @alpha
|
|
110
|
+
*/
|
|
111
|
+
declare const rootSystemMetadataServiceRef: _backstage_backend_plugin_api.ServiceRef<RootSystemMetadataService, "root", "singleton">;
|
|
98
112
|
|
|
99
|
-
export { actionsRegistryServiceRef, actionsServiceRef };
|
|
100
|
-
export type { ActionsRegistryActionContext, ActionsRegistryActionOptions, ActionsRegistryService, ActionsService, ActionsServiceAction };
|
|
113
|
+
export { actionsRegistryServiceRef, actionsServiceRef, rootSystemMetadataServiceRef };
|
|
114
|
+
export type { ActionsRegistryActionContext, ActionsRegistryActionOptions, ActionsRegistryService, ActionsService, ActionsServiceAction, RootSystemMetadataService, RootSystemMetadataServicePluginInfo };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/backend-plugin-api",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20251210024611",
|
|
4
4
|
"description": "Core API used by Backstage backend plugins",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "node-library"
|
|
@@ -65,12 +65,12 @@
|
|
|
65
65
|
"test": "backstage-cli package test"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@backstage/cli-common": "0.0.0-nightly-
|
|
68
|
+
"@backstage/cli-common": "0.0.0-nightly-20251210024611",
|
|
69
69
|
"@backstage/config": "1.3.6",
|
|
70
70
|
"@backstage/errors": "1.2.7",
|
|
71
|
-
"@backstage/plugin-auth-node": "0.0.0-nightly-
|
|
71
|
+
"@backstage/plugin-auth-node": "0.0.0-nightly-20251210024611",
|
|
72
72
|
"@backstage/plugin-permission-common": "0.9.3",
|
|
73
|
-
"@backstage/plugin-permission-node": "0.0.0-nightly-
|
|
73
|
+
"@backstage/plugin-permission-node": "0.0.0-nightly-20251210024611",
|
|
74
74
|
"@backstage/types": "1.2.2",
|
|
75
75
|
"@types/express": "^4.17.6",
|
|
76
76
|
"@types/json-schema": "^7.0.6",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"zod": "^3.22.4"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@backstage/backend-test-utils": "0.0.0-nightly-
|
|
85
|
-
"@backstage/cli": "0.0.0-nightly-
|
|
84
|
+
"@backstage/backend-test-utils": "0.0.0-nightly-20251210024611",
|
|
85
|
+
"@backstage/cli": "0.0.0-nightly-20251210024611"
|
|
86
86
|
},
|
|
87
87
|
"configSchema": "config.d.ts"
|
|
88
88
|
}
|