Skip to content

@onlyworlds/sdk 4.221.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 04:51
· 34 commits to main since this release

Added

  • A poll of the proposals lists costs little when nothing moved. listProposals and worldProposals take ifNoneMatch, and every 200 now carries etag (keel's ETag exactly as sent, or null) and unchanged: false. Pass the tag back and, while nothing in the list moved, keel answers 304 with no body, refunded against the request budget, and the call returns { unchanged: true, etag } with no rows. keel's tag covers the key's whole visible list whatever state, since, element or cursor asks, so one tag serves every query on it; a new proposal or mark, a settled one or a lapse moves it (measured on the practice world: a proposal made moved the queue's tag, and withdrawn moved it back). The caller holds the tag; the client keeps none, unlike changesHead. An ifNoneMatch that is not a non-empty string is a TypeError before anything is sent, and a 304 to a read that sent no tag is an OwApiError. The types: a call that can send a tag answers (OwProposalList & OwListTagged) | OwListUnchanged (narrow on unchanged before reading data); one that cannot keeps its rows. New: OwListTagged, OwListUnchanged.