Every version stays available at its URL, and a published version never changes.
| version | date | |
|---|---|---|
| 1.1.3 | 2026-11-24 | Fixed: a hidden phone page no longer stays “connected” at one of its peers while it is away (an app’s cursor for it stayed); it now repeats its goodbye until it is shown. Same API; same wire version. |
| 1.1.2 | 2026-11-22 | Fixed: a peer on slow links (a distant relay) no longer goes silent for seconds after someone joins; every peer now agrees on the routes. Same API; same wire version. |
| 1.1.1 | 2026-11-22 | Fixed: large reliable transfers through a TURN relay complete (5 MB in about 13 s on jsflow’s relays; before, they stalled), and the peer sending one no longer goes down and up meanwhile. Same API; same wire version. |
| 1.1.0 | 2026-11-21 | room.path(peer) and the path event, JoinError.docs, the unknown error code, and the reconnect and linking fixes listed under 1.1.0-rc.1: the same code (npm install jsflow-sdk). Additions only; same wire version. |
| 1.1.0-rc.1 | 2026-11-20 | The release candidate for 1.1.0 (npm install jsflow-sdk@next). Added: room.path(peer) and the path event (direct, relay, or through other peers), JoinError.docs (a link to the error’s entry), the unknown error code. Fixed: after a service restart members reconnect spread out; a join no longer waits seconds when the member offering it a connection disappears; two peers reaching each other two ways at once keep their new connection. |
| 1.0.0 | 2026-11-19 | The first stable release: the 1.0 API on wire version 2, the same code as 1.0.0-rc.3 (npm install jsflow-sdk). |
| 1.0.0-rc.3 | 2026-11-18 | Fixed: two peers no longer fail to link for 10 seconds or more when one joins through the other while the other is also reaching for it (most likely with a relay configured). Same API. |
| 1.0.0-rc.2 | 2026-11-18 | Fixed: a reliable message (sendReliable) is never delivered twice across a page reload; one the sender cannot confirm is reported undelivered. Same API. |
| 1.0.0-rc.1 | 2026-11-18 | The release candidate for 1.0.0, on wire version 2: signed broadcasts, join tickets, JoinError codes, the evicted and suspended states, region pinning, a 1,052-byte datagram. Published under the npm tag next. Breaking changes from 0.1 are listed below. |
| 0.1.3 | 2026-11-17 | Security: a room member could make a reliable message (sendReliable) appear to come from another peer by broadcasting on the reliable channel; receivers now drop it. Same API. |
| 0.1.2 | 2026-11-01 | Peers that join as a room starts find the rest of the room within a few seconds; some had waited 11–13 s. Same API. |
| 0.1.1 | 2026-10-30 | leave() and closing or reloading the page free the room slot at once; a dropped peer’s slot frees after 15 s; iceTransportPolicy: 'relay'. |
| 0.1.0 | 2026-10-30 | First version. |
Upgrading from 0.1 to 1.0
Section titled “Upgrading from 0.1 to 1.0”Everything here is in jsflow-sdk 1.0.0-rc.2 and applies to 1.0.0 as well. The API in jsflow.d.ts is the contract from 1.0.
- One wire version per room. 1.0 speaks wire version 2 only; 0.1 speaks wire 1. Both work against the service, but a room runs the version of its first joiner, and a peer of the other version is refused with
JoinErrorcodewire. Ship 1.0 to all your clients at once, or give 1.0 rooms new names (for example a-w2suffix;WIREis exported for it) while old pages are still open. MAX_DATAGRAMis 1,052 bytes (it was 1,099).send()andbroadcast()throw aRangeErrorabove it, because every broadcast now carries a signature. If you split data by size, split at 1,052 or a little under; usesendReliable()(up toMAX_RELIABLE, 65,536) for anything larger.join()rejects with aJoinError(it was a plainErrorwhose message held the HTTP status and body). Branch one.code, one of the error codes:unknown_app(was403 app),origin(was403 origin),room_full(was a bare409),rate(was429); new:ticket_required,ticket_invalid,ticket_expired,blocked,quota,wireandsdk_unsupported; raised by the SDK itself withstatus0:unsupported_browserandworker_failed. A network failure still rejects with aTypeError.- Two new states, with events:
evicted(your backend removed this peer; final) andsuspended(your cost cap is reached; links stay up, new joins are refused; it returns toconnectedby itself). An exhaustiveswitchonStateneeds both cases. - Minimum browsers: Chrome and Edge 137, Safari 17, Firefox 130. Every peer seals and signs with Web Crypto X25519 and Ed25519; an older browser gets
unsupported_browserbefore any request (0.1 joined it and ran its links unsealed). - Broadcasts are signed. A forged broadcast is dropped where it arrives, so
fromon a broadcast is the real sender. Broadcasts are still not sealed. - Tickets (optional, recommended). Your backend signs a short-lived ticket with the app’s secret key and the page passes it as
join({ ticket }), a string or a function the SDK calls once for everyjoin()call (a return fromawayand a token refresh keep the peer’s identity and need no ticket). With “Require join tickets” on for the app, a join without one is refused.room.user(peerId)then gives each peer’s user id. - CDN URLs. A version directory holds two files,
jsflow.jsandworker.js(0.1 had a tree of files), andsri.jsonwith the integrity hashes.worker.jsmust stay next tojsflow.js. On npm the package isjsflow-sdk. Your Content-Security-Policy needsconnect-src https://signal.jsflow.com https://*.signal.jsflow.com(see loading the SDK). onMetric(name, value, detail?):valueis now always a number (1 for an event) and the measurement’s data isdetail. Metric names are diagnostic and may change in any minor release.- Removed: the undocumented lab options (
lab,want,pool,target,max) androom.lab().app(your publishable key) is required:join()throws aTypeErrorwithout it.
New in 1.0: join tickets and room.user(peerId), room.ping(peer), join({ region }) for a region-pinned app, join({ worker }) for a self-hosted worker, tokens and relay credentials that refresh so rooms live past six hours, and a hidden page that holds no slot and accrues no time while away.