Leon Zhao
468a957476
feat: impl toJSON
for LoroTreeNode
( #538 )
...
Release WASM / Release (push) Has been cancelled
Test All / build (push) Has been cancelled
* feat: impl `toJSON` for `LoroTreeNode`
* test: add snapshot test
2024-11-05 20:11:03 +08:00
github-actions[bot]
67fcc89e58
chore: version packages
Release WASM / Release (push) Has been cancelled
Test All / build (push) Has been cancelled
2024-11-04 22:45:55 +08:00
Zixuan Chen
9b60d01be2
fix: define the fork behavior when the doc is detached ( #537 )
...
* fix: define the fork behavior when the doc is detached
* chore: add release note
2024-11-04 22:34:33 +08:00
Zixuan Chen
7bf6db7398
feat: add push/push_container to LoroText/LoroList/LoroMovableList ( #534 )
...
Release WASM / Release (push) Waiting to run
Test All / build (push) Waiting to run
* feat: add push_container and push_str to list/text
* chore: add changeset file
2024-11-04 17:03:24 +08:00
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
github-actions[bot]
d3cdb20ef8
chore: version packages ( #533 )
...
Release WASM / Release (push) Has been cancelled
Test All / build (push) Has been cancelled
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-29 21:54:16 +08:00
Zixuan Chen
62a3a93552
Refactor: merge two js packages ( #532 )
...
* feat: make vitest tests pass
* chore: update readme & add deno test for web bundle
* chore: bump version to 1.0.8-alpha.0
* chore: bump loro-crdt version
* fix: build script
export init method from loro-wasm/web
* chore: bump version
* chore: specify which files to include for npm publish
* refactor: rename loro-js to loro-js-test
* refactor: remove the old loro-js folder
* fix: build scripts
* chore: 1.0.8-alpha.3
* chore: add release info
2024-10-29 21:46:56 +08:00
Zixuan Chen
e2be56b0c2
docs: update ts docs ( #529 )
...
Release WASM / Release (push) Has been cancelled
Test All / build (push) Has been cancelled
* docs: update ts docs
* docs: update rust docs
* test: add js doc tests and fix outdated js docs
2024-10-25 16:35:33 +08:00
Zixuan Chen
19b7ed9186
chore: bump version
2024-10-23 23:42:18 +08:00
Zixuan Chen
520a54dc71
chore: bump version
2024-10-23 23:35:41 +08:00
github-actions[bot]
87157121e4
chore: version packages ( #527 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-23 23:19:24 +08:00
Zixuan Chen
340f315623
chore: bump version
2024-10-22 22:58:01 +08:00
Zixuan Chen
2622e301d0
fix: subscription convert error ( #525 )
Release WASM / Release (push) Waiting to run
Test All / build (push) Waiting to run
2024-10-22 08:06:37 +08:00
Zixuan Chen
77024c378f
chore: bump version
2024-10-19 23:22:20 +08:00
Zixuan Chen
f3a03f83ac
chore: bump version
2024-10-19 17:13:01 +08:00
Leon Zhao
203d82bf3b
feat: wasm api 1.0 ( #521 )
...
* feat: new 1.0 api wasm
* test: add new api test
2024-10-19 17:09:03 +08:00
Leon Zhao
3e4005d113
chore: rename tree event ( #520 )
2024-10-19 11:24:13 +08:00
Leon Zhao
dedc8e087e
chore: rename wasm export from ( #519 )
...
* chore: rename wasm export from
* fix: clippy
2024-10-18 19:49:40 +08:00
Zixuan Chen
2110a4e33a
chore: bump to beta.2
2024-10-17 14:16:02 +08:00
Zixuan Chen
0e21977705
chore: update build script
2024-10-17 14:12:21 +08:00
Zixuan Chen
e32fdbf542
feat(wasm): add methods to encode and decode Frontiers ( #517 )
2024-10-17 13:48:11 +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
00775d3bcd
chore: bump to 1.0.0-beta.1
2024-10-16 16:29:52 +08:00
Zixuan Chen
e0b7280024
perf: use better data structure for frontiers ( #515 )
...
* perf: optimize high concurrency performance
* refactor: use new fronteirs impl init
* refactor: fix more type err
* refactor: fix more type err
* fix: fix more type err
* fix: all type errors and warnings
* fix: type error in tests
* fix: Debug impl
* fix: singular value
* fix: err
* fix: avoid potential err of frontiers merging
* fix: a few test issues
* test: add frontiers tests
* fix: all test errors
* chore: fix warnings
* chore: rm testing code
* perf: optimize dag related performance
* chore: rm outdated marks
* refactor: frontiers's map variant should contains at least 2 elements
2024-10-16 16:22:36 +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
Zixuan Chen
270ee41a5e
docs: refine wasm docs
2024-10-14 09:42:22 +08:00
Zixuan Chen
cd36b5b656
chore: bump version
2024-10-09 19:30:25 +08:00
Zixuan Chen
9bfe97bce4
chore: bump version
2024-10-09 12:01:01 +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
Zixuan Chen
27e3a593a6
Perf: optimize speed of large maps ( #496 )
...
* perf: optimize speed of large maps
* chore: record current perf
* chore: throw error when clippy has warnings
2024-10-05 14:35:56 +08:00
Leon Zhao
405cbe047c
feat: add import status ( #494 )
2024-10-05 08:18:12 +08:00
Zixuan Chen
b117880fed
fix: type err
2024-10-04 09:55:49 +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
Zixuan Chen
812de54ad0
refactor: replace all .lock() with .try_lock()
...
to avoid deadlock when using Loro with multi-thread
2024-09-27 02:43:00 +08:00
Zixuan Chen
cec99f8f7e
feat: add clear methods ( #478 )
...
* feat: add clear method
* feat: expose clear fn to wasm and rust
2024-09-25 20:50:55 +08:00
Zixuan Chen
6bb424d65f
feat(wasm): commit message & get pending ops length ( #477 )
2024-09-25 20:38:10 +08:00
Zixuan Chen
18855bafd3
chore: bump version
2024-09-24 18:10:02 +08:00
Zixuan Chen
c6f1a4c0ae
fix(wasm): type err
2024-09-24 18:08:29 +08:00
Zixuan Chen
bef39ce6b5
Feat: allow editing on detached mode ( #473 )
...
* refactor: add detached editing config and prepare the architecture for editing detached doc
* feat: subscribe for peer id change
* fix: undo after checkout & add tests for detached editing
* test: add fuzzer for detached editing
* feat: expose detached editing configure to wasm
* test: add wasm test for detached editing
2024-09-24 11:16:59 +08:00
Zixuan Chen
9294648c8e
chore: 1.0-alpha.2
2024-09-23 10:20:28 +08:00
Leon Zhao
3fe619bc81
refactor: use hierarchy value for tree value ( #470 )
...
* refactor: use hierarchy value for tree value
* fix: get_container_deep_value_with_id
* feat: get tree nodes by flat format
2024-09-23 09:05:12 +08:00
Zixuan Chen
bb494df230
chore: bump version to v1.0.0-alpha.1
2024-09-20 18:16:49 +08:00
Leon Zhao
7f9bfa8a85
refactor: tree contains & isDeleted ( #467 )
2024-09-19 11:21:54 +08:00
Zixuan Chen
76803506b6
feat: add new cid method to js binding
2024-09-17 13:05:06 +08:00
Zixuan Chen
15175a1e5f
chore: update pkg files
2024-09-13 17:48:57 +08:00
Leon Zhao
f3b1482370
feat: get shallow value of doc ( #463 )
...
* feat: get shallow value
* chore: rename
2024-09-13 17:09:09 +08:00