loro-crdt 1.16.1 → 1.16.2

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,31 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.16.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 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.
8
+ - c7bd1c3: Preserve deleted-container state required by the history retained in `forkAt`
9
+ and snapshot-at exports. Historical diffs and checkouts can traverse deleted
10
+ list and text descendants without a missing-state panic. Containers created
11
+ after the requested frontier remain excluded.
12
+
13
+ Restore the source frontier after snapshot-at validation errors and preserve
14
+ explicit detached mode when exporting a document at its head.
15
+
16
+ - c3ffde6: Fix a panic followed by a deadlock when subscribing to an event source while
17
+ it is emitting, e.g. calling `subscribeLocalUpdates` or `subscribe` from inside
18
+ a callback, or subscribing on one thread while another thread commits or
19
+ imports. A subscriber added during an emit is now registered for later events;
20
+ it does not receive the event that is already being delivered.
21
+ - e2e41a3: Fix `LoroText.getCursor` at UTF-16 boundaries around non-BMP characters.
22
+ - be0e1ac: Accept tree snapshot state whose sibling nodes are not in fractional index
23
+ order, such as `snapshot`/`shallow-snapshot` exports from loro.js 0.1.0/0.2.0
24
+ after a tree `move()` (loro-dev/loro#1088). The decoder now sorts siblings by
25
+ their (fractional index, idlp) position instead of panicking with
26
+ `assertion failed: last.0 < pos` on the first read. Tree state with duplicate
27
+ node ids or duplicate sibling positions is rejected as a decode error.
28
+
3
29
  ## 1.16.1
4
30
 
5
31
  ### Patch Changes