Commit Graph

269 Commits

Author SHA1 Message Date
Kevin Jahns
4d582748c1 more generic gedDelta implementation (could be used for events) 2025-07-25 16:07:31 +02:00
Kevin Jahns
b646654df1 be able to intersect idmaps and idsets 2025-07-25 16:07:31 +02:00
Kevin Jahns
fc620617df lint & fix tests 2025-07-25 16:07:31 +02:00
Kevin Jahns
cb191e744e [y.text] event returns delta - fix a bunch of bugs 2025-07-25 16:07:31 +02:00
Kevin Jahns
0efa4dd2a7 [diffing] event returns delta class object, migrate away from legacy deltas, work on snapshots using attribution manager. WIP 2025-07-25 16:07:28 +02:00
Kevin Jahns
7528541713 bump y-protocols 2025-07-25 16:06:39 +02:00
Kevin Jahns
d8143efb12 fix nicks test 2025-07-25 16:06:02 +02:00
Kevin Jahns
a43f1983c5 [AttributionManager] auto-updates on doc changes and can destroy itself 2025-07-25 16:06:02 +02:00
Kevin Jahns
2daad96c12 implement idset.delete & idmap.delete 2025-07-25 16:06:02 +02:00
Kevin Jahns
df4a424793 lint 2025-07-25 16:03:30 +02:00
Kevin Jahns
af2ccc741f add an simple attributions example 2025-07-25 16:03:30 +02:00
Kevin Jahns
527e382f8a implement createAttributionsManagerFromDiff that automatically handles gc 2025-07-25 16:03:30 +02:00
Kevin Jahns
1722c8a36f Implement & test getContentDeep for all types. Improve ability to compare things using lib0/traits. 2025-07-25 16:03:30 +02:00
Kevin Jahns
4f840247a3 implement and test getContent on all types 2025-07-25 16:03:30 +02:00
Kevin Jahns
b3171c535f getContent on Y.Map 2025-07-25 16:03:30 +02:00
Kevin Jahns
d399756eec more work on optimizing. Improve the test case. 2025-07-25 16:03:30 +02:00
Kevin Jahns
f5e2a4d4f4 add test case for finding a type in another ydoc 2025-07-25 16:03:30 +02:00
Kevin Jahns
fbfe0e0eeb working on performance 2025-07-25 16:03:30 +02:00
Kevin Jahns
69786f7ee5 add another example and create a writeup for attributing content. 2025-07-25 16:03:30 +02:00
Kevin Jahns
768d6b1cb2 perf tests toDelta vs getContent 2025-07-25 16:03:30 +02:00
Kevin Jahns
7de9476e27 attribution tests for adding and removing attributes 2025-07-25 16:03:30 +02:00
Kevin Jahns
3c37699392 basic attribution test working 2025-07-25 16:03:30 +02:00
Kevin Jahns
6671071213 first test case for attributions 2025-07-25 16:03:30 +02:00
Kevin Jahns
2e2968e71b attributions and fixes to idmap 2025-07-25 16:03:30 +02:00
Kevin Jahns
5f5cf343a8 implement base AttributionManager class and use in Y.Text 2025-07-25 16:03:30 +02:00
Kevin Jahns
f78a7d009e more renames (ds=>idset) 2025-07-25 16:03:30 +02:00
Kevin Jahns
065f268b00 more renames (am=>idmap) 2025-07-25 16:03:30 +02:00
Kevin Jahns
99bcafe193 efficient encoding & decoding of IdMaps 2025-07-25 16:03:30 +02:00
Kevin Jahns
2d87301af2 implement attribution class that is de-duplicated in IdMap 2025-07-25 16:03:30 +02:00
Kevin Jahns
1d025ae73f rename AttributionManager=>IdMap
The "AttributionManager" will be an abstract class that maps data
(probably using IdMap(s))
2025-07-25 16:03:30 +02:00
Kevin Jahns
a36075161a diffing of attribution manager state 2025-07-25 16:03:30 +02:00
Kevin Jahns
8908bd21dc [am] fixed tests 2025-07-25 16:03:30 +02:00
Kevin Jahns
a6ae65d32c Work on AttributionManager 2025-07-25 16:03:30 +02:00
Kevin Jahns
6360297e33 doc maintains ds 2025-07-25 16:03:30 +02:00
Kevin Jahns
46347ee6ec rename DeleteSet=>IdSet and add utilities and perf improvements 2025-07-25 16:03:16 +02:00
Kevin Jahns
c554bd754d add test case for insertSet 2025-07-25 15:58:25 +02:00
Kevin Jahns
0d3a149738 add randomized tests for ds 2025-07-25 15:58:25 +02:00
Kevin Jahns
e13fc602a8 implement support for diffing deletesets 2025-07-25 15:58:25 +02:00
Kevin Jahns
cfe67c1f8c basic delta implementation 2025-07-25 15:58:24 +02:00
Kevin Jahns
4738944446 Run tests without compilation. optimize testHelper output. 2025-07-25 15:58:24 +02:00
hyonun321
f4fa053272 fix typos
- Fix 'randon' to 'random' in tests/testHelper.js
- Fix 'successfull' to 'successful' in funding.json
2025-06-25 21:06:12 +09:00
Kevin Jahns
35c030d834 improve reject update example 2025-03-06 10:36:18 +01:00
Kevin Jahns
e3739bce8e test example for rejecting updates 2025-03-05 14:15:26 +01:00
Kevin Jahns
69d4a5c821 [UndoManager] support global undo 2025-03-04 14:42:19 +01:00
Viktor Szépe
f18eab2dfe Fix typos 2025-01-03 18:11:43 +00:00
Kevin Jahns
f583d2a211 fix #657 - relative positions issue when using followUndoneDeletions=false 2024-12-21 00:52:48 +01:00
Kevin Jahns
4404d090e4 add nodejs specific tests 2024-12-18 14:34:33 +01:00
Kevin Jahns
8152cf81cb [#667] sanity checks for Yjs caveats. In dev_mode, objects inserted into Yjs can't be manipulated. 2024-10-04 21:23:59 +02:00
Kevin Jahns
0678ed1eb5 fix event.path in observeDeep - closes #457 2024-06-10 12:18:16 +02:00
Kevin Jahns
ce43124ad0 [relative-positions] add option to configure whether to follow redon insertions - #638 2024-04-27 00:24:49 +02:00