Changelog

All notable changes to tauri-plugin-centrifugo and tauri-plugin-centrifugo-api.

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

0.2.3 - 2026-11-18

Changed

  • TLS uses ring instead of the SDK's default aws-lc-rs: centrifuge-client is pulled with default-features = false plus json, serde, http-stream, delta, system-proxy and ring. Apps no longer get a second TLS engine (and the C/cmake build of aws-lc-sys) next to the ring that Tauri apps already use.

Fixed

  • Events could reach the frontend out of order, e.g. a channel's subscribed before the client's connected: client and subscription events were read from separate streams by separate tasks. They now go through the SDK handlers, which run one at a time in the SDK's order. The scenario model checks that connected comes before subscribed.
  • Android: the webpki-roots TLS config names the ring provider explicitly; rustls::ClientConfig::builder() could panic at connect when the app enabled both rustls providers.

0.2.2 - 2026-11-13

Fixed

  • connect with a channel listed twice (channels: ["a", "a"]) failed with duplicate subscription and left no client; the channel is now subscribed once.
  • connect with an invalid config (e.g. a bad header) closed the current connection before failing; it now fails and keeps the current connection.

Changed

  • subRefresh with track/untrack fields fails with Not supported even when not connected (it was NotConnected first), like map publish.

Added

  • Mutation testing with cargo-mutants (.cargo/mutants.toml, run locally).
  • Scenario tests (tests/, replacing the per-function tests): proptest command sequences over IPC checked against a model after every step, offline and with two apps against a real Centrifugo (replies, events, history, presence), plus stories for tokens, server-side subscriptions (server_* via the server API) and transport failures.

0.2.1 - 2026-11-09

Fixed

  • centrifugo:default now includes allow-provide-token, allow-add-subscription-with-options and allow-remove-all-subscriptions; with only the default set, provideToken (the token bridge), addSubscriptionWithOptions and removeAllSubscriptions were denied.
  • Event listeners (onConnected, onPublication, ...) get the whole Tauri event again ({ event, payload, id }, as typed and as in 0.1.x). 0.2.0 passed only the payload, so onMessage, onChannelMessage, onAnyMessage, onPublicationRawJson, onServerPublicationRawJson and helpers.subscribeToChannel(s) threw on every publication. Code written for 0.2.0 that reads e.channel must read e.payload.channel.

Removed

  • Stale allow-/deny-start-connection and allow-/deny-stop-connection permissions (no such commands).

Added

0.2.0 - 2026-11-08

Changed

  • Breaking: the client is now the official Rust SDK centrifuge-client instead of the internal engine. Its modules (client, config, protocol, ...) are no longer re-exported; the SDK is available as tauri_plugin_centrifugo::centrifuge.
  • The connection token callback (need_token) is installed only when token is set or requestToken: true; anonymous connections no longer wait for the frontend.
  • refresh answers a pending need_token (else sets the token for the next connect); subRefresh answers need_sub_token. The SDK refreshes tokens itself before they expire.
  • subscribed event carries wasRecovering, recovered, streamPosition; connecting/disconnected carry code/reason.
  • guest-js is built with Vite 8 and TypeScript 6; dual ESM/CJS types; checked with publint and attw.

Added

  • StartConfig.httpStreamUrl (HTTP-streaming fallback), headers, requestToken.
  • SubscribeOptions.delta (fossil) and since (resume from a saved position).
  • need_sub_token, join, leave events; onNeedSubToken helper.
  • Android: wss:// works out of the box (Mozilla roots via webpki-roots).
  • End-to-end tests against a real Centrifugo, CI on Linux, macOS and Windows, Android build check.

Deprecated

  • ping (resolves when connected; the SDK pings by itself).
  • Map publish fields (type/key/removed) and track/untrack sub refresh fields: rejected with Not supported.

Fixed

  • A newer token request no longer makes the previous one fail as unauthorized (which disconnected the client for good).
  • Example app: endless log loop (attachConsole + console forwarding) that froze the UI on Android; autocorrect on inputs.

0.1.x

Added

  • Initial release of Tauri Plugin Centrifugo
  • Real-time communication with Centrifugo server
  • WebSocket support with JSON and Protobuf protocols
  • Channel subscription management
  • JWT authentication support
  • Event-driven architecture for connection state and messages
  • Cross-platform support (desktop and mobile)
  • TypeScript/JavaScript API bindings
  • Example Svelte application

Changed

  • N/A

Deprecated

  • N/A

Removed

  • N/A

Fixed

  • N/A

Security

  • N/A