@fluidframework/sequence 2.10.0 → 2.12.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/CHANGELOG.md CHANGED
@@ -1,5 +1,50 @@
1
1
  # @fluidframework/sequence
2
2
 
3
+ ## 2.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Merge-Tree and SharedString ISegment Deprecations ([#23323](https://github.com/microsoft/FluidFramework/pull/23323)) [e8762e37cd](https://github.com/microsoft/FluidFramework/commit/e8762e37cd5edbad36b78b5a40d62a730522e18f)
8
+
9
+ The current ISegment interface over-exposes a number of properties which do not have an external use case, and any external usage could result in damage to the underlying merge-tree including data corruption.
10
+
11
+ The only use case that will continue to be supported is determining if a segment is removed. For this purpose we've added the free function `segmentIsRemoved(segment: ISegment): boolean`.
12
+
13
+ For example, checking if a segment is not removed would change as follows:
14
+
15
+ ```diff
16
+ - if(segment.removedSeq === undefined){
17
+ + if(!segmentIsRemoved(segment)){
18
+ ```
19
+
20
+ The following properties are deprecated on ISegment and its implementations:
21
+
22
+ - clientId
23
+ - index
24
+ - localMovedSeq
25
+ - localRefs
26
+ - localRemovedSeq
27
+ - localSeq
28
+ - movedClientsIds
29
+ - movedSeq
30
+ - movedSeqs
31
+ - ordinal
32
+ - removedClientIds
33
+ - removedSeq
34
+ - seq
35
+ - wasMovedOnInsert
36
+
37
+ Additionally, the following types are also deprecated, and will become internal (i.e. users of the Fluid Framework will not have access to them):
38
+
39
+ - IMergeNodeCommon
40
+ - IMoveInfo
41
+ - IRemovalInfo
42
+ - LocalReferenceCollection
43
+
44
+ ## 2.11.0
45
+
46
+ Dependency updates only.
47
+
3
48
  ## 2.10.0
4
49
 
5
50
  ### Minor Changes
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluidframework/sequence";
8
- export declare const pkgVersion = "2.10.0";
8
+ export declare const pkgVersion = "2.12.0";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -8,5 +8,5 @@
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.pkgVersion = exports.pkgName = void 0;
10
10
  exports.pkgName = "@fluidframework/sequence";
11
- exports.pkgVersion = "2.10.0";
11
+ exports.pkgVersion = "2.12.0";
12
12
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,0BAA0B,CAAC;AACrC,QAAA,UAAU,GAAG,QAAQ,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/sequence\";\nexport const pkgVersion = \"2.10.0\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,0BAA0B,CAAC;AACrC,QAAA,UAAU,GAAG,QAAQ,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/sequence\";\nexport const pkgVersion = \"2.12.0\";\n"]}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluidframework/sequence";
8
- export declare const pkgVersion = "2.10.0";
8
+ export declare const pkgVersion = "2.12.0";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export const pkgName = "@fluidframework/sequence";
8
- export const pkgVersion = "2.10.0";
8
+ export const pkgVersion = "2.12.0";
9
9
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,0BAA0B,CAAC;AAClD,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/sequence\";\nexport const pkgVersion = \"2.10.0\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,0BAA0B,CAAC;AAClD,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/sequence\";\nexport const pkgVersion = \"2.12.0\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/sequence",
3
- "version": "2.10.0",
3
+ "version": "2.12.0",
4
4
  "description": "Distributed sequence",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -79,33 +79,33 @@
79
79
  "temp-directory": "nyc/.nyc_output"
80
80
  },
81
81
  "dependencies": {
82
- "@fluid-internal/client-utils": "~2.10.0",
83
- "@fluidframework/core-interfaces": "~2.10.0",
84
- "@fluidframework/core-utils": "~2.10.0",
85
- "@fluidframework/datastore-definitions": "~2.10.0",
86
- "@fluidframework/driver-definitions": "~2.10.0",
87
- "@fluidframework/merge-tree": "~2.10.0",
88
- "@fluidframework/runtime-definitions": "~2.10.0",
89
- "@fluidframework/runtime-utils": "~2.10.0",
90
- "@fluidframework/shared-object-base": "~2.10.0",
91
- "@fluidframework/telemetry-utils": "~2.10.0",
82
+ "@fluid-internal/client-utils": "~2.12.0",
83
+ "@fluidframework/core-interfaces": "~2.12.0",
84
+ "@fluidframework/core-utils": "~2.12.0",
85
+ "@fluidframework/datastore-definitions": "~2.12.0",
86
+ "@fluidframework/driver-definitions": "~2.12.0",
87
+ "@fluidframework/merge-tree": "~2.12.0",
88
+ "@fluidframework/runtime-definitions": "~2.12.0",
89
+ "@fluidframework/runtime-utils": "~2.12.0",
90
+ "@fluidframework/shared-object-base": "~2.12.0",
91
+ "@fluidframework/telemetry-utils": "~2.12.0",
92
92
  "double-ended-queue": "^2.1.0-0",
93
93
  "uuid": "^9.0.0"
94
94
  },
