json-patch-to-crdt 0.4.0 → 0.5.0
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/README.md +5 -0
- package/dist/{compact-CXfvMNCT.js → compact-CDvajUfn.js} +777 -227
- package/dist/{compact-BcwxBNx_.mjs → compact-Dj0BYeY5.mjs} +777 -227
- package/dist/{depth-CpJSyZE5.d.mts → depth-CM1kCxhm.d.mts} +30 -6
- package/dist/{depth-D88VeWb-.d.ts → depth-NbZ6Giq9.d.ts} +30 -6
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/internals.d.mts +11 -4
- package/dist/internals.d.ts +11 -4
- package/dist/internals.js +1 -1
- package/dist/internals.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -245,6 +245,11 @@ Advanced/internal helpers are available from:
|
|
|
245
245
|
import { crdtToJsonPatch, applyPatchAsActor } from "json-patch-to-crdt/internals";
|
|
246
246
|
```
|
|
247
247
|
|
|
248
|
+
`docFromJsonWithDot(...)` remains available on `./internals` as a deprecated legacy
|
|
249
|
+
fixture helper. It reuses a single seed dot across object nodes and synthesizes
|
|
250
|
+
array child counters from that seed, so production code should prefer
|
|
251
|
+
`docFromJson(value, nextDot)`.
|
|
252
|
+
|
|
248
253
|
## Notes
|
|
249
254
|
|
|
250
255
|
- Arrays use a CRDT sequence internally; concurrent inserts are preserved.
|