unstale

npm / @supabase/realtime-js

@supabase/realtime-js

What changed in @supabase/realtime-js 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

5 breaking8 new APIs and options1 behavior and defaults36 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@supabase/realtime-js 250 changes

Breaking changes 5

New APIs and options 8

  • Broadcast persistence is added.

    2.119.0release notes

  • Adds the ability to wait for Postgres changes.

    2.113.0release notes

  • Adds a filter builder for postgres_changes, with new operators and select support.

    2.109.0release notes

  • Adds an option for a replication connection system message.

    2.109.0release notes

  • Adds copyBindings functionality.

    2.101.0release notes

  • Heartbeat latency is exposed on the heartbeat callback.

    2.90.0release notes

  • Adds metadata to realtime user broadcast push.

    2.85.0release notes

  • Realtime adds an explicit REST call.

    2.76.0release notes

Behavior and default changes 1

Fixes and other changes 36

  • The unsupported serializer error now includes vsn.

    2.119.0release notes

  • The send() REST fallback warning now respects the custom logger.

    2.112.4release notes

  • Prevents duplicate on bindings.

    2.112.2release notes

  • Clears stale join payload on sign-out.

    2.112.2release notes

  • Calling setAuth no longer disables token refresh.

    2.112.1release notes

  • Presence refs are now preserved.

    2.110.9release notes

  • Updated Phoenix to fix a presence issue in Realtime.

    2.110.7release notes

  • track() now forwards opts to send(), so those options are applied when sending.

    2.110.6release notes

  • Broadcast header fields are now encoded as UTF-8.

    2.110.4release notes

  • Suppresses disconnected status from onHeartbeat consumers.

    2.110.1release notes

  • Clarifies the 404 error and server migration note for httpSend().

    2.108.2release notes

  • Guards sessionStorage access in restricted-storage browsers.

    2.105.4release notes

  • Enum-like unions are widened with (string & {}) for forward compatibility, allowing string values beyond the listed union members.

    2.105.2release notes

  • Transport-level CHANNEL_ERROR now surfaces a real Error.

    2.105.1release notes

  • Realtime throws Error objects instead of bare strings.

    2.103.3release notes

  • Reverted the type of vsn to string.

    2.100.0release notes

  • Channel join payloads are patched with the resolved access token before the send buffer is flushed.

    2.98.0release notes

  • Removes an unnecessary check in removeChannel.

    2.96.0release notes

  • Fixed removeChannel when unsubscribe succeeds.

    2.95.0release notesrelease notes

  • Reverts table-filter validation in postgres_changes event dispatch.

    2.93.1release notes

  • Sends a heartbeat when the initial connection encounters an error.

    2.93.0release notes

  • Adds a generic overload for the postgres_changes event type.

    2.93.0release notes

  • Validates the table filter during postgres_changes event dispatch.

    2.90.1release notes

  • Avoids edge runtime warnings in next.js.

    2.90.0release notes

  • The authorization header is omitted when no access token exists.

    2.88.0release notes

  • Handles a websocket race condition in Node.js.

    2.88.0release notes

  • Web workers are terminated on disconnect to prevent a memory leak.

    2.87.2release notes

  • Preserves custom JWT tokens across channel resubscribe.

    2.87.1release notes

  • Handles null values when comparing postgres changes filters.

    2.87.1release notes

  • Message encoding now accounts for null refs.

    2.82.0release notes

  • Calling setAuth is no longer required when using a custom JWT token.

    2.81.1release notes

  • Implements the V2 serializer.

    2.81.0release notes

  • Ensures WebSocket connections are properly closed during teardown.

    2.81.0release notes

  • Added the missing tslib dependency to core packages.

    2.76.1release notes

  • The RealtimeChannel type was enhanced.

    2.76.0release notes

  • URL manipulation now uses a URL object.

    2.76.0release notes