From 2f74b736113fc0ca14129ee657d98ca06242315b Mon Sep 17 00:00:00 2001 From: blam Date: Tue, 3 Sep 2024 14:47:52 +0200 Subject: [PATCH 1/2] chore: fix changeset Signed-off-by: blam --- .changeset/shiny-carpets-worry.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.changeset/shiny-carpets-worry.md b/.changeset/shiny-carpets-worry.md index f1c3bbe292..2a111c7334 100644 --- a/.changeset/shiny-carpets-worry.md +++ b/.changeset/shiny-carpets-worry.md @@ -3,7 +3,6 @@ '@backstage/frontend-test-utils': patch '@backstage/frontend-app-api': patch '@backstage/core-compat-api': patch -'@backstage/plugin-search-react': patch --- -Removing superfluous `namespace` parameter in favour of `pluginId` instead +Removing deprecated `namespace` parameter in favour of `pluginId` instead From 6db849e650901cf11e7d5b2758b518381e118dc4 Mon Sep 17 00:00:00 2001 From: blam Date: Tue, 3 Sep 2024 15:33:48 +0200 Subject: [PATCH 2/2] chore: fix up some small things Signed-off-by: blam --- .changeset/shiny-carpets-worried.md | 5 +++++ .changeset/shiny-carpets-worry.md | 1 - .../src/extensions/createComponentExtension.tsx | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .changeset/shiny-carpets-worried.md diff --git a/.changeset/shiny-carpets-worried.md b/.changeset/shiny-carpets-worried.md new file mode 100644 index 0000000000..c0093b49aa --- /dev/null +++ b/.changeset/shiny-carpets-worried.md @@ -0,0 +1,5 @@ +--- +'@backstage/core-compat-api': minor +--- + +**BREAKING**: The `namespace` parameter for API's is now defaulted to the `pluginId` which was discovered. This means that if you're overriding API's by using ID's directly, they might have changed to include the plugin ID too. diff --git a/.changeset/shiny-carpets-worry.md b/.changeset/shiny-carpets-worry.md index 2a111c7334..53688df920 100644 --- a/.changeset/shiny-carpets-worry.md +++ b/.changeset/shiny-carpets-worry.md @@ -2,7 +2,6 @@ '@backstage/frontend-plugin-api': patch '@backstage/frontend-test-utils': patch '@backstage/frontend-app-api': patch -'@backstage/core-compat-api': patch --- Removing deprecated `namespace` parameter in favour of `pluginId` instead diff --git a/packages/frontend-plugin-api/src/extensions/createComponentExtension.tsx b/packages/frontend-plugin-api/src/extensions/createComponentExtension.tsx index ca8f1f807b..f561a73dc6 100644 --- a/packages/frontend-plugin-api/src/extensions/createComponentExtension.tsx +++ b/packages/frontend-plugin-api/src/extensions/createComponentExtension.tsx @@ -33,7 +33,7 @@ export function createComponentExtension(options: { }) { return createExtension({ kind: 'component', - name: options.ref.id, + name: options.name ?? options.ref.id, attachTo: { id: 'api:app/components', input: 'components' }, disabled: options.disabled, output: [createComponentExtension.componentDataRef],