@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.
Files changed (117) hide show
  1. package/dist/defaultMap.d.ts.map +1 -1
  2. package/dist/defaultMap.js +1 -0
  3. package/dist/defaultMap.js.map +1 -1
  4. package/dist/index.d.ts +4 -5
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +2 -4
  7. package/dist/index.js.map +1 -1
  8. package/dist/intervalCollection.d.ts +271 -34
  9. package/dist/intervalCollection.d.ts.map +1 -1
  10. package/dist/intervalCollection.js +343 -97
  11. package/dist/intervalCollection.js.map +1 -1
  12. package/dist/intervalTree.d.ts +72 -0
  13. package/dist/intervalTree.d.ts.map +1 -0
  14. package/dist/intervalTree.js +91 -0
  15. package/dist/intervalTree.js.map +1 -0
  16. package/dist/packageVersion.d.ts +1 -1
  17. package/dist/packageVersion.js +1 -1
  18. package/dist/packageVersion.js.map +1 -1
  19. package/dist/sequence.d.ts +66 -15
  20. package/dist/sequence.d.ts.map +1 -1
  21. package/dist/sequence.js +73 -19
  22. package/dist/sequence.js.map +1 -1
  23. package/dist/sequenceDeltaEvent.d.ts +15 -1
  24. package/dist/sequenceDeltaEvent.d.ts.map +1 -1
  25. package/dist/sequenceDeltaEvent.js +2 -1
  26. package/dist/sequenceDeltaEvent.js.map +1 -1
  27. package/dist/sequenceFactory.d.ts +0 -89
  28. package/dist/sequenceFactory.d.ts.map +1 -1
  29. package/dist/sequenceFactory.js +2 -142
  30. package/dist/sequenceFactory.js.map +1 -1
  31. package/dist/sharedIntervalCollection.d.ts +0 -6
  32. package/dist/sharedIntervalCollection.d.ts.map +1 -1
  33. package/dist/sharedIntervalCollection.js +0 -7
  34. package/dist/sharedIntervalCollection.js.map +1 -1
  35. package/dist/sharedSequence.d.ts +2 -2
  36. package/dist/sharedString.d.ts +16 -15
  37. package/dist/sharedString.d.ts.map +1 -1
  38. package/dist/sharedString.js +96 -15
  39. package/dist/sharedString.js.map +1 -1
  40. package/lib/defaultMap.d.ts.map +1 -1
  41. package/lib/defaultMap.js +1 -0
  42. package/lib/defaultMap.js.map +1 -1
  43. package/lib/index.d.ts +4 -5
  44. package/lib/index.d.ts.map +1 -1
  45. package/lib/index.js +2 -4
  46. package/lib/index.js.map +1 -1
  47. package/lib/intervalCollection.d.ts +271 -34
  48. package/lib/intervalCollection.d.ts.map +1 -1
  49. package/lib/intervalCollection.js +341 -98
  50. package/lib/intervalCollection.js.map +1 -1
  51. package/lib/intervalTree.d.ts +72 -0
  52. package/lib/intervalTree.d.ts.map +1 -0
  53. package/lib/intervalTree.js +86 -0
  54. package/lib/intervalTree.js.map +1 -0
  55. package/lib/packageVersion.d.ts +1 -1
  56. package/lib/packageVersion.js +1 -1
  57. package/lib/packageVersion.js.map +1 -1
  58. package/lib/sequence.d.ts +66 -15
  59. package/lib/sequence.d.ts.map +1 -1
  60. package/lib/sequence.js +73 -19
  61. package/lib/sequence.js.map +1 -1
  62. package/lib/sequenceDeltaEvent.d.ts +15 -1
  63. package/lib/sequenceDeltaEvent.d.ts.map +1 -1
  64. package/lib/sequenceDeltaEvent.js +2 -1
  65. package/lib/sequenceDeltaEvent.js.map +1 -1
  66. package/lib/sequenceFactory.d.ts +0 -89
  67. package/lib/sequenceFactory.d.ts.map +1 -1
  68. package/lib/sequenceFactory.js +1 -139
  69. package/lib/sequenceFactory.js.map +1 -1
  70. package/lib/sharedIntervalCollection.d.ts +0 -6
  71. package/lib/sharedIntervalCollection.d.ts.map +1 -1
  72. package/lib/sharedIntervalCollection.js +0 -7
  73. package/lib/sharedIntervalCollection.js.map +1 -1
  74. package/lib/sharedSequence.d.ts +2 -2
  75. package/lib/sharedString.d.ts +16 -15
  76. package/lib/sharedString.d.ts.map +1 -1
  77. package/lib/sharedString.js +97 -16
  78. package/lib/sharedString.js.map +1 -1
  79. package/package.json +99 -27
  80. package/src/defaultMap.ts +3 -0
  81. package/src/index.ts +4 -4
  82. package/src/intervalCollection.ts +486 -143
  83. package/src/intervalTree.ts +166 -0
  84. package/src/packageVersion.ts +1 -1
  85. package/src/sequence.ts +86 -30
  86. package/src/sequenceDeltaEvent.ts +18 -4
  87. package/src/sequenceFactory.ts +2 -163
  88. package/src/sharedIntervalCollection.ts +0 -11
  89. package/src/sharedString.ts +120 -23
  90. package/tsconfig.json +0 -1
  91. package/dist/sharedNumberSequence.d.ts +0 -50
  92. package/dist/sharedNumberSequence.d.ts.map +0 -1
  93. package/dist/sharedNumberSequence.js +0 -61
  94. package/dist/sharedNumberSequence.js.map +0 -1
  95. package/dist/sharedObjectSequence.d.ts +0 -50
  96. package/dist/sharedObjectSequence.d.ts.map +0 -1
  97. package/dist/sharedObjectSequence.js +0 -61
  98. package/dist/sharedObjectSequence.js.map +0 -1
  99. package/dist/sparsematrix.d.ts +0 -152
  100. package/dist/sparsematrix.d.ts.map +0 -1
  101. package/dist/sparsematrix.js +0 -343
  102. package/dist/sparsematrix.js.map +0 -1
  103. package/lib/sharedNumberSequence.d.ts +0 -50
  104. package/lib/sharedNumberSequence.d.ts.map +0 -1
  105. package/lib/sharedNumberSequence.js +0 -57
  106. package/lib/sharedNumberSequence.js.map +0 -1
  107. package/lib/sharedObjectSequence.d.ts +0 -50
  108. package/lib/sharedObjectSequence.d.ts.map +0 -1
  109. package/lib/sharedObjectSequence.js +0 -57
  110. package/lib/sharedObjectSequence.js.map +0 -1
  111. package/lib/sparsematrix.d.ts +0 -152
  112. package/lib/sparsematrix.d.ts.map +0 -1
  113. package/lib/sparsematrix.js +0 -334
  114. package/lib/sparsematrix.js.map +0 -1
  115. package/src/sharedNumberSequence.ts +0 -62
  116. package/src/sharedObjectSequence.ts +0 -62
  117. 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.1.4.1",
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.1.4.1",
72
- "@fluidframework/core-interfaces": "^2.0.0-internal.1.4.1",
73
- "@fluidframework/datastore-definitions": "^2.0.0-internal.1.4.1",
74
- "@fluidframework/merge-tree": "^2.0.0-internal.1.4.1",
75
- "@fluidframework/protocol-definitions": "^1.0.0",
76
- "@fluidframework/runtime-definitions": "^2.0.0-internal.1.4.1",
77
- "@fluidframework/runtime-utils": "^2.0.0-internal.1.4.1",
78
- "@fluidframework/shared-object-base": "^2.0.0-internal.1.4.1",
79
- "@fluidframework/telemetry-utils": "^2.0.0-internal.1.4.1",
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.1.4.1",
84
- "@fluid-internal/test-dds-utils": "^2.0.0-internal.1.4.1",
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.4000",
87
+ "@fluidframework/build-tools": "^0.4.6000",
88
88
  "@fluidframework/eslint-config-fluid": "^1.0.0",
89
- "@fluidframework/gitresources": "^0.1037.2001",
90
- "@fluidframework/mocha-test-setup": "^2.0.0-internal.1.4.1",
91
- "@fluidframework/sequence-previous": "npm:@fluidframework/sequence@^1.0.0",
92
- "@fluidframework/server-services-client": "^0.1037.2001",
93
- "@fluidframework/test-runtime-utils": "^2.0.0-internal.1.4.1",
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
- "ClassDeclaration_IntervalCollection": {
115
+ "InterfaceDeclaration_ISharedIntervalCollection": {
116
116
  "backCompat": false
117
117
  },
118
- "ClassDeclaration_SequenceInterval": {
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
- "TypeAliasDeclaration_SharedStringSegment": {
220
+ "ClassDeclaration_SparseMatrix": {
149
221
  "backCompat": false
150
222
  },
151
- "ClassDeclaration_SparseMatrix": {
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 SharedSequence}, a DDS for storing and simultaneously editing a sequence of
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";