Skip to content

Commit

Permalink
catalog-react: remove deprecated formatEntityRefTitle
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
  • Loading branch information
Rugvip committed Mar 14, 2022
1 parent 09a711d commit 0f3520d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/tricky-months-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-react': minor
---

**BREAKING**: Removed the deprecated `formatEntityRefTitle`, use `humanizeEntityRef` instead.
3 changes: 0 additions & 3 deletions plugins/catalog-react/api-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import { humanizeEntityRef } from './humanize';

describe('formatEntityRefTitle', () => {
describe('humanizeEntityRef', () => {
it('formats entity in default namespace', () => {
const entity = {
apiVersion: 'v1',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

0 comments on commit 0f3520d

Please sign in to comment.