changesets

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-02-23 12:01:13 +01:00
parent ff3c04041f
commit 67a7c02d26
3 changed files with 58 additions and 7 deletions
+12
View File
@@ -0,0 +1,12 @@
---
'@backstage/plugin-bazaar': patch
'@backstage/plugin-code-coverage-backend': patch
'@backstage/plugin-jenkins': patch
'@backstage/plugin-jenkins-backend': patch
'@backstage/plugin-scaffolder': patch
'@backstage/plugin-scaffolder-backend': patch
'@backstage/plugin-tech-insights-backend': patch
'@backstage/plugin-todo-backend': patch
---
Remove usages of `EntityRef` and `parseEntityName` from `@backstage/catalog-model`
+8
View File
@@ -0,0 +1,8 @@
---
'@backstage/catalog-model': patch
---
**DEPRECATED**: The `EntityRef` type and `parseEntityName` function are now
deprecated, and will soon be removed. This is part of a larger movement toward
fixing the poorly named `EntityName` type which should instead have been named
`EntityRef`. Please remove any usage of these as soon as possible.
+38 -7
View File
@@ -69,7 +69,14 @@ export class CommonValidatorFunctions {
// @public @deprecated
export function compareEntityToRef(
entity: Entity,
ref: EntityRef | EntityName,
ref:
| string
| {
kind?: string;
namespace?: string;
name: string;
}
| EntityName,
context?: {
defaultKind?: string;
defaultNamespace?: string;
@@ -212,7 +219,7 @@ export type EntityPolicy = {
enforce(entity: Entity): Promise<Entity | undefined>;
};
// @public
// @public @deprecated
export type EntityRef =
| string
| {
@@ -384,9 +391,15 @@ export class NoForeignRootFieldsEntityPolicy implements EntityPolicy {
export const ORIGIN_LOCATION_ANNOTATION =
'backstage.io/managed-by-origin-location';
// @public
// @public @deprecated
export function parseEntityName(
ref: EntityRef,
ref:
| string
| {
kind?: string;
namespace?: string;
name: string;
},
context?: {
defaultKind?: string;
defaultNamespace?: string;
@@ -395,7 +408,13 @@ export function parseEntityName(
// @public
export function parseEntityRef(
ref: EntityRef,
ref:
| string
| {
kind?: string;
namespace?: string;
name: string;
},
context?: {
defaultKind: string;
defaultNamespace: string;
@@ -404,7 +423,13 @@ export function parseEntityRef(
// @public
export function parseEntityRef(
ref: EntityRef,
ref:
| string
| {
kind?: string;
namespace?: string;
name: string;
},
context?: {
defaultKind: string;
},
@@ -416,7 +441,13 @@ export function parseEntityRef(
// @public
export function parseEntityRef(
ref: EntityRef,
ref:
| string
| {
kind?: string;
namespace?: string;
name: string;
},
context?: {
defaultNamespace: string;
},