Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Make the encoding format forward and backward compatible #329

Merged
merged 76 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
f4c8c4f
bk
Leeeon233 Apr 18, 2024
50696c1
refactor: parse uint8array to binary (#320)
zxch3n Apr 17, 2024
f57d522
chore: prerelease
zxch3n Apr 17, 2024
ad64b4e
chore: version packages (#321)
github-actions[bot] Apr 17, 2024
91511ad
feat: add unknown
Leeeon233 Apr 19, 2024
2109e49
fix: diff calc filter unknown
Leeeon233 Apr 19, 2024
b9ed0d0
fix: snapshot unknown
Leeeon233 Apr 20, 2024
6431944
fix: unknown import
Leeeon233 Apr 20, 2024
5bad07d
fix: unknown state
Leeeon233 Apr 20, 2024
5dda67c
fix: state unknown
Leeeon233 Apr 20, 2024
9a1d7ba
fix: insert unknown state
Leeeon233 Apr 20, 2024
65c6a77
fix: init unknown state
Leeeon233 Apr 20, 2024
0bd7e01
fix: container
Leeeon233 Apr 20, 2024
2e9b306
fix: unknown diff calc
Leeeon233 Apr 21, 2024
4572949
fix: merge
Leeeon233 Apr 21, 2024
1655fea
fix: cargo fix
Leeeon233 Apr 21, 2024
201c007
fix: cargo fix
Leeeon233 Apr 21, 2024
6729034
fix: unknown kind
Leeeon233 Apr 22, 2024
9545f33
fix:
Leeeon233 Apr 22, 2024
4dda3f3
fix:
Leeeon233 Apr 22, 2024
a31904a
fix: unknown snapshot
Leeeon233 Apr 22, 2024
598f434
bk
Leeeon233 Apr 22, 2024
ae21120
feat: use Future type
Leeeon233 Apr 23, 2024
6f717c4
Merge branch main into leon/feat-encode-forward
Leeeon233 Apr 23, 2024
f6ff72f
fix: encode bytes length
Leeeon233 Apr 23, 2024
9811eb0
bk
Leeeon233 Apr 24, 2024
1f028a1
fix: inner content unknown
Leeeon233 Apr 25, 2024
2194ecc
fix: remove bytes len
Leeeon233 Apr 26, 2024
7302177
bk
Leeeon233 Apr 28, 2024
564ac30
bk: todo still unknown event
Leeeon233 Apr 28, 2024
0cf2d88
fix: clean
Leeeon233 Apr 29, 2024
c2056aa
fix: clean
Leeeon233 Apr 29, 2024
a23c350
fix: still unknown snapshot
Leeeon233 May 6, 2024
d619fa9
Merge branch 'main' into leon/feat-encode-forward
Leeeon233 May 6, 2024
04f1d06
fix: merge
Leeeon233 May 6, 2024
777c461
fix: loro arr id
Leeeon233 May 6, 2024
37b97d9
feat: counter
Leeeon233 May 6, 2024
f9ddb61
feat: counter encode
Leeeon233 May 6, 2024
8c9f201
fix: counter feature
Leeeon233 May 6, 2024
3af8416
feat: counter fuzz
Leeeon233 May 6, 2024
9fdbaa4
fix: counter diff calc
Leeeon233 May 7, 2024
7434b1c
chore: loro-rs v0.5.1
zxch3n May 6, 2024
68d4f10
docs: update readme
zxch3n May 6, 2024
8173824
fix: default feature
Leeeon233 May 7, 2024
b274ed4
test: fuzz unknown
Leeeon233 May 7, 2024
3ad1944
fix: create unknown state
Leeeon233 May 7, 2024
6b3aca5
bk
Leeeon233 May 7, 2024
4545b12
fix: unknown state snapshot
Leeeon233 May 7, 2024
fad8610
fix
Leeeon233 May 7, 2024
b718a8f
fix: unknown prop
Leeeon233 May 7, 2024
5daf81f
test: fix fuzz
Leeeon233 May 7, 2024
414575c
fix: counter empty value
Leeeon233 May 7, 2024
d3a8744
chore: clean
Leeeon233 May 7, 2024
faabd65
Merge branch 'main' into leon/feat-encode-forward
Leeeon233 May 7, 2024
400609b
fix: merge main
Leeeon233 May 7, 2024
15442d8
fix: unknown
Leeeon233 May 7, 2024
a49da75
chore:
Leeeon233 May 7, 2024
6583e03
bk
Leeeon233 May 9, 2024
e827163
fix: extract snapshot encode state
Leeeon233 May 9, 2024
19a7fc7
fix: feature conflict
Leeeon233 May 9, 2024
91cfe86
fix: remove rawOpContent Future
Leeeon233 May 9, 2024
e6430a9
chore: containerIdx comment
Leeeon233 May 9, 2024
0503808
chore: wasm
Leeeon233 May 9, 2024
15d566d
fix: counter
Leeeon233 May 9, 2024
66e7175
fix: remove counter group
Leeeon233 May 9, 2024
e48c14d
fix: counter attach
Leeeon233 May 11, 2024
0f0ba33
fix:
Leeeon233 May 11, 2024
4a6a540
fix: unknown event
Leeeon233 May 11, 2024
3f5f753
fix: unified encode arena input
Leeeon233 May 11, 2024
c93a80d
fix: use LoroValueKind
Leeeon233 May 13, 2024
48bd150
chore: fix dep
Leeeon233 May 13, 2024
e50a8fc
chore: cargo fix
Leeeon233 May 13, 2024
62d1d78
chore: clean
Leeeon233 May 13, 2024
0ad15cd
chore: dep
Leeeon233 May 13, 2024
4c36014
fix: counter is zero
Leeeon233 May 13, 2024
215d6d5
chore: dep
Leeeon233 May 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 113 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions crates/fractional_index/benches/fractional_index.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use criterion::{criterion_group, criterion_main, Criterion};
#[cfg(not(feature = "jitter"))]

pub fn criterion_benchmark(c: &mut Criterion) {
use criterion::{AxisScale, BenchmarkId, PlotConfiguration};
use fraction_index::FractionalIndex as MyIndex;
Expand Down Expand Up @@ -118,8 +118,5 @@ pub fn criterion_benchmark(c: &mut Criterion) {
});
}

#[cfg(feature = "jitter")]
fn criterion_benchmark(_: &mut Criterion) {}

criterion_group!(benches, criterion_benchmark);
criterion_main!(benches);
8 changes: 4 additions & 4 deletions crates/fractional_index/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::sync::Arc;
use std::{fmt::Display, sync::Arc};

#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
Expand Down Expand Up @@ -194,9 +194,9 @@ mod impls {
}
}

impl ToString for FractionalIndex {
fn to_string(&self) -> String {
bytes_to_hex(&self.0)
impl Display for FractionalIndex {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", bytes_to_hex(&self.0))
}
}

Expand Down
5 changes: 4 additions & 1 deletion crates/fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ publish = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
loro = { path = "../loro" }
loro-without-counter = { path = "../loro", package = "loro" }
loro = { git = "https://github.com/loro-dev/loro.git", features = [
Leeeon233 marked this conversation as resolved.
Show resolved Hide resolved
"counter",
], branch = "leon/feat-encode-forward" }
loro-internal = { path = "../loro-internal", features = ["test_utils"] }
fxhash = { workspace = true }
enum_dispatch = { workspace = true }
Expand Down
Loading
Loading