Changelog
tilttek/table-presencePas encore traduite
Cette page n'est pas encore traduite en français ; elle est présentée en anglais.
All notable changes to tilttek/table-presence will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
0.1.0-alpha - 2026-11-29
Added
Table,Member,ConnectionandPresencePolicy: a table of 1 to 40 members in order, each with a role — game master, assistant, player or observer —, who sees them, what they say of themselves and when they expect to be back from a break, up to 16 connections with their last heartbeat, their last contact and whether the table heard they arrived; a heartbeat timeout of 5 to 600 seconds, a grace delay of 0 to 600 seconds and 1 to 16 connections a member keeps, bounded and checked.Presence: a table opened with its members and its status, read from a PSR-20 clock; it keeps no state between calls.Presence::admit()andremove(): a member admitted last, or removed with their presence, never the last one.Presence::connect()anddisconnect(): a connection counted live at each heartbeat, the one seen the longest ago dropped past the most connections, the member counted once across tabs and told arrived once per stay, kept through the grace delay after their last connection closes.Presence::sweep(): the connections past their timeout dropped and the members whose grace delay is over told gone, here again at their next stay; a sweep where nothing is over keeps nothing.Presence::setAvailability(): here, away, or on a break with 1 to 240 minutes until the expected return, chosen by the member.Presence::setVisibility()andContract\BlockList: a member shown to the table, to the game master and assistants, or to nobody, and offline to whoever they blocked, never shown as hidden.Presence::setStatus(): the table gathering, playing, paused or on a break, with a label of up to 80 characters without control or format characters.Presence::forget()andclose(): a member's presence erased, their role and visibility kept, and the table closed with every presence erased, changing no more.Presence::view(),View\PresenceViewandView\MemberPresence: each member's state as one member of the table may see it, the seconds until a return from a break, the viewer's own live connections, the members present, never the moment of a last connection;Presence::online()for the server's own rules.- The events
TableOpened,MemberAdmitted,MemberArrived,MemberLeft,AvailabilityChanged,VisibilityChanged,PresenceForgotten,MemberRemoved,TableStatusChangedandTableClosed, by identifiers only, told once to aContract\PresenceObserver. Contract\PresenceStore, kept at a version, andStore\InMemoryPresenceStorefor tests.- The exceptions
InvalidPresence,PresenceRefused,PresenceNotFoundandPresenceConflict, underPresenceException. - A benchmark of the view and the sweep of a full table, and of 1 000 heartbeats.
- The documentation in
doc/, one file per topic, indexed by the README. CONTRIBUTING.md,SECURITY.mdandCODE_OF_CONDUCT.md.