update changeset

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-01-17 10:27:40 +01:00
parent 420c1cce91
commit ca26a420c8
+15 -2
View File
@@ -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<Router> {
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`