Skip to content

v3.0.0

Latest
Compare
Choose a tag to compare
@sgwilym sgwilym released this 13 Mar 15:36
· 12 commits to master since this release
0144364

This new version brings:

  • Compatibility with the latest version of Earthstar 'Stone Soup'
  • A new, vastly simplified AP
  • Much improved performance
  • And the removal of 'Earthbar'. Farewell old friend!

Please see the README for details on all the new APIs.

There's one I'm particularly pleased with, which is the new useReplica hook. This hook returns a synchronous version of Earthstar's Replica class, backed by a cache. It tracks the queries you make, and calls on React to re-render only when the results for queries you've made have changed. Each call of useReplica has its own cache of tracked queries, so components only ever re-render for stuff they've queried for.