@portabletext/sanity-bridge@2.0.1
·
45 commits
to main
since this release
Patch Changes
-
#2198
5f1b1fbThanks @christianhg! - fix: deduplicate shared block/inline object names in schema compilationWhen a type name appears in both
blockObjectsandinlineObjectsof aSchemaDefinition,compileSchemaDefinitionToPortableTextMemberSchemaTypeswould pass duplicate type names toSanitySchema.compile(), causing a "Duplicate type name added to schema" error. This generalizes the existing temporary-name pattern (previously only handlingimageandurl) to dynamically detect and rename any shared names before compilation, then map them back afterward.