95
95
  "devDependencies": {
96
- "@arethetypeswrong/cli": "^0.16.4",
96
+ "@arethetypeswrong/cli": "^0.17.1",
97
97
  "@biomejs/biome": "~1.9.3",
98
- "@fluid-internal/mocha-test-setup": "~2.10.0",
99
- "@fluid-private/stochastic-test-utils": "~2.10.0",
100
- "@fluid-private/test-dds-utils": "~2.10.0",
98
+ "@fluid-internal/mocha-test-setup": "~2.12.0",
99
+ "@fluid-private/stochastic-test-utils": "~2.12.0",
100
+ "@fluid-private/test-dds-utils": "~2.12.0",
101
101
  "@fluid-tools/benchmark": "^0.50.0",
102
102
  "@fluid-tools/build-cli": "^0.51.0",
103
103
  "@fluidframework/build-common": "^2.0.3",
104
104
  "@fluidframework/build-tools": "^0.51.0",
105
- "@fluidframework/container-definitions": "~2.10.0",
106
- "@fluidframework/eslint-config-fluid": "^5.4.0",
107
- "@fluidframework/sequence-previous": "npm:@fluidframework/sequence@2.5.0",
108
- "@fluidframework/test-runtime-utils": "~2.10.0",
105
+ "@fluidframework/container-definitions": "~2.12.0",
106
+ "@fluidframework/eslint-config-fluid": "^5.6.0",
107
+ "@fluidframework/sequence-previous": "npm:@fluidframework/sequence@2.11.0",
108
+ "@fluidframework/test-runtime-utils": "~2.12.0",
109
109
  "@microsoft/api-extractor": "7.47.8",
110
110
  "@types/diff": "^3.5.1",
111
111
  "@types/double-ended-queue": "^2.1.0",
@@ -136,92 +136,7 @@
136
136
  }
137
137
  },
138
138
  "typeValidation": {
139
- "broken": {
140
- "ClassStatics_SequenceDeltaEvent": {
141
- "backCompat": false
142
- },
143
- "ClassStatics_SequenceEvent": {
144
- "backCompat": false
145
- },
146
- "ClassStatics_SequenceInterval": {
147
- "backCompat": false
148
- },
149
- "ClassStatics_SequenceMaintenanceEvent": {
150
- "backCompat": false
151
- },
152
- "Class_BaseSegment": {
153
- "backCompat": false
154
- },
155
- "Class_Marker": {
156
- "backCompat": false
157
- },
158
- "Class_SequenceDeltaEvent": {
159
- "backCompat": false
160
- },
161
- "Class_SequenceEvent": {
162
- "backCompat": false
163
- },
164
- "Class_SequenceInterval": {
165
- "backCompat": false
166
- },
167
- "Class_SequenceMaintenanceEvent": {
168
- "backCompat": false
169
- },
170
- "Class_TextSegment": {
171
- "backCompat": false
172
- },
173
- "Class_TrackingGroup": {
174
- "backCompat": false
175
- },
176
- "ClassStatics_BaseSegment": {
177
- "backCompat": false
178
- },
179
- "ClassStatics_Marker": {
180
- "backCompat": false
181
- },
182
- "ClassStatics_TextSegment": {
183
- "backCompat": false
184
- },
185
- "ClassStatics_TrackingGroup": {
186
- "backCompat": false
187
- },
188
- "Interface_ISegment": {
189
- "backCompat": false
190
- },
191
- "Interface_ISequenceDeltaRange": {
192
- "backCompat": false
193
- },
194
- "Interface_ISerializableInterval": {
195
- "backCompat": false
196
- },
197
- "Interface_ReferencePosition": {
198
- "backCompat": false
199
- },
200
- "TypeAlias_IntervalRevertible": {
201
- "backCompat": false
202
- },
203
- "TypeAlias_SharedStringRevertible": {
204
- "backCompat": false
205
- },
206
- "TypeAlias_SharedStringSegment": {
207
- "backCompat": false
208
- },
209
- "Class_SharedSegmentSequence": {
210
- "forwardCompat": false
211
- },
212
- "Class_SharedStringClass": {
213
- "forwardCompat": false
214
- },
215
- "Interface_ISharedSegmentSequence": {
216
- "forwardCompat": false
217
- },
218
- "Interface_ISharedString": {
219
- "forwardCompat": false
220
- },
221
- "TypeAlias_SharedString": {
222
- "forwardCompat": false
223
- }
224
- },
139
+ "broken": {},
225
140
  "entrypoint": "legacy"
226
141
  },
227
142
  "scripts": {
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/sequence";
9
- export const pkgVersion = "2.10.0";
9
+ export const pkgVersion = "2.12.0";