Repository navigation
OnlyWorlds Unity SDK 0.61.0
A game can poll the proposals queue cheaply: an unchanged queue answers without its rows. And the wrong-kind refusal
names a NaN or an infinity by its own name. Parity with the TypeScript SDK 4.221.0 and 4.220.2. A minor release
because it adds public API (below).
Added
- A poll of the proposals lists costs little when nothing moved.
ListProposalsAsyncandWorldProposalsAsync
now answer anOWProposalPage, the page they answered (OWPage<OWProposal>) with two members:Etag, keel's ETag
exactly as sent (or null), andUnchanged, false on every 200. Pass the tag back asOWProposalQuery.IfNoneMatch
and, while nothing in the list moved, keel answers 304 with no body, refunded against the request budget, and the
call answersUnchangedtrue with no rows:Datais null,HasMorefalse andNextCursornull, so a caller
who skipsUnchangedfails at its first read of the rows, never shows an empty queue (the TypeScript SDK's 304
answer carries no rows either). keel's tag covers the key's whole visible list whateverState,Since,Element
orCursorasks; a new proposal or mark, a settled one or a lapse moves it. The caller holds the tag; the client
keeps none, unlike the tip read. An emptyIfNoneMatchis anArgumentExceptionbefore anything is sent, and a 304
to a read that sent no tag is anOWApiError(status 304). A caller that namesTask<OWPage<OWProposal>>itself
namesTask<OWProposalPage>now;varandOWPage<OWProposal>callers compile as before. Parity with the
TypeScript SDK 4.221.0, its test vectors ported.
Fixed
- The wrong-kind refusal names a number that is not finite by its own name. A NaN or an infinity in an integer or
a text field was namednull, as JSON writes it, which read as ifnullhad been sent:create: character.height is an integer field; null would be stored as another value.It now saysNaN would be stored, andInfinityor
-Infinityfor the infinities. Parity with the TypeScript SDK 4.220.2, its test vector ported.