@fluidframework/sequence 2.0.0-internal.6.1.0 → 2.0.0-internal.6.2.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 +44 -0
- package/README.md +4 -3
- package/dist/defaultMapInterfaces.d.ts +1 -1
- package/dist/defaultMapInterfaces.d.ts.map +1 -1
- package/dist/defaultMapInterfaces.js.map +1 -1
- package/dist/intervalCollection.d.ts +1 -41
- package/dist/intervalCollection.d.ts.map +1 -1
- package/dist/intervalCollection.js +1 -20
- package/dist/intervalCollection.js.map +1 -1
- package/dist/intervals/sequenceInterval.js +2 -2
- package/dist/intervals/sequenceInterval.js.map +1 -1
- 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 +22 -1
- package/dist/sequence.d.ts.map +1 -1
- package/dist/sequence.js +52 -6
- package/dist/sequence.js.map +1 -1
- package/dist/sharedSequence.d.ts +9 -0
- package/dist/sharedSequence.d.ts.map +1 -1
- package/dist/sharedSequence.js +6 -0
- package/dist/sharedSequence.js.map +1 -1
- package/dist/sharedString.d.ts.map +1 -1
- package/dist/sharedString.js +6 -6
- package/dist/sharedString.js.map +1 -1
- package/lib/defaultMapInterfaces.d.ts +1 -1
- package/lib/defaultMapInterfaces.d.ts.map +1 -1
- package/lib/defaultMapInterfaces.js.map +1 -1
- package/lib/intervalCollection.d.ts +1 -41
- package/lib/intervalCollection.d.ts.map +1 -1
- package/lib/intervalCollection.js +1 -20
- package/lib/intervalCollection.js.map +1 -1
- package/lib/intervals/sequenceInterval.js +1 -1
- package/lib/intervals/sequenceInterval.js.map +1 -1
- 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 +22 -1
- package/lib/sequence.d.ts.map +1 -1
- package/lib/sequence.js +54 -7
- package/lib/sequence.js.map +1 -1
- package/lib/sharedSequence.d.ts +9 -0
- package/lib/sharedSequence.d.ts.map +1 -1
- package/lib/sharedSequence.js +6 -0
- package/lib/sharedSequence.js.map +1 -1
- package/lib/sharedString.d.ts.map +1 -1
- package/lib/sharedString.js +6 -6
- package/lib/sharedString.js.map +1 -1
- package/package.json +18 -20
- package/src/defaultMapInterfaces.ts +1 -1
- package/src/intervalCollection.ts +2 -43
- package/src/intervals/sequenceInterval.ts +1 -1
- package/src/packageVersion.ts +1 -1
- package/src/sequence.ts +78 -8
- package/src/sharedSequence.ts +9 -0
- package/src/sharedString.ts +8 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# @fluidframework/sequence
|
|
2
2
|
|
|
3
|
+
## 2.0.0-internal.6.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Deprecate getStackContext and associated NestBegin/End ([#16877](https://github.com/microsoft/FluidFramework/issues/16877)) [8e743fe1dd](https://github.com/microsoft/FluidFramework/commits/8e743fe1dde9adb3a1240971987d3abd51ab2fbe)
|
|
8
|
+
|
|
9
|
+
Deprecate SharedSegmentSequence.getStackContext and Client.getStackContext (and the enums ReferenceType.NestBegin and NestEnd they use).
|
|
10
|
+
This functionality is unused, poorly tested, and incurs performance overhead.
|
|
11
|
+
|
|
12
|
+
- Remove use of @fluidframework/common-definitions ([#16638](https://github.com/microsoft/FluidFramework/issues/16638)) [a8c81509c9](https://github.com/microsoft/FluidFramework/commits/a8c81509c9bf09cfb2092ebcf7265205f9eb6dbf)
|
|
13
|
+
|
|
14
|
+
The **@fluidframework/common-definitions** package is being deprecated, so the following interfaces and types are now
|
|
15
|
+
imported from the **@fluidframework/core-interfaces** package:
|
|
16
|
+
|
|
17
|
+
- interface IDisposable
|
|
18
|
+
- interface IErrorEvent
|
|
19
|
+
- interface IErrorEvent
|
|
20
|
+
- interface IEvent
|
|
21
|
+
- interface IEventProvider
|
|
22
|
+
- interface ILoggingError
|
|
23
|
+
- interface ITaggedTelemetryPropertyType
|
|
24
|
+
- interface ITelemetryBaseEvent
|
|
25
|
+
- interface ITelemetryBaseLogger
|
|
26
|
+
- interface ITelemetryErrorEvent
|
|
27
|
+
- interface ITelemetryGenericEvent
|
|
28
|
+
- interface ITelemetryLogger
|
|
29
|
+
- interface ITelemetryPerformanceEvent
|
|
30
|
+
- interface ITelemetryProperties
|
|
31
|
+
- type ExtendEventProvider
|
|
32
|
+
- type IEventThisPlaceHolder
|
|
33
|
+
- type IEventTransformer
|
|
34
|
+
- type ReplaceIEventThisPlaceHolder
|
|
35
|
+
- type ReplaceIEventThisPlaceHolder
|
|
36
|
+
- type TelemetryEventCategory
|
|
37
|
+
- type TelemetryEventPropertyType
|
|
38
|
+
|
|
39
|
+
- Deprecate SharedSequence, SubSequence, and IJSONRunSegment ([#16829](https://github.com/microsoft/FluidFramework/issues/16829)) [0cf2b6d909](https://github.com/microsoft/FluidFramework/commits/0cf2b6d9098c7ef4234b66c5d7d169192db40d15)
|
|
40
|
+
|
|
41
|
+
The types SharedSequence, SubSequence, and IJSONRunSegment are being deprecated and moved.
|
|
42
|
+
|
|
43
|
+
They are now, and will continue to be exposed from the @fluid-experimental/sequence-deprecated package.
|
|
44
|
+
|
|
45
|
+
New usages of these types should not be added, but they may be necessary for migration.
|
|
46
|
+
|
|
3
47
|
## 2.0.0-internal.6.1.0
|
|
4
48
|
|
|
5
49
|
Dependency updates only.
|
package/README.md
CHANGED
|
@@ -11,9 +11,10 @@ When taking a dependency on a Fluid Framework library, we recommend using a `^`
|
|
|
11
11
|
While Fluid Framework libraries may use different ranges with interdependencies between other Fluid Framework libraries,
|
|
12
12
|
library consumers should always prefer `^`.
|
|
13
13
|
|
|
14
|
-
Note that when depending on a library version of the form 2.0.0-internal.x.y.z
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
Note that when depending on a library version of the form `2.0.0-internal.x.y.z`, called the Fluid internal version scheme,
|
|
15
|
+
you must use a `>= <` dependency range (such as `>=2.0.0-internal.x.y.z <2.0.0-internal.w.0.0` where `w` is `x+1`).
|
|
16
|
+
Standard `^` and `~` ranges will not work as expected.
|
|
17
|
+
See the [@fluid-tools/version-tools](https://github.com/microsoft/FluidFramework/blob/main/build-tools/packages/version-tools/README.md)
|
|
17
18
|
package for more information including tools to convert between version schemes.
|
|
18
19
|
|
|
19
20
|
<!-- prettier-ignore-end -->
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { ISequencedDocumentMessage } from "@fluidframework/protocol-definitions";
|
|
6
6
|
import { ISharedObjectEvents } from "@fluidframework/shared-object-base";
|
|
7
|
-
import { IEventThisPlaceHolder } from "@fluidframework/
|
|
7
|
+
import { IEventThisPlaceHolder } from "@fluidframework/core-interfaces";
|
|
8
8
|
/**
|
|
9
9
|
* Type of "valueChanged" event parameter.
|
|
10
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultMapInterfaces.d.ts","sourceRoot":"","sources":["../src/defaultMapInterfaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"defaultMapInterfaces.d.ts","sourceRoot":"","sources":["../src/defaultMapInterfaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAExE;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,aAAa,EAAE,GAAG,CAAC;CACnB;AAED;;;GAGG;AACH,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IAE1B;;;OAGG;IACH,GAAG,EAAE,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB;IACnE,CACC,KAAK,EAAE,cAAc,GAAG,QAAQ,EAChC,QAAQ,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,qBAAqB,KAAK,IAAI,OACxF;CACF;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,kBAAkB;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,GAAG,CAAC;CACX;AAED,MAAM,WAAW,gBAAgB;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,wBAAwB;IACxC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,GAAG,CAAC;CACX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultMapInterfaces.js","sourceRoot":"","sources":["../src/defaultMapInterfaces.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { ISequencedDocumentMessage } from \"@fluidframework/protocol-definitions\";\nimport { ISharedObjectEvents } from \"@fluidframework/shared-object-base\";\nimport { IEventThisPlaceHolder } from \"@fluidframework/
|
|
1
|
+
{"version":3,"file":"defaultMapInterfaces.js","sourceRoot":"","sources":["../src/defaultMapInterfaces.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { ISequencedDocumentMessage } from \"@fluidframework/protocol-definitions\";\nimport { ISharedObjectEvents } from \"@fluidframework/shared-object-base\";\nimport { IEventThisPlaceHolder } from \"@fluidframework/core-interfaces\";\n\n/**\n * Type of \"valueChanged\" event parameter.\n */\nexport interface IValueChanged {\n\t/**\n\t * The key storing the value that changed.\n\t */\n\tkey: string;\n\n\t/**\n\t * The value that was stored at the key prior to the change.\n\t */\n\tpreviousValue: any;\n}\n\n/**\n * Value types are given an IValueOpEmitter to emit their ops through the container type that holds them.\n * @internal\n */\nexport interface IValueOpEmitter {\n\t/**\n\t * Called by the value type to emit a value type operation through the container type holding it.\n\t * @param opName - Name of the emitted operation\n\t * @param previousValue - JSONable previous value as defined by the value type\n\t * @param params - JSONable params for the operation as defined by the value type\n\t * @param localOpMetadata - JSONable local metadata which should be submitted with the op\n\t * @internal\n\t */\n\temit(\n\t\topName: string,\n\t\tpreviousValue: any,\n\t\tparams: any,\n\t\tlocalOpMetadata: IMapMessageLocalMetadata,\n\t): void;\n}\n\n/**\n * @internal\n */\nexport interface IMapMessageLocalMetadata {\n\tlocalSeq: number;\n}\n\n/**\n * Optional flags that configure options for sequence DDSs\n */\nexport interface SequenceOptions {\n\t/**\n\t * Enable {@link (IntervalStickiness:type) | interval stickiness}\n\t * other than \"end\"\n\t */\n\tintervalStickinessEnabled: boolean;\n\t[key: string]: boolean;\n}\n\n/**\n * A value factory is used to serialize/deserialize value types to a map\n * @alpha\n */\nexport interface IValueFactory<T> {\n\t/**\n\t * Create a new value type. Used both in creation of new value types, as well as in loading existing ones\n\t * from remote.\n\t * @param emitter - Emitter object that the created value type will use to emit operations\n\t * @param raw - Initialization parameters as defined by the value type\n\t * @returns The new value type\n\t * @alpha\n\t */\n\tload(emitter: IValueOpEmitter, raw: any, options?: Partial<SequenceOptions>): T;\n\n\t/**\n\t * Given a value type, provides a JSONable form of its data to be used for snapshotting. This data must be\n\t * loadable using the load method of its factory.\n\t * @param value - The value type to serialize\n\t * @returns The JSONable form of the value type\n\t * @alpha\n\t */\n\tstore(value: T): any;\n}\n\n/**\n * Defines an operation that a value type is able to handle.\n * @alpha\n */\nexport interface IValueOperation<T> {\n\t/**\n\t * Performs the actual processing on the incoming operation.\n\t * @param value - The current value stored at the given key, which should be the value type\n\t * @param params - The params on the incoming operation\n\t * @param local - Whether the operation originated from this client\n\t * @param message - The operation itself\n\t * @param localOpMetadata - any local metadata submitted by `IValueOpEmitter.emit`.\n\t * @alpha\n\t */\n\tprocess(\n\t\tvalue: T,\n\t\tparams: any,\n\t\tlocal: boolean,\n\t\tmessage: ISequencedDocumentMessage | undefined,\n\t\tlocalOpMetadata: IMapMessageLocalMetadata | undefined,\n\t);\n\n\t/**\n\t * Rebases an `op` on `value` from its original perspective (ref/local seq) to the current\n\t * perspective. Should be invoked on reconnection.\n\t * @param value - The current value stored at the given key, which should be the value type.\n\t * @param op - The op to be rebased.\n\t * @param localOpMetadata - Any local metadata that was originally submitted with the op.\n\t * @returns A rebased version of the op and any local metadata that should be submitted with it.\n\t */\n\trebase(\n\t\tvalue: T,\n\t\top: IValueTypeOperationValue,\n\t\tlocalOpMetadata: IMapMessageLocalMetadata,\n\t): { rebasedOp: IValueTypeOperationValue; rebasedLocalOpMetadata: IMapMessageLocalMetadata };\n}\n\n/**\n * Defines a value type that can be registered on a container type.\n */\nexport interface IValueType<T> {\n\t/**\n\t * Name of the value type.\n\t * @alpha\n\t */\n\tname: string;\n\n\t/**\n\t * Factory method used to convert to/from a JSON form of the type.\n\t * @alpha\n\t */\n\tfactory: IValueFactory<T>;\n\n\t/**\n\t * Operations that can be applied to the value type.\n\t * @alpha\n\t */\n\tops: Map<string, IValueOperation<T>>;\n}\n\nexport interface ISharedDefaultMapEvents extends ISharedObjectEvents {\n\t(\n\t\tevent: \"valueChanged\" | \"create\",\n\t\tlistener: (changed: IValueChanged, local: boolean, target: IEventThisPlaceHolder) => void,\n\t);\n}\n\n/**\n * The _ready-for-serialization_ format of values contained in DDS contents. This allows us to use\n * ISerializableValue.type to understand whether they're storing a Plain JS object, a SharedObject, or a value type.\n * Note that the in-memory equivalent of ISerializableValue is ILocalValue (similarly holding a type, but with\n * the _in-memory representation_ of the value instead). An ISerializableValue is what gets passed to\n * JSON.stringify and comes out of JSON.parse. This format is used both for snapshots (loadCore/populate)\n * and ops (set).\n *\n * The DefaultMap impelmentation for sequence has been specialized to only support a single ValueType, which serializes\n * and deserializes via .store() and .load().\n */\nexport interface ISerializableValue {\n\t/**\n\t * A type annotation to help indicate how the value serializes.\n\t */\n\ttype: string;\n\n\t/**\n\t * The JSONable representation of the value.\n\t */\n\tvalue: any;\n}\n\nexport interface ISerializedValue {\n\t/**\n\t * A type annotation to help indicate how the value serializes.\n\t */\n\ttype: string;\n\n\t/**\n\t * String representation of the value.\n\t */\n\tvalue: string | undefined;\n}\n\n/**\n * ValueTypes handle ops slightly differently from SharedObjects or plain JS objects. Since the Map/Directory doesn't\n * know how to handle the ValueType's ops, those ops are instead passed along to the ValueType for processing.\n * IValueTypeOperationValue is that passed-along op. The opName on it is the ValueType-specific operation and the\n * value is whatever params the ValueType needs to complete that operation. Similar to ISerializableValue, it is\n * serializable via JSON.stringify/parse but differs in that it has no equivalency with an in-memory value - rather\n * it just describes an operation to be applied to an already-in-memory value.\n * @alpha\n */\nexport interface IValueTypeOperationValue {\n\t/**\n\t * The name of the operation.\n\t */\n\topName: string;\n\n\t/**\n\t * The payload that is submitted along with the operation.\n\t */\n\tvalue: any;\n}\n"]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
import { TypedEventEmitter } from "@fluidframework/common-utils";
|
|
6
|
-
import { IEvent } from "@fluidframework/
|
|
6
|
+
import { IEvent } from "@fluidframework/core-interfaces";
|
|
7
7
|
import { Client, PropertySet, LocalReferencePosition } from "@fluidframework/merge-tree";
|
|
8
8
|
import { ISequencedDocumentMessage } from "@fluidframework/protocol-definitions";
|
|
9
9
|
import { IMapMessageLocalMetadata, IValueFactory, IValueOpEmitter, IValueOperation, IValueType, SequenceOptions } from "./defaultMapInterfaces";
|
|
@@ -179,26 +179,18 @@ export interface IIntervalCollection<TInterval extends ISerializableInterval> ex
|
|
|
179
179
|
[Symbol.iterator](): Iterator<TInterval>;
|
|
180
180
|
/**
|
|
181
181
|
* @returns a forward iterator over all intervals in this collection with start point equal to `startPosition`.
|
|
182
|
-
*
|
|
183
|
-
* @deprecated - The sequence order of collection order will not be supported
|
|
184
182
|
*/
|
|
185
183
|
CreateForwardIteratorWithStartPosition(startPosition: number): Iterator<TInterval>;
|
|
186
184
|
/**
|
|
187
185
|
* @returns a backward iterator over all intervals in this collection with start point equal to `startPosition`.
|
|
188
|
-
*
|
|
189
|
-
* @deprecated - The sequence order of collection order will not be supported
|
|
190
186
|
*/
|
|
191
187
|
CreateBackwardIteratorWithStartPosition(startPosition: number): Iterator<TInterval>;
|
|
192
188
|
/**
|
|
193
189
|
* @returns a forward iterator over all intervals in this collection with end point equal to `endPosition`.
|
|
194
|
-
*
|
|
195
|
-
* @deprecated - The sequence order of collection order will not be supported
|
|
196
190
|
*/
|
|
197
191
|
CreateForwardIteratorWithEndPosition(endPosition: number): Iterator<TInterval>;
|
|
198
192
|
/**
|
|
199
193
|
* @returns a backward iterator over all intervals in this collection with end point equal to `endPosition`.
|
|
200
|
-
*
|
|
201
|
-
* @deprecated - The sequence order of collection order will not be supported
|
|
202
194
|
*/
|
|
203
195
|
CreateBackwardIteratorWithEndPosition(endPosition: number): Iterator<TInterval>;
|
|
204
196
|
/**
|
|
@@ -208,32 +200,18 @@ export interface IIntervalCollection<TInterval extends ISerializableInterval> ex
|
|
|
208
200
|
* @param iteratesForward - whether or not iteration should be in the forward direction
|
|
209
201
|
* @param start - If provided, only match intervals whose start point is equal to `start`.
|
|
210
202
|
* @param end - If provided, only match intervals whose end point is equal to `end`.
|
|
211
|
-
*
|
|
212
|
-
* @deprecated - This API will be deprecated as its functionality will be moved to the `OverlappingIntervalsIndex`.
|
|
213
|
-
* We would like the user to attach the index to the collection on their own.
|
|
214
203
|
*/
|
|
215
204
|
gatherIterationResults(results: TInterval[], iteratesForward: boolean, start?: number, end?: number): void;
|
|
216
205
|
/**
|
|
217
206
|
* @returns an array of all intervals in this collection that overlap with the interval
|
|
218
207
|
* `[startPosition, endPosition]`.
|
|
219
|
-
*
|
|
220
|
-
* @deprecated - This API will be deprecated as its functionality will be moved to the `OverlappingIntervalsIndex`.
|
|
221
|
-
* We would like the user to attach the index to the collection on their own.
|
|
222
208
|
*/
|
|
223
209
|
findOverlappingIntervals(startPosition: number, endPosition: number): TInterval[];
|
|
224
210
|
/**
|
|
225
211
|
* Applies a function to each interval in this collection.
|
|
226
212
|
*/
|
|
227
213
|
map(fn: (interval: TInterval) => void): void;
|
|
228
|
-
/**
|
|
229
|
-
* @deprecated - This API will be deprecated as its functionality will be moved to the `EndpointIndex`.
|
|
230
|
-
* We would like the user to attach the index to the collection on their own.
|
|
231
|
-
*/
|
|
232
214
|
previousInterval(pos: number): TInterval | undefined;
|
|
233
|
-
/**
|
|
234
|
-
* @deprecated - This API will be deprecated as its functionality will be moved to the `EndpointIndex`.
|
|
235
|
-
* We would like the user to attach the index to the collection on their own.
|
|
236
|
-
*/
|
|
237
215
|
nextInterval(pos: number): TInterval | undefined;
|
|
238
216
|
}
|
|
239
217
|
/**
|
|
@@ -330,38 +308,26 @@ export declare class IntervalCollection<TInterval extends ISerializableInterval>
|
|
|
330
308
|
[Symbol.iterator](): IntervalCollectionIterator<TInterval>;
|
|
331
309
|
/**
|
|
332
310
|
* {@inheritdoc IIntervalCollection.CreateForwardIteratorWithStartPosition}
|
|
333
|
-
*
|
|
334
|
-
* @deprecated - The sequence order of collection order will not be supported
|
|
335
311
|
*/
|
|
336
312
|
CreateForwardIteratorWithStartPosition(startPosition: number): IntervalCollectionIterator<TInterval>;
|
|
337
313
|
/**
|
|
338
314
|
* {@inheritdoc IIntervalCollection.CreateBackwardIteratorWithStartPosition}
|
|
339
|
-
*
|
|
340
|
-
* @deprecated - The sequence order of collection order will not be supported
|
|
341
315
|
*/
|
|
342
316
|
CreateBackwardIteratorWithStartPosition(startPosition: number): IntervalCollectionIterator<TInterval>;
|
|
343
317
|
/**
|
|
344
318
|
* {@inheritdoc IIntervalCollection.CreateForwardIteratorWithEndPosition}
|
|
345
|
-
*
|
|
346
|
-
* @deprecated - The sequence order of collection order will not be supported
|
|
347
319
|
*/
|
|
348
320
|
CreateForwardIteratorWithEndPosition(endPosition: number): IntervalCollectionIterator<TInterval>;
|
|
349
321
|
/**
|
|
350
322
|
* {@inheritdoc IIntervalCollection.CreateBackwardIteratorWithEndPosition}
|
|
351
|
-
*
|
|
352
|
-
* @deprecated - The sequence order of collection order will not be supported
|
|
353
323
|
*/
|
|
354
324
|
CreateBackwardIteratorWithEndPosition(endPosition: number): IntervalCollectionIterator<TInterval>;
|
|
355
325
|
/**
|
|
356
326
|
* {@inheritdoc IIntervalCollection.gatherIterationResults}
|
|
357
|
-
* @deprecated - This API will be deprecated as its functionality will be moved to the `OverlappingIntervalsIndex`.
|
|
358
|
-
* We would like the user to attach the index to the collection on their own.
|
|
359
327
|
*/
|
|
360
328
|
gatherIterationResults(results: TInterval[], iteratesForward: boolean, start?: number, end?: number): void;
|
|
361
329
|
/**
|
|
362
330
|
* {@inheritdoc IIntervalCollection.findOverlappingIntervals}
|
|
363
|
-
* @deprecated - This API will be deprecated as its functionality will be moved to the `OverlappingIntervalsIndex`.
|
|
364
|
-
* We would like the user to attach the index to the collection on their own.
|
|
365
331
|
*/
|
|
366
332
|
findOverlappingIntervals(startPosition: number, endPosition: number): TInterval[];
|
|
367
333
|
/**
|
|
@@ -370,16 +336,10 @@ export declare class IntervalCollection<TInterval extends ISerializableInterval>
|
|
|
370
336
|
map(fn: (interval: TInterval) => void): void;
|
|
371
337
|
/**
|
|
372
338
|
* {@inheritdoc IIntervalCollection.previousInterval}
|
|
373
|
-
*
|
|
374
|
-
* @deprecated - This API will be deprecated as its functionality will be moved to the `EndpointIndex`.
|
|
375
|
-
* We would like the user to attach the index to the collection on their own.
|
|
376
339
|
*/
|
|
377
340
|
previousInterval(pos: number): TInterval | undefined;
|
|
378
341
|
/**
|
|
379
342
|
* {@inheritdoc IIntervalCollection.nextInterval}
|
|
380
|
-
*
|
|
381
|
-
* @deprecated - This API will be deprecated as its functionality will be moved to the `EndpointIndex`.
|
|
382
|
-
* We would like the user to attach the index to the collection on their own.
|
|
383
343
|
*/
|
|
384
344
|
nextInterval(pos: number): TInterval | undefined;
|
|
385
345
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intervalCollection.d.ts","sourceRoot":"","sources":["../src/intervalCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAU,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"intervalCollection.d.ts","sourceRoot":"","sources":["../src/intervalCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAU,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAEN,MAAM,EAKN,WAAW,EACX,sBAAsB,EAMtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AAGjF,OAAO,EACN,wBAAwB,EACxB,aAAa,EACb,eAAe,EACf,eAAe,EACf,UAAU,EAEV,eAAe,EACf,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,4BAA4B,EAC5B,gBAAgB,EAChB,QAAQ,EAER,kBAAkB,EAClB,YAAY,EACZ,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EAMvB,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,cAAc,EACd,gBAAgB,EAChB,0BAA0B,EAC1B,aAAa,EAIb,MAAM,iBAAiB,CAAC;AAIzB,MAAM,WAAW,+BAA+B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AAI,0BAA0B,CAAC,SAAS,CAAC;IAKjE;;OAEG;IACI,sCAAsC,CAC5C,aAAa,EAAE,MAAM,GACnB,0BAA0B,CAAC,SAAS,CAAC;IAKxC;;OAEG;IACI,uCAAuC,CAC7C,aAAa,EAAE,MAAM,GACnB,0BAA0B,CAAC,SAAS,CAAC;IAKxC;;OAEG;IACI,oCAAoC,CAC1C,WAAW,EAAE,MAAM,GACjB,0BAA0B,CAAC,SAAS,CAAC;IAUxC;;OAEG;IACI,qCAAqC,CAC3C,WAAW,EAAE,MAAM,GACjB,0BAA0B,CAAC,SAAS,CAAC;IAUxC;;OAEG;IACI,sBAAsB,CAC5B,OAAO,EAAE,SAAS,EAAE,EACpB,eAAe,EAAE,OAAO,EACxB,KAAK,CAAC,EAAE,MAAM,EACd,GAAG,CAAC,EAAE,MAAM;IAcb;;OAEG;IACI,wBAAwB,CAAC,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,SAAS,EAAE;IAWxF;;OAEG;IACI,GAAG,CAAC,EAAE,EAAE,CAAC,QAAQ,EAAE,SAAS,KAAK,IAAI;IAU5C;;OAEG;IACI,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS;IAQ3D;;OAEG;IACI,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS;CAOvD;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,gBAAgB,CAAC;CAC3B;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAC1C,iBAAiB,EAAE,sBAAsB,GACvC,eAAe,GAAG,SAAS,CAM7B"}
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
exports.intervalLocatorFromEndpoint = exports.IntervalCollection = exports.makeOpsMap = exports.IntervalCollectionValueType = exports.SequenceIntervalCollectionValueType = exports.LocalIntervalCollection = exports.createIntervalIndex = void 0;
|
|
8
8
|
/* eslint-disable no-bitwise */
|
|
9
9
|
const common_utils_1 = require("@fluidframework/common-utils");
|
|
10
|
-
const container_utils_1 = require("@fluidframework/container-utils");
|
|
11
10
|
const merge_tree_1 = require("@fluidframework/merge-tree");
|
|
12
11
|
const telemetry_utils_1 = require("@fluidframework/telemetry-utils");
|
|
13
12
|
const uuid_1 = require("uuid");
|
|
@@ -506,7 +505,7 @@ class IntervalCollection extends common_utils_1.TypedEventEmitter {
|
|
|
506
505
|
throw new telemetry_utils_1.LoggingError("Can not add transient intervals");
|
|
507
506
|
}
|
|
508
507
|
if (stickiness !== intervals_1.IntervalStickiness.END && !this.options.intervalStickinessEnabled) {
|
|
509
|
-
throw new
|
|
508
|
+
throw new telemetry_utils_1.UsageError("attempted to set interval stickiness without enabling `intervalStickinessEnabled` feature flag");
|
|
510
509
|
}
|
|
511
510
|
const interval = this.localCollection.addInterval(start, end, intervalType, props, undefined, stickiness);
|
|
512
511
|
if (interval) {
|
|
@@ -943,8 +942,6 @@ class IntervalCollection extends common_utils_1.TypedEventEmitter {
|
|
|
943
942
|
}
|
|
944
943
|
/**
|
|
945
944
|
* {@inheritdoc IIntervalCollection.CreateForwardIteratorWithStartPosition}
|
|
946
|
-
*
|
|
947
|
-
* @deprecated - The sequence order of collection order will not be supported
|
|
948
945
|
*/
|
|
949
946
|
CreateForwardIteratorWithStartPosition(startPosition) {
|
|
950
947
|
const iterator = new IntervalCollectionIterator(this, true, startPosition);
|
|
@@ -952,8 +949,6 @@ class IntervalCollection extends common_utils_1.TypedEventEmitter {
|
|
|
952
949
|
}
|
|
953
950
|
/**
|
|
954
951
|
* {@inheritdoc IIntervalCollection.CreateBackwardIteratorWithStartPosition}
|
|
955
|
-
*
|
|
956
|
-
* @deprecated - The sequence order of collection order will not be supported
|
|
957
952
|
*/
|
|
958
953
|
CreateBackwardIteratorWithStartPosition(startPosition) {
|
|
959
954
|
const iterator = new IntervalCollectionIterator(this, false, startPosition);
|
|
@@ -961,8 +956,6 @@ class IntervalCollection extends common_utils_1.TypedEventEmitter {
|
|
|
961
956
|
}
|
|
962
957
|
/**
|
|
963
958
|
* {@inheritdoc IIntervalCollection.CreateForwardIteratorWithEndPosition}
|
|
964
|
-
*
|
|
965
|
-
* @deprecated - The sequence order of collection order will not be supported
|
|
966
959
|
*/
|
|
967
960
|
CreateForwardIteratorWithEndPosition(endPosition) {
|
|
968
961
|
const iterator = new IntervalCollectionIterator(this, true, undefined, endPosition);
|
|
@@ -970,8 +963,6 @@ class IntervalCollection extends common_utils_1.TypedEventEmitter {
|
|
|
970
963
|
}
|
|
971
964
|
/**
|
|
972
965
|
* {@inheritdoc IIntervalCollection.CreateBackwardIteratorWithEndPosition}
|
|
973
|
-
*
|
|
974
|
-
* @deprecated - The sequence order of collection order will not be supported
|
|
975
966
|
*/
|
|
976
967
|
CreateBackwardIteratorWithEndPosition(endPosition) {
|
|
977
968
|
const iterator = new IntervalCollectionIterator(this, false, undefined, endPosition);
|
|
@@ -979,8 +970,6 @@ class IntervalCollection extends common_utils_1.TypedEventEmitter {
|
|
|
979
970
|
}
|
|
980
971
|
/**
|
|
981
972
|
* {@inheritdoc IIntervalCollection.gatherIterationResults}
|
|
982
|
-
* @deprecated - This API will be deprecated as its functionality will be moved to the `OverlappingIntervalsIndex`.
|
|
983
|
-
* We would like the user to attach the index to the collection on their own.
|
|
984
973
|
*/
|
|
985
974
|
gatherIterationResults(results, iteratesForward, start, end) {
|
|
986
975
|
if (!this.localCollection) {
|
|
@@ -990,8 +979,6 @@ class IntervalCollection extends common_utils_1.TypedEventEmitter {
|
|
|
990
979
|
}
|
|
991
980
|
/**
|
|
992
981
|
* {@inheritdoc IIntervalCollection.findOverlappingIntervals}
|
|
993
|
-
* @deprecated - This API will be deprecated as its functionality will be moved to the `OverlappingIntervalsIndex`.
|
|
994
|
-
* We would like the user to attach the index to the collection on their own.
|
|
995
982
|
*/
|
|
996
983
|
findOverlappingIntervals(startPosition, endPosition) {
|
|
997
984
|
if (!this.localCollection) {
|
|
@@ -1012,9 +999,6 @@ class IntervalCollection extends common_utils_1.TypedEventEmitter {
|
|
|
1012
999
|
}
|
|
1013
1000
|
/**
|
|
1014
1001
|
* {@inheritdoc IIntervalCollection.previousInterval}
|
|
1015
|
-
*
|
|
1016
|
-
* @deprecated - This API will be deprecated as its functionality will be moved to the `EndpointIndex`.
|
|
1017
|
-
* We would like the user to attach the index to the collection on their own.
|
|
1018
1002
|
*/
|
|
1019
1003
|
previousInterval(pos) {
|
|
1020
1004
|
if (!this.localCollection) {
|
|
@@ -1024,9 +1008,6 @@ class IntervalCollection extends common_utils_1.TypedEventEmitter {
|
|
|
1024
1008
|
}
|
|
1025
1009
|
/**
|
|
1026
1010
|
* {@inheritdoc IIntervalCollection.nextInterval}
|
|
1027
|
-
*
|
|
1028
|
-
* @deprecated - This API will be deprecated as its functionality will be moved to the `EndpointIndex`.
|
|
1029
|
-
* We would like the user to attach the index to the collection on their own.
|
|
1030
1011
|
*/
|
|
1031
1012
|
nextInterval(pos) {
|
|
1032
1013
|
if (!this.localCollection) {
|