diff --git a/.changeset/orange-cups-smoke.md b/.changeset/orange-cups-smoke.md new file mode 100644 index 0000000000..2876c9c396 --- /dev/null +++ b/.changeset/orange-cups-smoke.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog-react': patch +--- + +Deprecated `reduceCatalogFilters` and `reduceEntityFilters` as these helper functions are used internally and provides low external value. diff --git a/plugins/catalog-react/src/utils/filters.ts b/plugins/catalog-react/src/utils/filters.ts index d64a821df7..68cd94fd6e 100644 --- a/plugins/catalog-react/src/utils/filters.ts +++ b/plugins/catalog-react/src/utils/filters.ts @@ -17,7 +17,10 @@ import { Entity } from '@backstage/catalog-model'; import { EntityFilter } from '../types'; -/** @public */ +/** + * @public + * @deprecated will be made private. + */ export function reduceCatalogFilters( filters: EntityFilter[], ): Record { @@ -29,7 +32,10 @@ export function reduceCatalogFilters( }, {} as Record); } -/** @public */ +/** + * @public + * @deprecated will be made private. + */ export function reduceEntityFilters( filters: EntityFilter[], ): (entity: Entity) => boolean {