loro-crdt 1.16.1 → 1.16.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.16.3
4
+
5
+ ### Patch Changes
6
+
7
+ - a99b911: Reject inserting a container attached to another `LoroDoc` (directly or nested inside a detached container) with a recoverable error instead of trapping the WASM instance. The target doc is left unchanged.
8
+
9
+ ## 1.16.2
10
+
11
+ ### Patch Changes
12
+
13
+ - 5a80c15: Fix shallow snapshots that exported successfully but could not be imported into an empty document. The shallow root is now always a critical version of the retained history. Previously two shapes picked a root that other retained changes were concurrent with: a version with an odd number of independent heads, and a past version when a branch that forked below it was merged later.
14
+ - c7bd1c3: Preserve deleted-container state required by the history retained in `forkAt`
15
+ and snapshot-at exports. Historical diffs and checkouts can traverse deleted
16
+ list and text descendants without a missing-state panic. Containers created
17
+ after the requested frontier remain excluded.
18
+
19
+ Restore the source frontier after snapshot-at validation errors and preserve
20
+ explicit detached mode when exporting a document at its head.
21
+
22
+ - c3ffde6: Fix a panic followed by a deadlock when subscribing to an event source while
23
+ it is emitting, e.g. calling `subscribeLocalUpdates` or `subscribe` from inside
24
+ a callback, or subscribing on one thread while another thread commits or
25
+ imports. A subscriber added during an emit is now registered for later events;
26
+ it does not receive the event that is already being delivered.
27
+ - e2e41a3: Fix `LoroText.getCursor` at UTF-16 boundaries around non-BMP characters.
28
+ - be0e1ac: Accept tree snapshot state whose sibling nodes are not in fractional index
29
+ order, such as `snapshot`/`shallow-snapshot` exports from loro.js 0.1.0/0.2.0
30
+ after a tree `move()` (loro-dev/loro#1088). The decoder now sorts siblings by
31
+ their (fractional index, idlp) position instead of panicking with
32
+ `assertion failed: last.0 < pos` on the first read. Tree state with duplicate
33
+ node ids or duplicate sibling positions is rejected as a decode error.
34
+
3
35
  ## 1.16.1
4
36
 
5
37
  ### Patch Changes