Merge pull request #26435 from backstage/blam/fix-change

NFS: Small changeset tweaks and API Ref change
This commit is contained in:
Ben Lambert
2024-09-03 16:32:09 +02:00
committed by GitHub
3 changed files with 7 additions and 4 deletions
+5
View File
@@ -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.
+1 -3
View File
@@ -2,8 +2,6 @@
'@backstage/frontend-plugin-api': patch
'@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
@@ -33,7 +33,7 @@ export function createComponentExtension<TProps extends {}>(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],