# What changed in @supabase/realtime-js

> 50 changes in @supabase/realtime-js 2 from its official release notes, upgrade guides and advisories: 5 breaking, 8 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/@supabase/realtime-js/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @supabase/realtime-js 2

### Breaking changes

- Node.js 20 is no longer supported. (2.110.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#21100-2026-06-30)
- Realtime disconnects are deferred. (2.105.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#21050-2026-04-27)
- Setting a postgres_changes event listener is blocked after joining. (2.101.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#21010-2026-03-30)
- The default serializer is now 2.0.0. (2.91.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2910-2026-01-20)
- Node.js 20 or later is required to use this release. (2.79.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2790-2025-11-04)

### New APIs and options

- Broadcast persistence is added. (2.119.0) — [release notes](https://github.com/supabase/supabase-js/blob/2d242751523a8181f876ae41ecda690d017a3ee2/packages/core/realtime-js/CHANGELOG.md#21190-2026-11-04)
- Adds the ability to wait for Postgres changes. (2.113.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#21130-2026-09-02)
- Adds a filter builder for postgres_changes, with new operators and select support. (2.109.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#21090-2026-06-30)
- Adds an option for a replication connection system message. (2.109.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#21090-2026-06-30)
- Adds copyBindings functionality. (2.101.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#21010-2026-03-30)
- Heartbeat latency is exposed on the heartbeat callback. (2.90.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2900-2026-01-07)
- Adds metadata to realtime user broadcast push. (2.85.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2850-2025-11-26)
- Realtime adds an explicit REST call. (2.76.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2760-2025-10-20)

### Behavior and default changes

- httpSend can now send binary payloads. (2.107.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#21070-2026-06-02)

### Fixes and other changes

- The unsupported serializer error now includes vsn. (2.119.0) — [release notes](https://github.com/supabase/supabase-js/blob/2d242751523a8181f876ae41ecda690d017a3ee2/packages/core/realtime-js/CHANGELOG.md#21190-2026-11-04)
- The send() REST fallback warning now respects the custom logger. (2.112.4) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#21124-2026-08-24)
- Prevents duplicate on bindings. (2.112.2) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#21122-2026-08-06)
- Clears stale join payload on sign-out. (2.112.2) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#21122-2026-08-06)
- Calling setAuth no longer disables token refresh. (2.112.1) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#21121-2026-08-05)
- Presence refs are now preserved. (2.110.9) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#21109-2026-07-27)
- Updated Phoenix to fix a presence issue in Realtime. (2.110.7) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#21107-2026-07-16)
- track() now forwards opts to send(), so those options are applied when sending. (2.110.6) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#21106-2026-07-15)
- Broadcast header fields are now encoded as UTF-8. (2.110.4) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#21104-2026-07-14)
- Suppresses disconnected status from onHeartbeat consumers. (2.110.1) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#21101-2026-07-07)
- Clarifies the 404 error and server migration note for httpSend(). (2.108.2) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#21082-2026-06-15)
- Guards sessionStorage access in restricted-storage browsers. (2.105.4) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#21054-2026-05-08)
- Enum-like unions are widened with (string & {}) for forward compatibility, allowing string values beyond the listed union members. (2.105.2) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#21052-2026-05-04)
- Transport-level CHANNEL_ERROR now surfaces a real Error. (2.105.1) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#21051-2026-04-28)
- Realtime throws Error objects instead of bare strings. (2.103.3) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#21033-2026-04-16)
- Reverted the type of vsn to string. (2.100.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#21000-2026-03-23)
- Channel join payloads are patched with the resolved access token before the send buffer is flushed. (2.98.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2980-2026-02-26)
- Removes an unnecessary check in removeChannel. (2.96.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2960-2026-02-17)
- Fixed removeChannel when unsubscribe succeeds. (2.95.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2953-2026-02-06), [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2950-2026-02-05)
- Reverts table-filter validation in postgres_changes event dispatch. (2.93.1) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2931-2026-01-26)
- Sends a heartbeat when the initial connection encounters an error. (2.93.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2930-2026-01-26)
- Adds a generic overload for the postgres_changes event type. (2.93.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2930-2026-01-26)
- Validates the table filter during postgres_changes event dispatch. (2.90.1) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2901-2026-01-08)
- Avoids edge runtime warnings in next.js. (2.90.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2900-2026-01-07)
- The authorization header is omitted when no access token exists. (2.88.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2880-2025-12-16)
- Handles a websocket race condition in Node.js. (2.88.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2880-2025-12-16)
- Web workers are terminated on disconnect to prevent a memory leak. (2.87.2) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2872-2025-12-15)
- Preserves custom JWT tokens across channel resubscribe. (2.87.1) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2871-2025-12-09)
- Handles null values when comparing postgres changes filters. (2.87.1) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2871-2025-12-09)
- Message encoding now accounts for null refs. (2.82.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2820-2025-11-18)
- Calling setAuth is no longer required when using a custom JWT token. (2.81.1) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2811-2025-11-11)
- Implements the V2 serializer. (2.81.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2810-2025-11-10)
- Ensures WebSocket connections are properly closed during teardown. (2.81.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2810-2025-11-10)
- Added the missing tslib dependency to core packages. (2.76.1) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2761-2025-10-21)
- The RealtimeChannel type was enhanced. (2.76.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2760-2025-10-20)
- URL manipulation now uses a URL object. (2.76.0) — [release notes](https://github.com/supabase/supabase-js/blob/e428dfe1a1fcb20ec7c3627e34b6ad5848ff6d23/packages/core/realtime-js/CHANGELOG.md#2760-2025-10-20)
