chore: reworking exports

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-03-03 11:13:15 +01:00
parent 1de7dd85b0
commit ab7b6cb7b1
3 changed files with 13 additions and 8 deletions
+6
View File
@@ -0,0 +1,6 @@
---
'@backstage/plugin-catalog-backend': patch
'@backstage/plugin-catalog-common': patch
---
Moved the `CatalogEntityDocument` to `@backstage/plugin-catalog-common` and deprecated the export from `@backstage/plugin-catalog-backend`
@@ -29,14 +29,11 @@ import {
CatalogClient,
GetEntitiesRequest,
} from '@backstage/catalog-client';
import { catalogEntityReadPermission } from '@backstage/plugin-catalog-common';
import { CatalogEntityDocument } from './DefaultCatalogCollatorFactory';
import {
catalogEntityReadPermission,
CatalogEntityDocument,
} from '@backstage/plugin-catalog-common';
/**
* @public
* @deprecated Upgrade to a more recent `@backstage/search-backend-node` and
* use `DefaultCatalogCollatorFactory` instead.
*/
export class DefaultCatalogCollator {
protected discovery: PluginEndpointDiscovery;
protected locationTemplate: string;
+3 -1
View File
@@ -16,7 +16,9 @@
export { DefaultCatalogCollatorFactory } from './DefaultCatalogCollatorFactory';
export type { DefaultCatalogCollatorFactoryOptions } from './DefaultCatalogCollatorFactory';
export type { CatalogEntityDocument } from './DefaultCatalogCollatorFactory';
/** @public @deprecated use the export from `plugin-catalog-common` instead */
export type { CatalogEntityDocument } from '@backstage/plugin-catalog-common';
/**
* todo(backstage/techdocs-core): stop exporting this in a future release.