Pawel Piotrowicz
67c809ee6b
fix undoing setAttribute combined with delete corrupts remote state - closes #757
...
When an attribute change and a delete on the same XmlText are bundled in
a single undo stack item, the redone attribute item kept an `origin`
pointing at an item under the now-deleted original parent. The encoder
then omitted parent info (origin was non-null), and the remote derived
parent from origin -- attaching the attribute to the wrong, deleted
type. The restored attribute went missing on sync.
In redoItem, after determining `left` for parentSub items, drop it if
it refers to a different parent than the redo target. This forces the
encoder to write parent info directly, so the remote attaches the
attribute to the correct (redone) parent.
2026-05-08 11:33:21 +02:00
Kevin Jahns
0504939a75
lint
2026-03-14 14:03:01 +01:00
Kevin Jahns
5d5f1ad6fa
fix mutation of DeleteItem in sortAndMergeDeleteSet - closes #767
2026-03-14 13:56:56 +01: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
Kevin Jahns
6beab79eb4
add tests for falsy formatting attributes - #619
2024-03-01 11:39:31 +01:00
Kevin Jahns
541306b254
migrate to ObservableV2
2024-02-29 17:08:57 +01:00
Kevin Jahns
29fa60ccf9
[Undo] add UndoManager.currStackItem
2024-02-29 14:46:43 +01:00
Myles J
917261a1ce
Facilitate referencing UndoManager StackItem inside Type observers
2024-02-29 00:50:36 +00:00
Kevin Jahns
e1bce03ed8
better typings for ydoc.get
2024-02-09 23:27:24 +01:00
Raine Revere
16d9638bc8
Add ydoc.getXmlElement
2024-02-05 13:35:32 +00:00
Kevin Jahns
1cb52dc863
fix Y.Text formatting issue - closes #606
2024-01-21 11:27:12 +01:00
Kevin Jahns
2c0daeb071
implement snapshot API for yxml.getAttributes. implements #543
2023-11-21 12:24:21 +01:00
Kevin Jahns
c2e7076400
add iterator type checks
2023-11-20 12:53:58 +01:00
Kevin Jahns
90f2a06b5e
throw error when event changes are computed after a transaction
2023-06-27 13:20:53 +02:00
Noel Levy
5d862477cd
invalidate cached path when changing currentTarget of event
...
fixes #544
2023-06-19 11:31:45 -07:00
Kevin Jahns
719858201a
implement snapshotContainsUpdate
2023-06-08 11:14:49 +02:00
Kevin Jahns
83712cb1a6
update typings of getAttributes
2023-05-04 11:26:11 +02:00
Kevin Jahns
adaa95ebb8
add example to createDocFromSnapshot - #159
2023-04-27 18:08:28 +02:00
Kevin Jahns
39167e6e2a
Implement function that obfuscates a ydoc and scrambles its content
2023-04-22 18:39:29 +02:00
Kevin Jahns
49f435284f
lint
2023-04-03 14:10:26 +02:00
Kevin Jahns
ba96f2fe74
implement fix for #500 . extends #515
2023-04-03 14:02:37 +02:00
Dominik Henneke
99bab4a1d8
Fix lint errors
2023-04-03 14:02:37 +02:00
Dominik Henneke
1674d3986d
Restore deleted entries in a map
2023-04-03 14:02:37 +02:00
Kevin Jahns
cb70d7bad3
fix typings and lib0 resolution
2023-03-21 11:14:37 +01:00
Kevin Jahns
2001bec8eb
modernize tsconfig
2023-03-11 12:20:52 +01:00
Kevin Jahns
227018f5c7
toDelta doesnt create transaction - fixes #506
2023-03-11 09:13:27 +01:00
Kevin Jahns
da8bacfc78
add tests for complex Y.Text deltas
2023-03-10 12:53:48 +01:00
Kevin Jahns
fe48efe64f
fix generating too many cleanup transactions. closes #506
2023-03-09 13:45:13 +01:00
Kevin Jahns
bf338d8040
fix attribute update issue - fixes #503
2023-03-02 19:08:01 +01:00
Kevin Jahns
1c999b250e
fix #474 - formatting bug
2023-02-14 16:19:22 +01:00
Kevin Jahns
e9189365ee
add debugging case for #474 - unfininished
2023-02-13 14:27:57 +01:00
Kevin Jahns
7445a9ce5f
add whenSynced and isSynced property with refined logic
2023-01-31 12:56:07 +01:00
Kevin Jahns
7f6c12a541
bump typescript and fix type issues
2023-01-31 12:16:03 +01:00
Neftaly Hernandez
d29de75f85
Add test for Y.Array.from
2023-01-23 06:41:57 +00:00
Kevin Jahns
3ece681758
allow transactions within event handlers having different origins
2022-11-30 12:09:19 +01:00
Kevin Jahns
7395229086
Port test from @PatrickShaw #432 . Allow infinite captureTimeout in UndoManager #431 . Closes #432
2022-10-18 16:45:30 +02:00
Kevin Jahns
df2d59e2fb
UndoManager: fix special deletion case. closes #447 closes #443
2022-07-28 14:12:21 +02:00
Kevin Jahns
6fa8778fc7
add doc parameter to UndoManager
2022-07-22 14:22:46 +02:00
Kevin Jahns
14c14de21e
simplify testhelper
2022-04-20 18:01:33 +02:00
Kevin Jahns
a22b3cdbc1
add option to UndoManager to ignore remote map changes. implements #390
2022-03-26 10:29:19 +01:00
Kevin Jahns
6b8cef29e2
address #398
2022-03-20 23:58:14 +01:00