Download Latest Version v1.22.0 (2026-07-02) source code.zip (256.7 kB)
Email in envelope

Get an email when there's a new version of Sente

Home / v1.22.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-07-02 1.8 kB
v1.22.0 (2026-07-02) source code.tar.gz 2026-07-02 232.3 kB
v1.22.0 (2026-07-02) source code.zip 2026-07-02 256.7 kB
Totals: 3 Items   490.8 kB 0

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.22.0-RC1 (2026-06-17)

No behavioural changes (same as RC1), only docs/dependency maintenance.

  • [doc] Update README [9807bbae]
  • [nop] Bump deps [d314148b]

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]
Source: README.md, updated 2026-07-02