Zixuan Chen
f78e1da8a0
refactor(rust): extract LoroStringValue, LoroMapValue, LoroBinaryValue, LoroListValue ( #535 )
...
* refactor: extract LoroStringValue LoroMapValue LoroListValue LoroBinaryValue
* chore: clippy fix
* chore: fix warning
2024-11-04 17:03:14 +08:00
Zixuan Chen
d872ac6488
fix: avoid auto unsubscribe (due to gc) in js env ( #516 )
...
* fix: avoid auto unsubscribe (due to gc) in js env
* fix: drop subscription if the subscriber is dropped
* perf: use manually drop
* fix: rm once_cell dep
* fix: should call unsubscribe
2024-10-17 13:33:29 +08:00
Zixuan Chen
e14f81aa37
perf: optimize high concurrency performance ( #514 )
...
* perf: optimize high concurrency performance
* fix: err
* chore: fix warnings
2024-10-16 12:01:31 +08:00
Leon Zhao
9680be4103
fix: ffi remove try unwrap ( #506 )
2024-10-10 20:13:59 +08:00
Leon Zhao
5914d32b38
fix: ffi Subscription ( #505 )
2024-10-10 15:14:39 +08:00
Zixuan Chen
c8f776f018
Refactor rename trimmed snapshot to shallow snapshot ( #499 )
...
* refactor: rename trimmed snapshot to shallow snapshot
* refactor: rename trimmed_vv and trimmed_frontiers
* refactor: rename rest of trimmed* into shallow*
* chore: rename cov message
* chore: fix warnings
2024-10-08 13:15:14 +08:00
Leon Zhao
f598b0e1e7
fix: ffi new sub import status ( #497 )
2024-10-06 10:28:55 +08:00
Leon Zhao
405cbe047c
feat: add import status ( #494 )
2024-10-05 08:18:12 +08:00
Zixuan Chen
e3a7757610
refactor: change the first param of travel change from id to ids ( #492 )
...
* refactor: change the first param of travel change from id to ids
* fix: fix all warnings and refine the impl of subscription
* chore: use pnpm
2024-10-03 21:09:18 +08:00
Zixuan Chen
a93efd5f51
refactor!: better event api ( #489 )
...
- (js) Refactor subscription mechanism to return unsubscribe function
- (rust) Implement must-use struct for subscriptions in Rust
- Enhance API ergonomics for JavaScript-like environments
- Improve resource cleanup and prevent potential memory leaks
2024-10-03 15:14:21 +08:00
Zixuan Chen
09a004e365
refactor: Loro import function should return LoroEncodeError ( #487 )
...
* refactor: Loro import function should return LoroEncodeError
- Change return type
- Add support for handling potential errors:
- Invalid or non-existent frontiers
- Exporting old snapshot format from trimmed snapshot doc
- Improve compatibility with trimmed docs
* fix: add tests and fix a few places that need to return err
2024-10-02 11:11:08 +08:00
Zixuan Chen
31bc451fbf
Refactor rename new snapshot mode ( #486 )
...
* refactor: rename gc snapshot to trimmed snapshot
* refactor: mv
2024-10-01 16:49:38 +08:00
Zixuan Chen
5688a017d6
Fix warnings ( #484 )
...
* fix: warnings
* fix: warnings
2024-09-29 21:15:19 +08:00
Leon Zhao
4414053a82
feat: add FFI for Loro ( #420 )
...
* chore: init ffi
* feat: impl doc and LoroList
* feat: impl containers
* feat: unknown container
* feat: event ffi
* chore: clean
* feat: ffi undo manager
* chore: cargo fix
* chore: cargo fix
* fix: ffi value or container
* fix: ffi arc
* fix: is attached for movable list
* bk
* feat: all LoroDoc func
* feat: refine vv
* feat: ffi frontiers
* feat: ffi awareness
* fix: merge
2024-09-29 07:41:59 +08:00
Zixuan Chen
454b4088a6
chore(rs): bump versions of rust crates
2024-04-09 16:23:48 +08:00
Zixuan Chen
2ad7202e05
Feat-rust-api ( #193 )
2023-11-28 16:22:43 +08:00
leeeon233
c4b753dfd8
chore: add license
2023-11-12 23:23:12 +08:00
Zixuan Chen
1e736df133
Refactor: rm legacy code ( #97 )
...
* refactor: rm legacy code
* chore: rm dead code
* refactor: mv refactored files outside
* refactor: rename files & methods
* chore: rm unused deps
* fix: compact bytes err
* chore: fix ci
2023-07-31 11:49:55 +08:00
Zixuan Chen
23a212e5f6
chore: fix warnings and rm some dead code
2023-07-10 18:35:31 +08:00
Zixuan Chen
ba8de055b4
chore: fix warnings
2023-07-07 21:56:35 +08:00
Zixuan Chen
f0f82fb581
refactor: seal change exp impl
2023-07-05 14:43:58 +08:00
leeeon233
271250ba05
feat: add java bindgen
2023-01-29 17:48:37 +08:00
leeeon233
8f739178e7
feat: add go bindgen
2023-01-29 17:48:37 +08:00
leeeon233
c10b1237e0
chore: rebase main
2023-01-29 17:48:37 +08:00
leeeon233
c56d5327da
chore: add readme.md
2023-01-29 17:48:37 +08:00
leeeon233
95309db710
feat: impl C ffi
2023-01-29 17:48:37 +08:00
leeeon233
a26d4b0122
feat: init ffi
2023-01-29 17:48:37 +08:00