Skip to content

0.19.0

Latest
Compare
Choose a tag to compare
@dmotz dmotz released this 09 Jul 02:04
· 6 commits to main since this release

Improvements

  • Shared peering logic - This release streamlines and consolidates all the different code for interfacing with strategy relays into a single place. This means that peering strategies are now much simpler and it's significantly easier to write new ones (or in future releases, mix and match strategies with the same group of peers). Previously, duplicated logic existed between various strategy modules, but going forward any fixes for deadlocks, race conditions, etc. will benefit all strategies.
  • More reliable/faster room entrance/exit events - Joining, leaving, and re-joining rooms should be noticeably faster and more reliable due to the strategy logic overhaul.
  • Better support for SSR frameworks - While it isn't working on Node quite yet (but getting closer), you can now import Trystero in Node without causing problems, which avoids the need for workarounds for shared code in SSR frameworks.
  • 🪐 IPFS - The IPFS strategy had been broken but is now working again.

New features

  • ⚡️ Supabase strategy - A new connection strategy is now available using Supabase, an open-source BaaS built on Postgres.
  • Incorrect password handling - joinRoom() now accepts a third argument, a function that will be called if a user tries to join a room with a password that doesn't match other users (docs).