frontend-plugin-api: remove deprecated createSchemaFromZod

The helper is no longer used internally and has been replaced by
the `configSchema` option with direct Standard Schema values.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-04-10 11:18:03 +02:00
parent 1e6d2e91ad
commit 2d89e198bd
8 changed files with 14 additions and 131 deletions
@@ -1,5 +1,5 @@
---
'@backstage/frontend-plugin-api': patch
'@backstage/frontend-plugin-api': minor
---
Refactored the internal `createSchemaFromZod` helper to use a schema-first generic pattern, replacing the `ZodSchema<TOutput, ZodTypeDef, TInput>` constraint with `TSchema extends ZodType`. This avoids "excessively deep" type inference errors when multiple Zod copies are resolved.
**BREAKING**: Removed the deprecated `createSchemaFromZod` helper. Use the `configSchema` option with Standard Schema values instead, for example `configSchema: { title: z.string() }` using zod v3.25+ or v4.