From 6c9b88e70cf5d5636c621e5c6af11d8d5b92a2f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Fri, 25 Apr 2025 15:01:18 +0200 Subject: [PATCH] remove the alpha export of the plugin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- .changeset/chatty-showers-cheat.md | 5 +++++ plugins/catalog-backend/dev/index.ts | 2 +- plugins/catalog-backend/report-alpha.api.md | 5 ----- plugins/catalog-backend/src/alpha.ts | 6 ------ 4 files changed, 6 insertions(+), 12 deletions(-) create mode 100644 .changeset/chatty-showers-cheat.md diff --git a/.changeset/chatty-showers-cheat.md b/.changeset/chatty-showers-cheat.md new file mode 100644 index 0000000000..24c2720fb6 --- /dev/null +++ b/.changeset/chatty-showers-cheat.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog-backend': minor +--- + +**BREAKING ALPHA**: You can no longer import the catalog plugin from the `/alpha` export; please use the regular root default export instead. diff --git a/plugins/catalog-backend/dev/index.ts b/plugins/catalog-backend/dev/index.ts index 43c75d24df..dc287d46cc 100644 --- a/plugins/catalog-backend/dev/index.ts +++ b/plugins/catalog-backend/dev/index.ts @@ -17,5 +17,5 @@ import { createBackend } from '@backstage/backend-defaults'; const backend = createBackend(); -backend.add(import('../src/alpha')); +backend.add(import('../src')); backend.start(); diff --git a/plugins/catalog-backend/report-alpha.api.md b/plugins/catalog-backend/report-alpha.api.md index d32ef323c9..ca521a568d 100644 --- a/plugins/catalog-backend/report-alpha.api.md +++ b/plugins/catalog-backend/report-alpha.api.md @@ -3,7 +3,6 @@ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). ```ts -import { BackendFeature } from '@backstage/backend-plugin-api'; import { ConditionalPolicyDecision } from '@backstage/plugin-permission-common'; import { Conditions } from '@backstage/plugin-permission-node'; import { EntitiesSearchFilter } from '@backstage/plugin-catalog-node'; @@ -87,10 +86,6 @@ export const createCatalogPermissionRule: < rule: PermissionRule, ) => PermissionRule; -// @alpha (undocumented) -const _feature: BackendFeature; -export default _feature; - // @alpha export const permissionRules: { hasAnnotation: PermissionRule< diff --git a/plugins/catalog-backend/src/alpha.ts b/plugins/catalog-backend/src/alpha.ts index 4d40b8733e..82585fcf1d 100644 --- a/plugins/catalog-backend/src/alpha.ts +++ b/plugins/catalog-backend/src/alpha.ts @@ -14,10 +14,4 @@ * limitations under the License. */ -import { catalogPlugin } from './service/CatalogPlugin'; - -/** @alpha */ -const _feature = catalogPlugin; -export default _feature; - export * from './permissions';