-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(tree): use SharedTree format version 3 by default (#21157)
- Loading branch information
1 parent
9ce3819
commit 8f8728f
Showing
35 changed files
with
24,317 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
packages/dds/tree/src/test/snapshots/op-format/v3/field change.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
[ | ||
{ | ||
"revision": -5, | ||
"originatorId": "00000000-0000-4000-b000-000000000000", | ||
"changeset": [ | ||
{ | ||
"data": { | ||
"maxId": 2, | ||
"changes": [ | ||
{ | ||
"fieldKey": "rootFieldKey", | ||
"fieldKind": "ModularEditBuilder.Generic", | ||
"change": [ | ||
[ | ||
0, | ||
{ | ||
"fieldChanges": [ | ||
{ | ||
"fieldKey": "x", | ||
"fieldKind": "Value", | ||
"change": { | ||
"r": { | ||
"e": false, | ||
"d": 1, | ||
"s": 0 | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
] | ||
} | ||
], | ||
"builds": { | ||
"builds": [ | ||
[ | ||
[ | ||
[ | ||
0, | ||
0 | ||
] | ||
] | ||
] | ||
], | ||
"trees": { | ||
"version": 1, | ||
"identifiers": [], | ||
"shapes": [ | ||
{ | ||
"c": { | ||
"type": "com.fluidframework.leaf.number", | ||
"value": true | ||
} | ||
} | ||
], | ||
"data": [ | ||
[ | ||
0, | ||
1 | ||
] | ||
] | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"version": 3 | ||
} | ||
] |
180 changes: 180 additions & 0 deletions
180
packages/dds/tree/src/test/snapshots/op-format/v3/schema change.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,180 @@ | ||
[ | ||
{ | ||
"revision": -4, | ||
"originatorId": "00000000-0000-4000-b000-000000000000", | ||
"changeset": [ | ||
{ | ||
"schema": { | ||
"new": { | ||
"version": 1, | ||
"nodes": { | ||
"com.fluidframework.leaf.number": { | ||
"leaf": 0 | ||
}, | ||
"snapshots.Point": { | ||
"object": { | ||
"x": { | ||
"kind": "Value", | ||
"types": [ | ||
"com.fluidframework.leaf.number" | ||
] | ||
}, | ||
"y": { | ||
"kind": "Value", | ||
"types": [ | ||
"com.fluidframework.leaf.number" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"root": { | ||
"kind": "Optional", | ||
"types": [ | ||
"snapshots.Point" | ||
] | ||
} | ||
}, | ||
"old": { | ||
"version": 1, | ||
"nodes": {}, | ||
"root": { | ||
"kind": "Forbidden", | ||
"types": [] | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"data": { | ||
"maxId": 1, | ||
"changes": [ | ||
{ | ||
"fieldKey": "rootFieldKey", | ||
"fieldKind": "Optional", | ||
"change": { | ||
"r": { | ||
"e": true, | ||
"d": 0, | ||
"s": 1 | ||
} | ||
} | ||
} | ||
], | ||
"builds": { | ||
"builds": [ | ||
[ | ||
[ | ||
[ | ||
1, | ||
0 | ||
] | ||
] | ||
] | ||
], | ||
"trees": { | ||
"version": 1, | ||
"identifiers": [], | ||
"shapes": [ | ||
{ | ||
"c": { | ||
"type": "com.fluidframework.leaf.number", | ||
"value": true | ||
} | ||
}, | ||
{ | ||
"c": { | ||
"type": "snapshots.Point", | ||
"value": false, | ||
"fields": [ | ||
[ | ||
"x", | ||
0 | ||
], | ||
[ | ||
"y", | ||
0 | ||
] | ||
] | ||
} | ||
} | ||
], | ||
"data": [ | ||
[ | ||
1, | ||
0, | ||
0 | ||
] | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"schema": { | ||
"new": { | ||
"version": 1, | ||
"nodes": { | ||
"com.fluidframework.leaf.number": { | ||
"leaf": 0 | ||
}, | ||
"snapshots.Point": { | ||
"object": { | ||
"x": { | ||
"kind": "Value", | ||
"types": [ | ||
"com.fluidframework.leaf.number" | ||
] | ||
}, | ||
"y": { | ||
"kind": "Value", | ||
"types": [ | ||
"com.fluidframework.leaf.number" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"root": { | ||
"kind": "Value", | ||
"types": [ | ||
"snapshots.Point" | ||
] | ||
} | ||
}, | ||
"old": { | ||
"version": 1, | ||
"nodes": { | ||
"com.fluidframework.leaf.number": { | ||
"leaf": 0 | ||
}, | ||
"snapshots.Point": { | ||
"object": { | ||
"x": { | ||
"kind": "Value", | ||
"types": [ | ||
"com.fluidframework.leaf.number" | ||
] | ||
}, | ||
"y": { | ||
"kind": "Value", | ||
"types": [ | ||
"com.fluidframework.leaf.number" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"root": { | ||
"kind": "Optional", | ||
"types": [ | ||
"snapshots.Point" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"version": 3 | ||
} | ||
] |
Oops, something went wrong.