You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implements the ObjectOperation field changes specified in spec commit
47a9d51. Integration test updates ported from JS commit fdc33cb
(excluding the public API changes, since we don't yet expose any sort of
ObjectOperation, nor does the spec).
Note that this is the first time that we've had to bump the protocol
version in a way that affects LiveObjects, and here we're following the
process documented in the pinned plugin-support commit.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
// RTLM17a2: If ObjectsMapEntry.tombstone is true, apply the MAP_REMOVE operation
553
+
// RTLM23a2: If ObjectsMapEntry.tombstone is true, apply the MAP_REMOVE operation
550
554
// as described in RTLM8, passing in the current key as ObjectsMapOp, ObjectsMapEntry.timeserial as the operation's serial, and ObjectsMapEntry.serialTimestamp as the operation's serial timestamp
551
555
applyMapRemoveOperation(
552
556
key: key,
@@ -556,7 +560,7 @@ internal final class InternalDefaultLiveMap: Sendable {
556
560
clock: clock,
557
561
)
558
562
}else{
559
-
// RTLM17a1: If ObjectsMapEntry.tombstone is false, apply the MAP_SET operation
563
+
// RTLM23a1: If ObjectsMapEntry.tombstone is false, apply the MAP_SET operation
560
564
// as described in RTLM7, passing in ObjectsMapEntry.data and the current key as ObjectsMapOp, and ObjectsMapEntry.timeserial as the operation's serial
561
565
applyMapSetOperation(
562
566
key: key,
@@ -574,10 +578,10 @@ internal final class InternalDefaultLiveMap: Sendable {
574
578
[]
575
579
}
576
580
577
-
// RTLM17b: Set the private flag createOperationIsMerged to true
581
+
// RTLM23b: Set the private flag createOperationIsMerged to true
// I don't love having to use uniqueKeysWithValues, when I shouldn't have to. I should be able to reason _statically_ that there are no overlapping keys. The problem that we're trying to use LiveMapUpdate throughout instead of something more communicative. But I don't know what's to come in the spec so I don't want to mess with this internal interface.
0 commit comments