fix: miss an export mode in ffi
Some checks failed
Release WASM / Release (push) Has been cancelled
Test All / build (push) Has been cancelled

This commit is contained in:
leeeon233 2024-11-28 15:03:05 +08:00
parent 67f7fa54d2
commit a6f3ddfcd9
No known key found for this signature in database
GPG key ID: 38CA3B145509B66D

View file

@ -305,6 +305,12 @@ impl LoroDoc {
self.doc.export(loro::ExportMode::Snapshot)
}
pub fn export_snapshot_at(&self, frontiers: &Frontiers) -> Result<Vec<u8>, LoroEncodeError> {
self.doc.export(loro::ExportMode::SnapshotAt {
version: Cow::Owned(frontiers.into()),
})
}
pub fn frontiers_to_vv(&self, frontiers: &Frontiers) -> Option<Arc<VersionVector>> {
self.doc
.frontiers_to_vv(&frontiers.into())