Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.52 KB

happy-dreams-sing.md

File metadata and controls

28 lines (20 loc) · 1.52 KB
@fluidframework/sequence
minor
  1. Deprecate API findOverlappingIntervals and gatherIterationResults from IntervalCollection, these functionalities are moved to the OverlappingIntervalsIndex. 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);
  1. Deprecate API previousInterval and nextInterval from IntervalCollection, these functionalities are moved to the EndpointIndex. 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);
  1. Deprecate API CreateBackwardIteratorWithEndPosition, CreateBackwardIteratorWithStartPosition, CreateForwardIteratorWithEndPosition and CreateForwardIteratorWithStartPosition from IntervalCollection. 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.