Merge pull request #10165 from backstage/rugvip/humanize
catalog-react: remove deprecated formatEntityRefTitle
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-catalog-react': minor
|
||||
---
|
||||
|
||||
**BREAKING**: Removed the deprecated `formatEntityRefTitle`, use `humanizeEntityRef` instead.
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user