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
-
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.onReplicasChange
Peer.onSyncersChange
Replica
Replica.set
Replica.ingestAttachment
Replica.getAttachment
Replica.addAttachments
Replica.wipeDocAtPath
Replica.getEventStream
Replica.getQueryStream
Replica.onEvent
MultiformatReplica
, a Replica which is able to read, write, and syncdocuments of different formats.
FormatEs5
, which supports share keypairs and attachmentsReplicaDriverWeb
ReplicaDriverFs
RelpicaDriverMemory
DocDriverSqliteFFI
, which uses an FFI implemetation of Sqlite.Requires the
--unstable
flag on Deno.syncReplicaAndFsDir
to use attachments for large files.ReplicaCache
now 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
contentLength
options onQueryFilter
.Removed
QueryFollower
. UseReplica.getQueryStream
instead.queryByTemplateAsync
andqueryByGlobAsync
have had the redundantasync
taken out of their name.
Cryptography
Crypto.generateShareKeypair
CryptoDriverSodium
which uses a WASM version of libsodium for veryfast operations. This is now the default driver on Deno.
CryptoDriverNoble
to use a new, faster, audited version.Other
SharedSettings
class for easily saving and retrieving an authorkeypair, shares and secrets, and favourite servers.
https://cdn.earthstar-project.org/js/earthstar.web.v10.0.0.js
This discussion was created from the release v10: Attachments, Read-only shares, and Efficient Sync.
Beta Was this translation helpful? Give feedback.
All reactions