catalog-react: Remove reduceCatalogFilters & reduceEntityFilters

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2022-03-04 13:39:26 +01:00
parent 02875d4d56
commit b0af81726d
4 changed files with 13 additions and 19 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-react': minor
---
**BREAKING**: Removed `reduceCatalogFilters` and `reduceEntityFilters` due to low external utility value.
-10
View File
@@ -477,16 +477,6 @@ export class MockStarredEntitiesApi implements StarredEntitiesApi {
toggleStarred(entityRef: string): Promise<void>;
}
// @public @deprecated (undocumented)
export function reduceCatalogFilters(
filters: EntityFilter[],
): Record<string, string | symbol | (string | symbol)[]>;
// @public @deprecated (undocumented)
export function reduceEntityFilters(
filters: EntityFilter[],
): (entity: Entity) => boolean;
// @public
export interface StarredEntitiesApi {
starredEntitie$(): Observable<Set<string>>;
+8 -1
View File
@@ -30,5 +30,12 @@ export * from './filters';
export { entityRouteParams, entityRouteRef } from './routes';
export * from './testUtils';
export * from './types';
export * from './utils';
export * from './overridableComponents';
export {
getEntityMetadataEditUrl,
getEntityMetadataViewUrl,
getEntityRelations,
getEntitySourceLocation,
isOwnerOf,
} from './utils';
export type { EntitySourceLocation } from './utils';
@@ -17,10 +17,6 @@
import { Entity } from '@backstage/catalog-model';
import { EntityFilter } from '../types';
/**
* @public
* @deprecated will be made private.
*/
export function reduceCatalogFilters(
filters: EntityFilter[],
): Record<string, string | symbol | (string | symbol)[]> {
@@ -32,10 +28,6 @@ export function reduceCatalogFilters(
}, {} as Record<string, string | symbol | (string | symbol)[]>);
}
/**
* @public
* @deprecated will be made private.
*/
export function reduceEntityFilters(
filters: EntityFilter[],
): (entity: Entity) => boolean {