Merge pull request #10165 from backstage/rugvip/humanize

catalog-react: remove deprecated formatEntityRefTitle
This commit is contained in:
Patrik Oldsberg
2022-03-14 12:09:46 +01:00
committed by GitHub
5 changed files with 7 additions and 8 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-react': minor
---
**BREAKING**: Removed the deprecated `formatEntityRefTitle`, use `humanizeEntityRef` instead.
-3
View File
@@ -401,9 +401,6 @@ export const favoriteEntityTooltip: (
isStarred: boolean,
) => 'Remove from favorites' | 'Add to favorites';
// @public @deprecated (undocumented)
export const formatEntityRefTitle: typeof humanizeEntityRef;
// @public @deprecated (undocumented)
export function getEntityMetadataEditUrl(entity: Entity): string | undefined;
@@ -16,7 +16,7 @@
import { humanizeEntityRef } from './humanize';
describe('formatEntityRefTitle', () => {
describe('humanizeEntityRef', () => {
it('formats entity in default namespace', () => {
const entity = {
apiVersion: 'v1',
@@ -20,9 +20,6 @@ import {
DEFAULT_NAMESPACE,
} from '@backstage/catalog-model';
/** @public @deprecated please use {@link humanizeEntityRef} instead */
export const formatEntityRefTitle = humanizeEntityRef;
/** @public */
export function humanizeEntityRef(
entityRef: Entity | CompoundEntityRef,
@@ -18,4 +18,4 @@ export { EntityRefLink } from './EntityRefLink';
export type { EntityRefLinkProps } from './EntityRefLink';
export { EntityRefLinks } from './EntityRefLinks';
export type { EntityRefLinksProps } from './EntityRefLinks';
export { humanizeEntityRef, formatEntityRefTitle } from './humanize';
export { humanizeEntityRef } from './humanize';