@fluidframework/sequence |
---|
minor |
- Deprecate API
findOverlappingIntervals
andgatherIterationResults
fromIntervalCollection
, these functionalities are moved to theOverlappingIntervalsIndex
. Users are advised to independently attach the index to the collection and utilize the API accordingly, for instance:
const overlappingIntervalsIndex = createOverlappingIntervalsIndex(client, helpers);
collection.attachIndex(overlappingIntervalsIndex)
const result1 = overlappingIntervalsIndex.findOverlappingIntervals(start, end);
const result2 = [];
overlappingIntervalsIndex.gatherIterationResults(result2, true);
- Deprecate API
previousInterval
andnextInterval
fromIntervalCollection
, these functionalities are moved to theEndpointIndex
. Users are advised to independently attach the index to the collection and utilize the API accordingly, for instance:
const endpointIndex = createEndpointIndex(client, helpers);
collection.attachIndex(endpointIndex);
const result1 = endpointIndex.previousInterval(pos);
const result2 = endpointIndex.nextInterval(pos);
- Deprecate API
CreateBackwardIteratorWithEndPosition
,CreateBackwardIteratorWithStartPosition
,CreateForwardIteratorWithEndPosition
andCreateForwardIteratorWithStartPosition
fromIntervalCollection
. Only the default iterator will be supported in the future, and it will no longer preserve sequence order.
Equivalent functionality to these four methods is provided by IOverlappingIntervalIndex.gatherIterationResults
.