Sealious changelog

v0.19.15

ReverseSingleReference and DeepReverseSingleReference now support formatting the referenced collection fields.

For example, for a collection configuration like this:

dogs: new (class extends Collection {
	fields = {
		name: new FieldTypes.Text(),
		photos: new FieldTypes.ReverseSingleReference({
			referencing_collection: "dog_photos",
			referencing_field: "dog",
		}),
	};
})(),
dog_photos: new (class extends Collection {
	fields = {
		dog: new FieldTypes.SingleReference("dogs"),
		photo: new FieldTypes.Image(),
	};
})(),

You can now run

await app.collections.dogs
   .suList()
   .ids([leon.id])
   .format({ photos: { photo: "url" } })
   .attach({ photos: true })
   .fetch()

To influence the format of the photo fields in the referencing collection in the query’s output

v0.19.16

The uploaded files endpoint now responds with a proper content-type header.

Before that, when you visited a URL for a file uploaded to a File collection field, it always responded with an application/octet-stream content type. Now it bases the mimetype in that header on the extension of the uploaded file.

v0.19.17

Fix StructuredArray reported wrong type on .get

v0.19.18

CollectionItem now exposes the parent_list attribute, which opens up another access to attachments for that list

Add more type information to the .serialize method in CollectionItem