@fluidframework/sequence 2.0.0-internal.1.4.1 → 2.0.0-internal.2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/defaultMap.d.ts.map +1 -1
- package/dist/defaultMap.js +1 -0
- package/dist/defaultMap.js.map +1 -1
- package/dist/index.d.ts +4 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/dist/intervalCollection.d.ts +271 -34
- package/dist/intervalCollection.d.ts.map +1 -1
- package/dist/intervalCollection.js +343 -97
- package/dist/intervalCollection.js.map +1 -1
- package/dist/intervalTree.d.ts +72 -0
- package/dist/intervalTree.d.ts.map +1 -0
- package/dist/intervalTree.js +91 -0
- package/dist/intervalTree.js.map +1 -0
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/sequence.d.ts +66 -15
- package/dist/sequence.d.ts.map +1 -1
- package/dist/sequence.js +73 -19
- package/dist/sequence.js.map +1 -1
- package/dist/sequenceDeltaEvent.d.ts +15 -1
- package/dist/sequenceDeltaEvent.d.ts.map +1 -1
- package/dist/sequenceDeltaEvent.js +2 -1
- package/dist/sequenceDeltaEvent.js.map +1 -1
- package/dist/sequenceFactory.d.ts +0 -89
- package/dist/sequenceFactory.d.ts.map +1 -1
- package/dist/sequenceFactory.js +2 -142
- package/dist/sequenceFactory.js.map +1 -1
- package/dist/sharedIntervalCollection.d.ts +0 -6
- package/dist/sharedIntervalCollection.d.ts.map +1 -1
- package/dist/sharedIntervalCollection.js +0 -7
- package/dist/sharedIntervalCollection.js.map +1 -1
- package/dist/sharedSequence.d.ts +2 -2
- package/dist/sharedString.d.ts +16 -15
- package/dist/sharedString.d.ts.map +1 -1
- package/dist/sharedString.js +96 -15
- package/dist/sharedString.js.map +1 -1
- package/lib/defaultMap.d.ts.map +1 -1
- package/lib/defaultMap.js +1 -0
- package/lib/defaultMap.js.map +1 -1
- package/lib/index.d.ts +4 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -4
- package/lib/index.js.map +1 -1
- package/lib/intervalCollection.d.ts +271 -34
- package/lib/intervalCollection.d.ts.map +1 -1
- package/lib/intervalCollection.js +341 -98
- package/lib/intervalCollection.js.map +1 -1
- package/lib/intervalTree.d.ts +72 -0
- package/lib/intervalTree.d.ts.map +1 -0
- package/lib/intervalTree.js +86 -0
- package/lib/intervalTree.js.map +1 -0
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/sequence.d.ts +66 -15
- package/lib/sequence.d.ts.map +1 -1
- package/lib/sequence.js +73 -19
- package/lib/sequence.js.map +1 -1
- package/lib/sequenceDeltaEvent.d.ts +15 -1
- package/lib/sequenceDeltaEvent.d.ts.map +1 -1
- package/lib/sequenceDeltaEvent.js +2 -1
- package/lib/sequenceDeltaEvent.js.map +1 -1
- package/lib/sequenceFactory.d.ts +0 -89
- package/lib/sequenceFactory.d.ts.map +1 -1
- package/lib/sequenceFactory.js +1 -139
- package/lib/sequenceFactory.js.map +1 -1
- package/lib/sharedIntervalCollection.d.ts +0 -6
- package/lib/sharedIntervalCollection.d.ts.map +1 -1
- package/lib/sharedIntervalCollection.js +0 -7
- package/lib/sharedIntervalCollection.js.map +1 -1
- package/lib/sharedSequence.d.ts +2 -2
- package/lib/sharedString.d.ts +16 -15
- package/lib/sharedString.d.ts.map +1 -1
- package/lib/sharedString.js +97 -16
- package/lib/sharedString.js.map +1 -1
- package/package.json +99 -27
- package/src/defaultMap.ts +3 -0
- package/src/index.ts +4 -4
- package/src/intervalCollection.ts +486 -143
- package/src/intervalTree.ts +166 -0
- package/src/packageVersion.ts +1 -1
- package/src/sequence.ts +86 -30
- package/src/sequenceDeltaEvent.ts +18 -4
- package/src/sequenceFactory.ts +2 -163
- package/src/sharedIntervalCollection.ts +0 -11
- package/src/sharedString.ts +120 -23
- package/tsconfig.json +0 -1
- package/dist/sharedNumberSequence.d.ts +0 -50
- package/dist/sharedNumberSequence.d.ts.map +0 -1
- package/dist/sharedNumberSequence.js +0 -61
- package/dist/sharedNumberSequence.js.map +0 -1
- package/dist/sharedObjectSequence.d.ts +0 -50
- package/dist/sharedObjectSequence.d.ts.map +0 -1
- package/dist/sharedObjectSequence.js +0 -61
- package/dist/sharedObjectSequence.js.map +0 -1
- package/dist/sparsematrix.d.ts +0 -152
- package/dist/sparsematrix.d.ts.map +0 -1
- package/dist/sparsematrix.js +0 -343
- package/dist/sparsematrix.js.map +0 -1
- package/lib/sharedNumberSequence.d.ts +0 -50
- package/lib/sharedNumberSequence.d.ts.map +0 -1
- package/lib/sharedNumberSequence.js +0 -57
- package/lib/sharedNumberSequence.js.map +0 -1
- package/lib/sharedObjectSequence.d.ts +0 -50
- package/lib/sharedObjectSequence.d.ts.map +0 -1
- package/lib/sharedObjectSequence.js +0 -57
- package/lib/sharedObjectSequence.js.map +0 -1
- package/lib/sparsematrix.d.ts +0 -152
- package/lib/sparsematrix.d.ts.map +0 -1
- package/lib/sparsematrix.js +0 -334
- package/lib/sparsematrix.js.map +0 -1
- package/src/sharedNumberSequence.ts +0 -62
- package/src/sharedObjectSequence.ts +0 -62
- package/src/sparsematrix.ts +0 -434
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/sequence",
|
|
3
|
-
"version": "2.0.0-internal.
|
|
3
|
+
"version": "2.0.0-internal.2.0.0",
|
|
4
4
|
"description": "Distributed sequence",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -68,29 +68,29 @@
|
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@fluidframework/common-definitions": "^0.20.1",
|
|
70
70
|
"@fluidframework/common-utils": "^1.0.0",
|
|
71
|
-
"@fluidframework/container-utils": "^2.0.0-internal.
|
|
72
|
-
"@fluidframework/core-interfaces": "^2.0.0-internal.
|
|
73
|
-
"@fluidframework/datastore-definitions": "^2.0.0-internal.
|
|
74
|
-
"@fluidframework/merge-tree": "^2.0.0-internal.
|
|
75
|
-
"@fluidframework/protocol-definitions": "^1.
|
|
76
|
-
"@fluidframework/runtime-definitions": "^2.0.0-internal.
|
|
77
|
-
"@fluidframework/runtime-utils": "^2.0.0-internal.
|
|
78
|
-
"@fluidframework/shared-object-base": "^2.0.0-internal.
|
|
79
|
-
"@fluidframework/telemetry-utils": "^2.0.0-internal.
|
|
71
|
+
"@fluidframework/container-utils": "^2.0.0-internal.2.0.0",
|
|
72
|
+
"@fluidframework/core-interfaces": "^2.0.0-internal.2.0.0",
|
|
73
|
+
"@fluidframework/datastore-definitions": "^2.0.0-internal.2.0.0",
|
|
74
|
+
"@fluidframework/merge-tree": "^2.0.0-internal.2.0.0",
|
|
75
|
+
"@fluidframework/protocol-definitions": "^1.1.0",
|
|
76
|
+
"@fluidframework/runtime-definitions": "^2.0.0-internal.2.0.0",
|
|
77
|
+
"@fluidframework/runtime-utils": "^2.0.0-internal.2.0.0",
|
|
78
|
+
"@fluidframework/shared-object-base": "^2.0.0-internal.2.0.0",
|
|
79
|
+
"@fluidframework/telemetry-utils": "^2.0.0-internal.2.0.0",
|
|
80
80
|
"uuid": "^8.3.1"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@fluid-internal/stochastic-test-utils": "^2.0.0-internal.
|
|
84
|
-
"@fluid-internal/test-dds-utils": "^2.0.0-internal.
|
|
83
|
+
"@fluid-internal/stochastic-test-utils": "^2.0.0-internal.2.0.0",
|
|
84
|
+
"@fluid-internal/test-dds-utils": "^2.0.0-internal.2.0.0",
|
|
85
85
|
"@fluid-tools/benchmark": "^0.43.0",
|
|
86
86
|
"@fluidframework/build-common": "^1.0.0",
|
|
87
|
-
"@fluidframework/build-tools": "^0.4.
|
|
87
|
+
"@fluidframework/build-tools": "^0.4.6000",
|
|
88
88
|
"@fluidframework/eslint-config-fluid": "^1.0.0",
|
|
89
|
-
"@fluidframework/gitresources": "^0.
|
|
90
|
-
"@fluidframework/mocha-test-setup": "^2.0.0-internal.
|
|
91
|
-
"@fluidframework/sequence-previous": "npm:@fluidframework/sequence
|
|
92
|
-
"@fluidframework/server-services-client": "^0.
|
|
93
|
-
"@fluidframework/test-runtime-utils": "^2.0.0-internal.
|
|
89
|
+
"@fluidframework/gitresources": "^0.1038.2000",
|
|
90
|
+
"@fluidframework/mocha-test-setup": "^2.0.0-internal.2.0.0",
|
|
91
|
+
"@fluidframework/sequence-previous": "npm:@fluidframework/sequence@>=2.0.0-internal.1.4.0 <2.0.0-internal.2.0.0",
|
|
92
|
+
"@fluidframework/server-services-client": "^0.1038.2000",
|
|
93
|
+
"@fluidframework/test-runtime-utils": "^2.0.0-internal.2.0.0",
|
|
94
94
|
"@microsoft/api-extractor": "^7.22.2",
|
|
95
95
|
"@rushstack/eslint-config": "^2.5.1",
|
|
96
96
|
"@types/diff": "^3.5.1",
|
|
@@ -112,14 +112,80 @@
|
|
|
112
112
|
"typeValidation": {
|
|
113
113
|
"version": "2.0.0",
|
|
114
114
|
"broken": {
|
|
115
|
-
"
|
|
115
|
+
"InterfaceDeclaration_ISharedIntervalCollection": {
|
|
116
116
|
"backCompat": false
|
|
117
117
|
},
|
|
118
|
-
"
|
|
119
|
-
"backCompat": false
|
|
118
|
+
"RemovedClassDeclaration_SharedNumberSequence": {
|
|
119
|
+
"backCompat": false,
|
|
120
|
+
"forwardCompat": false
|
|
121
|
+
},
|
|
122
|
+
"RemovedClassDeclaration_SharedNumberSequenceFactory": {
|
|
123
|
+
"backCompat": false,
|
|
124
|
+
"forwardCompat": false
|
|
125
|
+
},
|
|
126
|
+
"RemovedClassDeclaration_SharedObjectSequence": {
|
|
127
|
+
"backCompat": false,
|
|
128
|
+
"forwardCompat": false
|
|
129
|
+
},
|
|
130
|
+
"RemovedClassDeclaration_SharedObjectSequenceFactory": {
|
|
131
|
+
"backCompat": false,
|
|
132
|
+
"forwardCompat": false
|
|
133
|
+
},
|
|
134
|
+
"RemovedTypeAliasDeclaration_MatrixSegment": {
|
|
135
|
+
"backCompat": false,
|
|
136
|
+
"forwardCompat": false
|
|
137
|
+
},
|
|
138
|
+
"RemovedVariableDeclaration_maxCellPosition": {
|
|
139
|
+
"backCompat": false,
|
|
140
|
+
"forwardCompat": false
|
|
141
|
+
},
|
|
142
|
+
"RemovedVariableDeclaration_maxCol": {
|
|
143
|
+
"backCompat": false,
|
|
144
|
+
"forwardCompat": false
|
|
145
|
+
},
|
|
146
|
+
"RemovedVariableDeclaration_maxCols": {
|
|
147
|
+
"backCompat": false,
|
|
148
|
+
"forwardCompat": false
|
|
149
|
+
},
|
|
150
|
+
"RemovedVariableDeclaration_maxRow": {
|
|
151
|
+
"backCompat": false,
|
|
152
|
+
"forwardCompat": false
|
|
153
|
+
},
|
|
154
|
+
"RemovedVariableDeclaration_maxRows": {
|
|
155
|
+
"backCompat": false,
|
|
156
|
+
"forwardCompat": false
|
|
157
|
+
},
|
|
158
|
+
"RemovedClassDeclaration_PaddingSegment": {
|
|
159
|
+
"backCompat": false,
|
|
160
|
+
"forwardCompat": false
|
|
161
|
+
},
|
|
162
|
+
"RemovedFunctionDeclaration_positionToRowCol": {
|
|
163
|
+
"backCompat": false,
|
|
164
|
+
"forwardCompat": false
|
|
165
|
+
},
|
|
166
|
+
"RemovedVariableDeclaration_rowColToPosition": {
|
|
167
|
+
"backCompat": false,
|
|
168
|
+
"forwardCompat": false
|
|
169
|
+
},
|
|
170
|
+
"RemovedClassDeclaration_RunSegment": {
|
|
171
|
+
"backCompat": false,
|
|
172
|
+
"forwardCompat": false
|
|
173
|
+
},
|
|
174
|
+
"RemovedClassDeclaration_SparseMatrix": {
|
|
175
|
+
"backCompat": false,
|
|
176
|
+
"forwardCompat": false
|
|
177
|
+
},
|
|
178
|
+
"RemovedClassDeclaration_SparseMatrixFactory": {
|
|
179
|
+
"backCompat": false,
|
|
180
|
+
"forwardCompat": false
|
|
181
|
+
},
|
|
182
|
+
"RemovedTypeAliasDeclaration_SparseMatrixItem": {
|
|
183
|
+
"backCompat": false,
|
|
184
|
+
"forwardCompat": false
|
|
120
185
|
},
|
|
121
186
|
"InterfaceDeclaration_ISharedString": {
|
|
122
|
-
"backCompat": false
|
|
187
|
+
"backCompat": false,
|
|
188
|
+
"forwardCompat": false
|
|
123
189
|
},
|
|
124
190
|
"ClassDeclaration_SequenceEvent": {
|
|
125
191
|
"backCompat": false
|
|
@@ -127,6 +193,9 @@
|
|
|
127
193
|
"ClassDeclaration_SequenceDeltaEvent": {
|
|
128
194
|
"backCompat": false
|
|
129
195
|
},
|
|
196
|
+
"ClassDeclaration_SharedIntervalCollection": {
|
|
197
|
+
"backCompat": false
|
|
198
|
+
},
|
|
130
199
|
"ClassDeclaration_SequenceMaintenanceEvent": {
|
|
131
200
|
"backCompat": false
|
|
132
201
|
},
|
|
@@ -137,18 +206,21 @@
|
|
|
137
206
|
"backCompat": false
|
|
138
207
|
},
|
|
139
208
|
"ClassDeclaration_SharedSegmentSequence": {
|
|
140
|
-
"backCompat": false
|
|
209
|
+
"backCompat": false,
|
|
210
|
+
"forwardCompat": false
|
|
141
211
|
},
|
|
142
212
|
"ClassDeclaration_SharedSequence": {
|
|
143
|
-
"backCompat": false
|
|
213
|
+
"backCompat": false,
|
|
214
|
+
"forwardCompat": false
|
|
144
215
|
},
|
|
145
216
|
"ClassDeclaration_SharedString": {
|
|
146
|
-
"backCompat": false
|
|
217
|
+
"backCompat": false,
|
|
218
|
+
"forwardCompat": false
|
|
147
219
|
},
|
|
148
|
-
"
|
|
220
|
+
"ClassDeclaration_SparseMatrix": {
|
|
149
221
|
"backCompat": false
|
|
150
222
|
},
|
|
151
|
-
"
|
|
223
|
+
"ClassDeclaration_Interval": {
|
|
152
224
|
"backCompat": false
|
|
153
225
|
}
|
|
154
226
|
}
|
package/src/defaultMap.ts
CHANGED
|
@@ -400,6 +400,9 @@ export class DefaultMap<T> {
|
|
|
400
400
|
},
|
|
401
401
|
resubmit: (op: IMapValueTypeOperation, localOpMetadata: IMapMessageLocalMetadata) => {
|
|
402
402
|
const localValue = this.data.get(op.key);
|
|
403
|
+
|
|
404
|
+
assert(localValue !== undefined, 0x3f8 /* Local value expected on resubmission */);
|
|
405
|
+
|
|
403
406
|
const handler = localValue.getOpHandler(op.value.opName);
|
|
404
407
|
const {
|
|
405
408
|
rebasedOp,
|
package/src/index.ts
CHANGED
|
@@ -6,9 +6,10 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* Supports distributed data structures which are list-like.
|
|
8
8
|
*
|
|
9
|
-
* This library's main export is {@link
|
|
9
|
+
* This library's main export is {@link SharedString}, a DDS for storing and simultaneously editing a sequence of
|
|
10
10
|
* text.
|
|
11
11
|
*
|
|
12
|
+
* See the package's README for a high-level introduction to `SharedString`'s feature set.
|
|
12
13
|
* @remarks Note that SharedString is a sequence DDS but it has additional specialized features and behaviors for
|
|
13
14
|
* working with text.
|
|
14
15
|
*
|
|
@@ -30,6 +31,7 @@ export {
|
|
|
30
31
|
SequenceInterval,
|
|
31
32
|
ISerializedIntervalCollectionV2,
|
|
32
33
|
CompressedSerializedInterval,
|
|
34
|
+
SerializedIntervalDelta,
|
|
33
35
|
} from "./intervalCollection";
|
|
34
36
|
export {
|
|
35
37
|
IMapMessageLocalMetadata,
|
|
@@ -40,7 +42,5 @@ export * from "./sequence";
|
|
|
40
42
|
export * from "./sequenceFactory";
|
|
41
43
|
export * from "./sequenceDeltaEvent";
|
|
42
44
|
export * from "./sharedSequence";
|
|
43
|
-
export * from "./sharedObjectSequence";
|
|
44
|
-
export * from "./sharedNumberSequence";
|
|
45
|
-
export * from "./sparsematrix";
|
|
46
45
|
export * from "./sharedIntervalCollection";
|
|
46
|
+
export { IInterval, IntervalConflictResolver } from "./intervalTree";
|