Skip to content

@portabletext/sanity-bridge@2.0.1

Choose a tag to compare

@ecoscript ecoscript released this 18 Feb 10:19
· 45 commits to main since this release

Patch Changes

  • #2198 5f1b1fb Thanks @christianhg! - fix: deduplicate shared block/inline object names in schema compilation

    When a type name appears in both blockObjects and inlineObjects of a SchemaDefinition, compileSchemaDefinitionToPortableTextMemberSchemaTypes would pass duplicate type names to SanitySchema.compile(), causing a "Duplicate type name added to schema" error. This generalizes the existing temporary-name pattern (previously only handling image and url) to dynamically detect and rename any shared names before compilation, then map them back afterward.