main #2

Merged
ferociousbyte merged 4 commits from main into stable 2026-11-11 21:48:31 +00:00
No description provided.
A collection can carry labels: free key-value pairs the server stores and returns and never reads, as
annotations in Kubernetes. A model declares them with UniCollection(Labels = ["key=value"]); they go with the
create, the schema sync makes the collection's the same, and SetCollectionLabelsAsync replaces them.
CollectionLabels in unilayer.Models has the rules both sides check.

CreateWithIdAsync and BulkCreateWithIdsAsync send the entity's id as unilayer_id, for a create that can be
repeated, ids made offline or an import that keeps its ids. CreateAsync sends none, as before.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Writes held to an item's version, and transactions
All checks were successful
/ build-and-pack (push) Successful in 50s
842860cae2
An entity can carry its item's version ([UniSystemField("version")]). UpdateIfUnchangedAsync and
DeleteIfUnchangedAsync write only if the item is still at it; the server refuses with 412 otherwise.
client.Transaction() collects creates, updates, deletes and checks on items of any collections and commits
them as one: all are applied, or none. ItemVersion and the transaction's request and response are in
unilayer.Models.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Volatile collections
All checks were successful
/ build-and-pack (push) Successful in 59s
eb53cadf07
UniCollection(Volatile = true, GroupField = ..., TtlSeconds = ...) makes a collection whose items the server
keeps in memory for a time: free objects, not in the database. PutVolatileAsync writes one under the
entity's id whether or not it is there, GetVolatileGroupAsync lists those of a group; the schema sync of
such a model has no fields to bring up to date. The collection's type, group field and time to live, and
an item's expiresAt, are in unilayer.Models.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
README: the new members of IUnilayerClient under the breaking changes
All checks were successful
/ build-and-pack (push) Successful in 36s
4f98860451
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
unilayer/client!2
No description provided.