frontend-plugin-api: make pluginId optional in FrontendFeature type

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Patrik Oldsberg
2026-02-18 13:05:46 +01:00
parent 9506f2af73
commit 9c81af9676
4 changed files with 14 additions and 2 deletions
@@ -0,0 +1,5 @@
---
'@backstage/frontend-plugin-api': patch
---
Made the `pluginId` property optional in the `FrontendFeature` type, allowing plugins published against older versions of the framework to be used without type errors.
+1
View File
@@ -0,0 +1 @@
Fix type compatibility for older plugins in FrontendFeature type
+5 -1
View File
@@ -1336,7 +1336,11 @@ export type FetchApi = {
export const fetchApiRef: ApiRef<FetchApi>;
// @public (undocumented)
export type FrontendFeature = FrontendPlugin | FrontendModule;
export type FrontendFeature =
| (Omit<FrontendPlugin, 'pluginId'> & {
pluginId?: string;
})
| FrontendModule;
// @public (undocumented)
export interface FrontendFeatureLoader {
@@ -73,4 +73,6 @@ export type ExtensionFactoryMiddleware = (
) => Iterable<ExtensionDataValue<any, any>>;
/** @public */
export type FrontendFeature = FrontendPlugin | FrontendModule;
export type FrontendFeature =
| (Omit<FrontendPlugin, 'pluginId'> & { pluginId?: string })
| FrontendModule;