Under the hood
Poll events now validate their 'kind' field format, cap size per kind, and can carry media
What
Internal poll events (used for delivering updates) now have stricter validation on their kind field:
kindmust match a pattern of a lowercase letter followed by lowercase letters, digits, or hyphens, up to 64 characters, and events that don't match are rejected with a new error message- the maximum envelope size is now looked up per
kindinstead of using one fixed limit for all events - the error message shown when a reserved kind is used has changed wording, now referring to a "trusted in-process producer" instead of a "server-authored producer"
- poll events can now optionally carry a
mediafield
Why
The stricter format check and per-kind size limits make poll event handling more precise and harder to misuse, and the new media field lays groundwork for events to carry attachments.