v10: Attachments, Read-only shares, and Efficient Sync #295
sgwilym
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
v10.0.0 - Squirrel
This is a major release which introduces attachments, share keypairs, efficient
sync, and much much more. It is the biggest release of Earthstar ever.
As such, this version breaks compatibility with previous versions of Earthstar.
Here are the headline features:
arbitary binary data to it. This can be used for sharing large images, music,
video, anything. There is no size limit.
public key of a share keypair. The public key grants discovery and read
access, the secret key grants write access to the replica.
efficient reconclition mechanism powered by
range-reconcile and
push-pull-push-multicast trees.
The server APIs have also been moved into this repo.
In addition to new features, many APIs have been tweaked or changed entirely.
Please see the API documentation and the README to see what these new API
changes are like.
Server
Server.Peer
Peer.onReplicasChangePeer.onSyncersChangeReplica
Replica.setReplica.ingestAttachmentReplica.getAttachmentReplica.addAttachmentsReplica.wipeDocAtPathReplica.getEventStreamReplica.getQueryStreamReplica.onEventMultiformatReplica, a Replica which is able to read, write, and syncdocuments of different formats.
FormatEs5, which supports share keypairs and attachmentsReplicaDriverWebReplicaDriverFsRelpicaDriverMemoryDocDriverSqliteFFI, which uses an FFI implemetation of Sqlite.Requires the
--unstableflag on Deno.syncReplicaAndFsDirto use attachments for large files.ReplicaCachenow has attachment methodsSyncing
Added
PartnerLocal, for syncing with local peers.Added
PartnerWebServer, for syncing with servers.Added
PartnerWebClient, for syncing with web clients.Removed earthstar_streaming_rpc as a dependency.
Queries
Removed the
contentLengthoptions onQueryFilter.Removed
QueryFollower. UseReplica.getQueryStreaminstead.queryByTemplateAsyncandqueryByGlobAsynchave had the redundantasynctaken out of their name.
Cryptography
Crypto.generateShareKeypairCryptoDriverSodiumwhich uses a WASM version of libsodium for veryfast operations. This is now the default driver on Deno.
CryptoDriverNobleto use a new, faster, audited version.Other
SharedSettingsclass for easily saving and retrieving an authorkeypair, shares and secrets, and favourite servers.
https://cdn.earthstar-project.org/js/earthstar.web.v10.0.0.jsThis discussion was created from the release v10: Attachments, Read-only shares, and Efficient Sync.
Beta Was this translation helpful? Give feedback.
All reactions