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.