Skip to content

Conversation

zxch3n
Copy link
Member

@zxch3n zxch3n commented Sep 7, 2025

  • diff: treat null as a present value when detecting added keys; guard container insertions with actual value type; fall back to value-based inference when schema/
    type mismatches occur and warn to avoid divergence.
  • mirror: gate consistency check by checkStateConsistency (not debug); include raw doc.toJSON() in divergence log for easier debugging.
  • state: add checkStateConsistency option to createStore and plumb through to Mirror.
  • test(core): add null-in-map consistency tests and stabilize existing state tests with explicit commits.
  • chore(deps): bump loro-crdt to ^1.7.0 across core/react/jotai and update lockfile.

- diff: treat null as a present value when detecting added keys; guard container insertions with actual value type; fall back to value-based inference when schema/
type mismatches occur and warn to avoid divergence.
- mirror: gate consistency check by checkStateConsistency (not debug); include raw doc.toJSON() in divergence log for easier debugging.
- state: add checkStateConsistency option to createStore and plumb through to Mirror.
- test(core): add null-in-map consistency tests and stabilize existing state tests with explicit commits.
- chore(deps): bump loro-crdt to ^1.7.0 across core/react/jotai and update lockfile.
@zxch3n zxch3n merged commit 3fc3965 into main Sep 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant