@backstage/backend-plugin-api 1.5.0-next.2 → 1.5.1-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 CHANGED
@@ -1,5 +1,34 @@
1
1
  # @backstage/backend-plugin-api
2
2
 
3
+ ## 1.5.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 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
+ - Updated dependencies
9
+ - @backstage/plugin-auth-node@0.6.10-next.0
10
+ - @backstage/cli-common@0.1.16-next.0
11
+ - @backstage/plugin-permission-node@0.10.7-next.0
12
+ - @backstage/config@1.3.6
13
+ - @backstage/errors@1.2.7
14
+ - @backstage/types@1.2.2
15
+ - @backstage/plugin-permission-common@0.9.3
16
+
17
+ ## 1.5.0
18
+
19
+ ### Minor Changes
20
+
21
+ - a17d9df: Promote `instanceMetadata` service to main entrypoint.
22
+ - 62fc2de: Explicitly mark `coreServices.rootInstanceMetadata` as a root service.
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies
27
+ - @backstage/plugin-permission-common@0.9.3
28
+ - @backstage/plugin-auth-node@0.6.9
29
+ - @backstage/config@1.3.6
30
+ - @backstage/plugin-permission-node@0.10.6
31
+
3
32
  ## 1.5.0-next.2
4
33
 
5
34
  ### Minor Changes
@@ -2,9 +2,6 @@
2
2
 
3
3
  var backendPluginApi = require('@backstage/backend-plugin-api');
4
4
 
5
- const instanceMetadataServiceRef = backendPluginApi.createServiceRef({
6
- id: "core.instanceMetadata"
7
- });
8
5
  const actionsServiceRef = backendPluginApi.createServiceRef({
9
6
  id: "alpha.core.actions"
10
7
  });
@@ -14,5 +11,4 @@ const actionsRegistryServiceRef = backendPluginApi.createServiceRef({
14
11
 
15
12
  exports.actionsRegistryServiceRef = actionsRegistryServiceRef;
16
13
  exports.actionsServiceRef = actionsServiceRef;
17
- exports.instanceMetadataServiceRef = instanceMetadataServiceRef;
18
14
  //# 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 * @alpha\n */\nexport const instanceMetadataServiceRef = createServiceRef<\n import('./InstanceMetadataService').InstanceMetadataService\n>({\n id: 'core.instanceMetadata',\n});\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":";;;;AAqBO,MAAM,6BAA6BA,iCAAA,CAExC;AAAA,EACA,EAAA,EAAI;AACN,CAAC;AAWM,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"],"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;;;;;"}
package/dist/alpha.cjs.js CHANGED
@@ -6,5 +6,4 @@ var refs = require('./alpha/refs.cjs.js');
6
6
 
7
7
  exports.actionsRegistryServiceRef = refs.actionsRegistryServiceRef;
8
8
  exports.actionsServiceRef = refs.actionsServiceRef;
9
- exports.instanceMetadataServiceRef = refs.instanceMetadataServiceRef;
10
9
  //# sourceMappingURL=alpha.cjs.js.map
@@ -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,20 +4,6 @@ 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
- /** @alpha */
8
- type BackendFeatureMeta = {
9
- type: 'plugin';
10
- pluginId: string;
11
- } | {
12
- type: 'module';
13
- pluginId: string;
14
- moduleId: string;
15
- };
16
- /** @alpha */
17
- interface InstanceMetadataService {
18
- getInstalledFeatures: () => BackendFeatureMeta[];
19
- }
20
-
21
7
  /**
22
8
  * @alpha
23
9
  */
@@ -89,10 +75,6 @@ interface ActionsService {
89
75
  }>;
90
76
  }
91
77
 
92
- /**
93
- * @alpha
94
- */
95
- declare const instanceMetadataServiceRef: _backstage_backend_plugin_api.ServiceRef<InstanceMetadataService, "plugin", "singleton">;
96
78
  /**
97
79
  * Service for calling distributed actions
98
80
  *
@@ -114,4 +96,4 @@ declare const actionsServiceRef: _backstage_backend_plugin_api.ServiceRef<Action
114
96
  */
115
97
  declare const actionsRegistryServiceRef: _backstage_backend_plugin_api.ServiceRef<ActionsRegistryService, "plugin", "singleton">;
116
98
 
117
- export { type ActionsRegistryActionContext, type ActionsRegistryActionOptions, type ActionsRegistryService, type ActionsService, type ActionsServiceAction, type BackendFeatureMeta, type InstanceMetadataService, actionsRegistryServiceRef, actionsServiceRef, instanceMetadataServiceRef };
99
+ export { type ActionsRegistryActionContext, type ActionsRegistryActionOptions, type ActionsRegistryService, type ActionsService, type ActionsServiceAction, actionsRegistryServiceRef, actionsServiceRef };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/backend-plugin-api",
3
- "version": "1.5.0-next.2",
3
+ "version": "1.5.1-next.0",
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.1.15",
69
- "@backstage/config": "1.3.6-next.0",
68
+ "@backstage/cli-common": "0.1.16-next.0",
69
+ "@backstage/config": "1.3.6",
70
70
  "@backstage/errors": "1.2.7",
71
- "@backstage/plugin-auth-node": "0.6.9-next.1",
72
- "@backstage/plugin-permission-common": "0.9.3-next.1",
73
- "@backstage/plugin-permission-node": "0.10.6-next.1",
71
+ "@backstage/plugin-auth-node": "0.6.10-next.0",
72
+ "@backstage/plugin-permission-common": "0.9.3",
73
+ "@backstage/plugin-permission-node": "0.10.7-next.0",
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": "1.10.0-next.2",
85
- "@backstage/cli": "0.34.5-next.1"
84
+ "@backstage/backend-test-utils": "1.10.1-next.0",
85
+ "@backstage/cli": "0.34.6-next.0"
86
86
  },
87
87
  "configSchema": "config.d.ts"
88
88
  }