v2.0.0
Earthstar core update 🎉
This release updates the peer dependency earthstar
to v6.3.1, which introduces breaking changes to how documents are queried, as well as support for asynchronous storages. The latter opens the way for IndexedDB storage support, which we're excited for as it will mean Earthstar apps being able to store far more data in future (the current limit being 5mb). More news on that soon.
This change from synchronous to asynchronous storages also changes how some hooks behave, as they cannot obtain their results right away. For now, new elements representing the state of the operation have been added, but in future we'll use React's Suspense API to improve this experience.
EarthstarPeer
now internally usesIStorageAsync
, consequently theinitWorkspaces
prop has changed toIStorageAsync[]
useDocument
now returns a fourth element which represents the status of the operation (idle
,pending
,success
)
Other improvements ✨
- Makes it so that when MultiWorkspaceTab is in use that the currentWorkspace is always null.
- When you remove a workspace, its pubs are now forgotten too
- Added a display name form to multiworkspace settings
Under the hood 🔧
- Now using
StorageLocalStorage
for document storage rather than a solution built into react-earthstar - Tests refactored for asynchronous API