v1.22.0-RC1 (2026-06-17)
Pre-release
Pre-release
- Dependency: on Clojars
- Versioning: Break Versioning
Sente v1.22 adds a flexible new connection rejection hook (:reject-fn) plus small Msgpack fixes. Should be a safe upgrade for most users (no breaking changes). Please report any problems to the Slack channel or GitHub 🙏
Since v1.21.0 (2025-11-04)
New
- [new] Server: add
:reject-fntomake-channel-socket-server!- a single, general hook to reject connection requests for any reason (custom CSRF, origin, authorization, rate limiting, IP allow/deny, ...), with full control over the rejection response. Defaultnil=> no change. See CSRF & origin protection [2c55ea2] - [new] Expose new public
valid-csrf-token?helper (Sente's built-in token check), to help compose a custom:reject-fn[2c55ea2] - [new] Promote
allow-origin?from Alpha to a supported public helper (also usable as an origin-based CSRF defense) [2c55ea2]
Changes (please check!)
- [mod] Msgpack: now throws a clear exception (instead of risking a StackOverflow) when asked to pack an unsupported type [ec4cfdc] [ae11490]
Deprecated
- [dep] Server: deprecate
:?unauthorized-fnin favour of the more general:reject-fn. Existing options all continue to work exactly as before [2c55ea2]