Zixuan Chen
a38cf178d1
chore: bump rust crates version
2024-08-29 23:02:03 +08:00
Zixuan Chen
227d1aad2c
fix: find last_delete_op can return none
Release WASM / Release (push) Has been cancelled
Test All / build (push) Has been cancelled
2024-08-28 01:17:01 +08:00
Zixuan Chen
7cf54e8aa3
fix: should not use snapshot importing when it's inside a batch importing ( #436 )
...
* fix: should not use snapshot importing when it's inside a batch importing
* chore: bk
2024-08-28 00:06:24 +08:00
Zixuan Chen
a76143068a
Chore build err ( #434 )
...
* chore: rm needless fuzz code
* fix(wasm): build script fix
* chore: release info
2024-08-27 21:30:18 +08:00
Leon Zhao
79e9f29656
fix: delete the **bring back** tree node from the undo container remap ( #423 )
2024-08-19 21:52:30 +08:00
东灯
251c9c7787
feat: check invalid root container name ( #411 )
2024-07-29 15:06:31 +08:00
东灯
9d7b5b8474
feat & perf: add map.contains_key and perf map.len ( #409 )
...
* feat & perf: add map.contains_key and perf map.len
* chore: remove unused import
2024-07-25 16:40:08 +08:00
东灯
7e4500620d
style: use clippy to perf code ( #407 )
2024-07-24 17:39:29 +08:00
东灯
e01505e013
feat: add text update API ( #404 )
...
* feat: add diff algorithm
* feat: implement DiffHook
* feat: add rust/typescript API
* feat: use u8 to enable SIMD
* feat: add SIMD support
* test: add a failed test case
* revert: change to unicode index
* fix: text event index correctness when using utf8 or unicode
* fix: use unicode index
* fix: apply delta
* fix: remove splice_unicode
---------
Co-authored-by: Zixuan Chen <remch183@outlook.com>
2024-07-23 21:22:47 +08:00
Patrick Arminio
b8f9fafed0
Add code
to the default rich text configuration ( #406 )
2024-07-21 19:14:22 +08:00
Yang Si
ce88b326dd
fix: when computing the len of the map, do not count elements that are None ( #402 )
2024-07-14 16:40:46 +08:00
东灯
c710ec3dd3
feat: add more text api ( #398 )
...
* feat: add char_at
* feat: add slice
* feat: add splice
* feat: add rust/typescript API
* fix: ci test
* fix: patch
* fix: patch
* Update crates/loro-wasm/src/lib.rs
Co-authored-by: Zixuan Chen <remch183@outlook.com>
* Update crates/loro-wasm/src/lib.rs
Co-authored-by: Zixuan Chen <remch183@outlook.com>
* Update crates/loro/src/lib.rs
Co-authored-by: Zixuan Chen <remch183@outlook.com>
* perf: use entity index
* fix: patch
* fix: error brackets
---------
Co-authored-by: Zixuan Chen <remch183@outlook.com>
2024-07-14 13:06:04 +08:00
东灯
2f95480e96
feat: add text iter ( #400 )
...
* feat: add text iter
* doc: fix return error
* doc: add callback explain
* perf: change to iterate spans
2024-07-13 23:34:37 +08:00
Leon Zhao
00e9c8d031
fix: tree diff calc children should be sorted by idlp ( #401 )
2024-07-13 23:26:38 +08:00
Leon Zhao
71e5afa6cc
fix: tree undo when processing deleted node ( #399 )
2024-07-12 10:53:48 +08:00
Leon Zhao
00e7bf2911
chore: rename position to fractional_index ( #381 )
...
Breaking Change:
- rename `position` to `fractional_index`
2024-07-11 22:03:48 +08:00
东灯
86c760abd0
feat: add insert_utf8 and delete_utf8 for Rust Text API ( #396 )
...
* feat: add insert_utf8
* chore: merge insert functions
* fix: use utf8_to_unicode_index to reslove index
* fix: add bound-check and use unicode PosType
* feat: add delete_utf8
* perf: O(LogN) insert_utf8
* feat: add utf-16 cross unicode check
* perf: O(LogN) delete_utf8
* chore: add api
* chore: remove unused function
* fix: api name and bindgen name
* test: add utf8 js test
---------
Co-authored-by: Zixuan Chen <remch183@outlook.com>
2024-07-10 10:20:08 +08:00
Zixuan Chen
9047065843
Fix undo with checkout ( #375 )
...
* fix: should transform checkout event
* chore: update fuzz dep
* chore: add pos to error info
* fix: clear undo/redo stack when checkingout
* test: update fuzz dep
* test: a new failed test case
* fix: tree transform
* chore: fuzz
* chore: add log
* chore: add more logs
* fix: compose err
* chore: fuzz test dep
* test: a failed tree case
* fix: undo tree event
* fix: do not compare tree position in fuzz
* fix: fuzz rev
* test: a failed tree case
* fix: add tree compose
* chore: add comment
* chore: fuzz
* fix: test
* fix: tree transform
* fix: tree transform index
* fix: sort tree index
* chore: fuzz
* fix: undo/redo remote change effect compose
* bk
* fix: tree undo redo (#385 )
* fix: event hint none
* chore: fuzz version
* ci: fuzz
* bk: weird err
* fix: type err
* fix: fractional index between
* fix: wasm counter feature
* test: a new failed case
* fix: recursively create child nodes
* fix: filter empty event
* bk
* bk
* fix: tree undo redo remap
* chore: clean
* bk
* fix: tree need remap first
* fix: tree undo effect
* fix: tree diff calc
* fix: tree fuzz check eq func
* fix: remove EventHint None
* chore: cargo fix
* fix: tree uncreate
* fix: fuzz tree assert only structure
* refactor: rename methods
* fix: movable tree apply delta
* fix: another movable list issue
* chore: fuzz only check 1 actor's history
---------
Co-authored-by: Leon Zhao <leeeon233@gmail.com>
2024-07-04 18:15:44 +08:00
Zixuan Chen
1e94248128
Feat fork ( #393 )
...
* feat: fork
* chore: add changeset
2024-06-26 21:05:04 +08:00
Leon Zhao
fb028f861d
fix: export CommitOptions & JsonSchema ( #389 )
2024-06-20 16:52:36 +08:00
Leon Zhao
0b3c6ba1d0
fix: merge
2024-06-13 15:11:29 +08:00
Leon Zhao
afac34755f
feat: implementing Counter and expose to js side ( #384 )
2024-06-13 14:43:19 +08:00
Leon Zhao
a941cddfb7
feat: export any range version with json schema ( #383 )
2024-06-11 20:08:03 +08:00
Leon Zhao
881167b18e
fix: tree state get FI by index error ( #382 )
2024-06-11 15:19:12 +08:00
Leon Zhao
2df2a52b05
feat: Stable JSON representation for history ( #368 )
...
---------
Co-authored-by: Zixuan Chen <remch183@outlook.com>
2024-06-07 13:18:30 +08:00
Zixuan Chen
d2973df859
refactor: rm unused code ( #380 )
2024-06-07 10:17:23 +08:00
Zixuan Chen
dc55055b6f
Perf cache WASM text toDelta result ( #378 )
...
* refactor: make cursor transformation in undo/redo better
* chore: add release info
* perf: cache to_delta value in wasm
* chore: release msg
2024-06-06 16:54:52 +08:00
Zixuan Chen
6d47015f6e
Refactor undo cursor ( #377 )
...
* refactor: make cursor transformation in undo/redo better
* chore: add release info
2024-06-06 16:49:36 +08:00
Zixuan Chen
54637a7b42
Publish v0.16.2 to crates.io ( #374 )
...
* chore: mark dev-utils not published
* chore: release rust crates
* chore: publish fi
* chore: pre publish fi
* chore: update lockfile
* test: change fuzz rev
2024-05-29 22:55:55 +08:00
Leon Zhao
cd04b27d65
fix: fuzz cache and counter feature ( #373 )
...
* fix: fuzz cache and counter feature
* fix: rev
2024-05-29 22:44:21 +08:00
Leon Zhao
4a0c8b6ddd
fix: tree transform when a
and b
is equal ( #371 )
...
* test: add test
2024-05-25 08:32:56 +08:00
Zixuan Chen
6700dad19b
feat: Add event listener and native support of cursor transformation for undo/redo ( #369 )
2024-05-23 10:19:08 +08:00
Zixuan Chen
1a347cab72
feat: refine undo impl ( #365 )
...
* feat: refine undo impl
- Add "unfo" origin for undo and redo event
- Allow users to skip certain local operations
- Skip undo/redo ops that're not visible to users
* feat: add returned bool value to indicate whether undo/redo is executed
2024-05-21 13:08:43 +08:00
Zixuan Chen
321e0e72a4
Undo ( #361 )
...
https://github.com/loro-dev/loro/pull/361
---------
Co-authored-by: Leon Zhao <leeeon233@gmail.com>
2024-05-21 06:14:49 +08:00
Leon Zhao
26753f0d4d
fix: better jitter for fractional index ( #360 )
...
* fix: better jitter
2024-05-16 15:26:49 +08:00
Leon Zhao
6e14e5b117
Feat: Make the encoding format forward and backward compatible ( #329 )
2024-05-13 21:37:10 +08:00
Zixuan Chen
ea7d8b0669
fix: refine error message on corrupted data ( #356 )
...
* fix: refine error message on corrupted data
* fix: comment
2024-05-10 11:06:01 +08:00
Zixuan Chen
a9484b48a2
Fix potential movable list bug ( #354 )
...
* fix: upgrade wasm-bindgen to fix str free err
* chore: fix ci
* fix: potential bug in movable list op group
2024-05-09 15:46:19 +08:00
Zixuan Chen
0660b1a1be
fix: upgrade wasm-bindgen to fix str free err ( #353 )
...
* fix: upgrade wasm-bindgen to fix str free err
* chore: fix ci
2024-05-09 15:22:34 +08:00
Leon Zhao
51a673822e
fix: tree fuzz sort value ( #351 )
2024-05-07 19:39:38 +08:00
Leon Zhao
fffd49b5fa
Use fractional index to order the children of the tree ( #298 )
...
* feat: fractional index
---------
Co-authored-by: Zixuan Chen <remch183@outlook.com>
2024-05-07 14:01:13 +08:00
Zixuan Chen
4021ad820c
chore: loro-rs v0.5.1
2024-05-06 13:37:55 +08:00
Zixuan Chen
dd8c7f7392
perf: delete span merge err ( #348 )
...
* perf: delete span merge err
* fix: slicing of DeleteSpanWIthId
* fix: sliceable err
2024-05-04 11:32:49 +08:00
Zixuan Chen
456ff12503
chore: warn missing debug impl ( #347 )
2024-05-04 11:32:31 +08:00
Zixuan Chen
c2da94a557
fix: upgrade generic-btree to allow large btree ( #344 )
2024-05-02 16:45:33 +08:00
Zixuan Chen
8bf180827f
fix: get cursor err on text and movable list ( #337 )
2024-04-29 21:42:50 +08:00
Zixuan Chen
ca5f762646
fix: impl a few unimplemented! for movable tree ( #335 )
2024-04-29 21:40:57 +08:00
Zixuan Chen
e5dfded0f3
chore: skip the checking if not debug_assertions ( #340 )
2024-04-29 21:40:05 +08:00
Zixuan Chen
996ce70e45
docs: add warn(missing_docs) to loro and loro-wasm ( #339 )
2024-04-29 19:35:21 +08:00
Zixuan Chen
5660bcc4a5
chore: bump loro-rs to v0.5.0
2024-04-29 18:09:07 +08:00