Skip to content

Releases: dmotz/trystero

0.22.0

11 Oct 20:56

Choose a tag to compare

Breaking changes

  • πŸͺ IPFS - removed libp2pConfig config option

Improvements

  • 🐦 Nostr and 🌊 BitTorrent - new manualRelayReconnection boolean flag in config object, which will disable Trystero's automatic relay socket reconnection behavior. This is paired with two top level package exports pauseRelayReconnection() and resumeRelayReconnection(), which allows you to control when Trystero auto-reconnects sockets. Additionally, Trystero will no longer attempt to reconnect sockets when the browser appears to be offline. Thanks to @vrtmrz for implementing.
  • πŸͺ IPFS - updated strategy, now reliably working and passing test suite

0.21.8

03 Sep 23:47

Choose a tag to compare

  • The default bundle size is now 20% smaller, down to 8K minified 🀏
  • 🐦 Nostr - updated default relays

0.21.7

19 Aug 03:21

Choose a tag to compare

  • Improved reconnection rates when leaving and rejoining rooms, thanks to @jeremyckahn
  • Improved type definitions

0.21.4

25 May 19:06

Choose a tag to compare

Improvements

  • Improved WebRTC connection logic in core peer module β€” this should improve connection success rates
  • Default bundle size (Nostr) is now 40% smaller

0.21.3

19 Apr 00:12

Choose a tag to compare

Bug fixes

  • This release fixes a regression in 0.21.2 that causes connection issues in browsers

0.21.2

17 Apr 02:21

Choose a tag to compare

Improvements

  • πŸ“£ Trystero now works server-side in Node, Deno, and Bun. See this section of the readme for details. Big thanks to @vrtmrz for figuring out the final piece of the server-side puzzle!
  • 🐦 Nostr - pruned dead default relays

0.21.1

04 Apr 00:12

Choose a tag to compare

Improvements

  • Fix for importing Nostr strategy in Node (note: Node support is still under development)

0.21.0

27 Mar 00:11

Choose a tag to compare

Improvements

  • New, modernized RTCPeerConnection abstraction
  • Significantly smaller build sizes
  • New joinRoom() config object options:
    • rtcPolyfill - Use this to pass a custom RTCPeerConnection-compatible constructor. This is useful for running outside of a browser, such as in Node (still experimental, not working yet).
    • turnConfig - Specifies a custom list of TURN servers to use (see Connection issues section). Each item in the list should correspond to an ICE server config object. When passing a TURN config like this, Trystero's default STUN servers will also be used. To override this and use both custom STUN and TURN servers, instead pass the config via the above rtcConfig.iceServers option as a list of both STUN/TURN servers β€” this won't inherit Trystero's defaults.

0.21.0-beta.1

23 Feb 17:05

Choose a tag to compare

0.21.0-beta.1 Pre-release
Pre-release

This beta release introduces a new, homegrown way of handling RTCPeerConnection instances behind the scenes. Trystero previously used simple-peer which is mostly unmaintained and showing its age. The new peer management code uses modern techniques, makes the build significantly lighter, and allows more flexibility for the project, like getting Trystero working in Node (see the new rtcPolyfill option for details).

If you use Trystero in your projects, please test this new beta version and report any issues you find. If you encounter a problem, be sure to confirm the issue does not occur on the latest stable version (0.20.1) under the same network conditions (e.g. peer A on network 1 <-> peer B on network 2).

Try this release via npm i trystero@beta.

0.20.1

15 Feb 23:41

Choose a tag to compare

Improvements

  • 🐦 Nostr strategy - Default relays are now chosen based on app ID to distribute Trystero connections more evenly
  • Updated default relay lists across strategies
  • Updated to latest dependency versions