Merge pull request #10162 from backstage/jhaals/remove-EntityName

catalog-model: Remove EntityName & getEntityName
This commit is contained in:
Johan Haals
2022-03-14 11:27:01 +01:00
committed by GitHub
6 changed files with 8 additions and 27 deletions
+7
View File
@@ -0,0 +1,7 @@
---
'@backstage/catalog-model': minor
---
**BREAKING**: Removed `EntityName`, use `CompoundEntityRef` type instead.
**BREAKING**: Removed `getEntityName`, use `getCompoundEntityRef` instead.
-6
View File
@@ -175,9 +175,6 @@ export type EntityMeta = JsonObject & {
links?: EntityLink[];
};
// @public @deprecated
export type EntityName = CompoundEntityRef;
// @public
export const EntityPolicies: {
allOf(policies: EntityPolicy[]): EntityPolicy;
@@ -226,9 +223,6 @@ export class FieldFormatEntityPolicy implements EntityPolicy {
// @public
export function getCompoundEntityRef(entity: Entity): CompoundEntityRef;
// @public @deprecated
export const getEntityName: typeof getCompoundEntityRef;
// @public
export function getEntitySourceLocation(entity: Entity): {
type: string;
@@ -35,7 +35,6 @@ export type {
export * from './policies';
export {
getCompoundEntityRef,
getEntityName,
parseEntityRef,
stringifyEntityRef,
} from './ref';
-11
View File
@@ -44,17 +44,6 @@ function parseRefString(ref: string): {
return { kind, namespace, name };
}
/**
* Extracts the kind, namespace and name that form the compound entity ref
* triplet of the given entity.
*
* @public
* @deprecated Use getCompoundEntityRef instead
* @param entity - An entity
* @returns The compound entity ref
*/
export const getEntityName = getCompoundEntityRef;
/**
* Extracts the kind, namespace and name that form the compound entity ref
* triplet of the given entity.
+1 -1
View File
@@ -24,5 +24,5 @@ export * from './entity';
export { EntityPolicies } from './EntityPolicies';
export * from './kinds';
export * from './location';
export type { EntityName, CompoundEntityRef } from './types';
export type { CompoundEntityRef } from './types';
export * from './validation';
-8
View File
@@ -25,11 +25,3 @@ export type CompoundEntityRef = {
namespace: string;
name: string;
};
/**
* A complete entity name, with the full kind-namespace-name triplet.
*
* @deprecated Use CompoundEntityRef instead
* @public
*/
export type EntityName = CompoundEntityRef;