yjs_dart 1.1.3
yjs_dart: ^1.1.3 copied to clipboard
A pure Dart translation of the Yjs CRDT library (yjs v14.0.0-22) and y-protocols (v1.0.5), with no external dependencies. Maintains a 1:1 structural mapping to the JavaScript source for easy diff-base [...]
Changelog #
1.1.3 #
- Fix:
GC.getMissing()added — was missing, causingNoSuchMethodErrorduring struct integration (_integrateStructscalls it dynamically on all struct types). - Fix:
readStructSetauto-registers unknown root-level parent types asYMapinstead of silently dropping their items. Mirrors JS Yjs lazy type creation. - Silent: Commented out pre-existing library
print()calls insync.dart,event_handler.dart, andabstract_type.dartso Flutter apps stay clean in production. - Tests: Added
test/regression_test.dartwith 17 regression tests covering the above fixes,Doc.getlazy creation, multi-root sync, and binary round-trips.
1.1.2 #
- Exports: Exposed
lib0utilities (Observable,encoding,decoding) for advanced usage.
1.1.1 #
- Exports: Exposed
y-protocols(Sync, Awareness, Auth) viayjs_dart.dart.- Auth:
writePermissionDenied,readAuthMessage,messagePermissionDenied. - Awareness:
Awareness,encodeAwarenessUpdate,applyAwarenessUpdate,removeAwarenessStates,modifyAwarenessUpdate. - Sync:
writeSyncStep1,writeSyncStep2,readSyncStep1,readSyncStep2,writeUpdate,readUpdate,readSyncMessage.
- Auth:
1.1.0 #
- Refactor: Replaced the monolithic
YTypewith strict subclasses:YArray,YMap,YText, andYXmlFragment. - Type Safety: significantly improved type safety by removing
dynamiccalls in internal structures. - API Update:
Doc.getnow offers typed helpers:getArray,getMap,getText. - Compatibility: Maintained full binary compatibility with Yjs v14.0.0-22.
- Fix: Resolved
avoid_dynamic_callslints in core structural classes.
1.0.0 #
- Initial stable release.
- Full implementation of Yjs CRDT algorithms (v14.0.0-22).
- Support for
YText,YArray,YMap,YXmlviaYType. - Binary compatibility with Yjs v1 & v2 encoding.
- Complete Sync, Awareness, and Auth protocols.
- Implemented
toDeltafor rich text export.