From ca26a420c82c158e613045626a24d9d5168490e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Mon, 17 Jan 2022 10:27:40 +0100 Subject: [PATCH] update changeset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- .changeset/khaki-adults-own.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.changeset/khaki-adults-own.md b/.changeset/khaki-adults-own.md index 3e61917ecf..dea317b226 100644 --- a/.changeset/khaki-adults-own.md +++ b/.changeset/khaki-adults-own.md @@ -2,8 +2,7 @@ '@backstage/plugin-catalog-backend': minor --- -**BREAKING CHANGE**: Removed all remnants of the old catalog engine -implementation. +**BREAKING**: Removed all remnants of the old catalog engine implementation. The old implementation has been deprecated for over half a year. To ensure that you are not using the old implementation, check that your @@ -14,6 +13,20 @@ version. If you are still on the old version, see [the relevant change log entry](https://github.com/backstage/backstage/blob/master/plugins/catalog-backend/CHANGELOG.md#patch-changes-27) for migration instructions. +The minimal `packages/backend/src/plugins/catalog.ts` file is now: + +```ts +export default async function createPlugin( + env: PluginEnvironment, +): Promise { + const builder = await CatalogBuilder.create(env); + builder.addProcessor(new ScaffolderEntitiesProcessor()); + const { processingEngine, router } = await builder.build(); + await processingEngine.start(); + return router; +} +``` + The following classes and interfaces have been removed: - The `CatalogBuilder` constructor (see above; use `CatalogBuilder.create`