Skip to content

v1.22.0-RC1 (2026-06-17)

Pre-release
Pre-release

Choose a tag to compare

@ptaoussanis ptaoussanis released this 17 Jun 07:56
· 1 commit to master since this release

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 🙏

- Peter Taoussanis

Since v1.21.0 (2025-11-04)

New

  • [new] Server: add :reject-fn to make-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. Default nil => 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-fn in favour of the more general :reject-fn. Existing options all continue to work exactly as before [2c55ea2]