Skip to content

8.23.1

Choose a tag to compare

@github-actions github-actions released this 11 May 15:21
· 180 commits to main since this release
25f5e1e

@comet/cms-admin@8.23.1

Patch Changes

  • 662eb98: Fix FileField breaking image block selection

    The DamFileFieldFile fragment lost the image dimensions (width, height, cropArea) needed by DamImageBlock/PixelImageBlock. Selecting an image inside an image block crashed because those fields were missing. Restored them on the fragment.

    Composing the fragment into a parent collection (e.g. a many-to-many to DamFile) exposed a Mikro-ORM gotcha: Collection.loadItems() does not honor eager: true, so each loaded DamFile had an uninitialized image Reference and GraphQL threw Cannot return null for non-nullable field DamFileImage.width. Added an image @ResolveField on FilesResolver that initializes the Reference if needed, so consumers don't have to remember to populate it.

@comet/api-generator@8.23.1

Patch Changes

  • 56a5883: Fix missing import for nested ManyToOne resolver target entities

    @comet/api-generator now imports nested ManyToOne target entities in generated resolvers so generated code compiles without unresolved symbol errors.

@comet/cms-api@8.23.1

Patch Changes

  • 662eb98: Fix FileField breaking image block selection

    The DamFileFieldFile fragment lost the image dimensions (width, height, cropArea) needed by DamImageBlock/PixelImageBlock. Selecting an image inside an image block crashed because those fields were missing. Restored them on the fragment.

    Composing the fragment into a parent collection (e.g. a many-to-many to DamFile) exposed a Mikro-ORM gotcha: Collection.loadItems() does not honor eager: true, so each loaded DamFile had an uninitialized image Reference and GraphQL threw Cannot return null for non-nullable field DamFileImage.width. Added an image @ResolveField on FilesResolver that initializes the Reference if needed, so consumers don't have to remember to populate it.