From 79ff318518479ed193d50f37fddfbfe65070ac4a Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Thu, 11 Sep 2025 00:53:22 +0200 Subject: [PATCH] catalog-react: removed entity card type deprecation warning Signed-off-by: Patrik Oldsberg --- .changeset/tough-cars-cry.md | 5 +++++ .../src/alpha/blueprints/EntityCardBlueprint.ts | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 .changeset/tough-cars-cry.md diff --git a/.changeset/tough-cars-cry.md b/.changeset/tough-cars-cry.md new file mode 100644 index 0000000000..9235553da7 --- /dev/null +++ b/.changeset/tough-cars-cry.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog-react': patch +--- + +Removed the deprecation warning when not passing an explicit type to `EntityCardBlueprint`. Omitting the type is now intended, allowing the layout to pick the default type instead, typically `content`. diff --git a/plugins/catalog-react/src/alpha/blueprints/EntityCardBlueprint.ts b/plugins/catalog-react/src/alpha/blueprints/EntityCardBlueprint.ts index b2f64c19e6..fed6ced70f 100644 --- a/plugins/catalog-react/src/alpha/blueprints/EntityCardBlueprint.ts +++ b/plugins/catalog-react/src/alpha/blueprints/EntityCardBlueprint.ts @@ -75,11 +75,6 @@ export const EntityCardBlueprint = createExtensionBlueprint({ const finalType = config.type ?? type; if (finalType) { yield entityCardTypeDataRef(finalType); - } else { - // eslint-disable-next-line no-console - console.warn( - `DEPRECATION WARNING: Not providing type for entity cards is deprecated. Missing from '${node.spec.id}'`, - ); } }, });