@fluidframework/sequence 2.13.0 → 2.21.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 +56 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/dist/intervalCollectionMap.d.ts +8 -1
- package/dist/intervalCollectionMap.d.ts.map +1 -1
- package/dist/intervalCollectionMap.js +8 -1
- package/dist/intervalCollectionMap.js.map +1 -1
- package/dist/intervalCollectionMapInterfaces.d.ts +0 -1
- package/dist/intervalCollectionMapInterfaces.d.ts.map +1 -1
- package/dist/intervalCollectionMapInterfaces.js.map +1 -1
- package/dist/intervals/sequenceInterval.d.ts.map +1 -1
- package/dist/intervals/sequenceInterval.js +3 -1
- package/dist/intervals/sequenceInterval.js.map +1 -1
- package/dist/package.json +2 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/revertibles.d.ts.map +1 -1
- package/dist/revertibles.js +12 -11
- package/dist/revertibles.js.map +1 -1
- package/dist/sequence.d.ts +0 -6
- package/dist/sequence.d.ts.map +1 -1
- package/dist/sequence.js +0 -8
- package/dist/sequence.js.map +1 -1
- package/dist/sharedIntervalCollection.d.ts.map +1 -1
- package/dist/sharedIntervalCollection.js +7 -6
- package/dist/sharedIntervalCollection.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/intervalCollectionMap.d.ts +8 -1
- package/lib/intervalCollectionMap.d.ts.map +1 -1
- package/lib/intervalCollectionMap.js +8 -1
- package/lib/intervalCollectionMap.js.map +1 -1
- package/lib/intervalCollectionMapInterfaces.d.ts +0 -1
- package/lib/intervalCollectionMapInterfaces.d.ts.map +1 -1
- package/lib/intervalCollectionMapInterfaces.js.map +1 -1
- package/lib/intervals/sequenceInterval.d.ts.map +1 -1
- package/lib/intervals/sequenceInterval.js +3 -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/revertibles.d.ts.map +1 -1
- package/lib/revertibles.js +13 -12
- package/lib/revertibles.js.map +1 -1
- package/lib/sequence.d.ts +0 -6
- package/lib/sequence.d.ts.map +1 -1
- package/lib/sequence.js +0 -8
- package/lib/sequence.js.map +1 -1
- package/lib/sharedIntervalCollection.d.ts.map +1 -1
- package/lib/sharedIntervalCollection.js +2 -1
- package/lib/sharedIntervalCollection.js.map +1 -1
- package/package.json +32 -20
- package/src/index.ts +1 -5
- package/src/intervalCollectionMap.ts +8 -1
- package/src/intervalCollectionMapInterfaces.ts +0 -1
- package/src/intervals/sequenceInterval.ts +7 -4
- package/src/packageVersion.ts +1 -1
- package/src/revertibles.ts +15 -13
- package/src/sequence.ts +0 -9
- package/src/sharedIntervalCollection.ts +9 -5
package/src/sequence.ts
CHANGED
|
@@ -387,15 +387,6 @@ export abstract class SharedSegmentSequence<T extends ISegment>
|
|
|
387
387
|
extends SharedObject<ISharedSegmentSequenceEvents>
|
|
388
388
|
implements ISharedSegmentSequence<T>
|
|
389
389
|
{
|
|
390
|
-
/**
|
|
391
|
-
* This promise is always immediately resolved, and awaiting it has no effect.
|
|
392
|
-
* @deprecated SharedSegmentSequence no longer supports partial loading.
|
|
393
|
-
* References to this promise may safely be deleted without affecting behavior.
|
|
394
|
-
*/
|
|
395
|
-
get loaded(): Promise<void> {
|
|
396
|
-
return Promise.resolve();
|
|
397
|
-
}
|
|
398
|
-
|
|
399
390
|
/**
|
|
400
391
|
* This is a safeguard to avoid problematic reentrancy of local ops. This type of scenario occurs if the user of SharedString subscribes
|
|
401
392
|
* to the `sequenceDelta` event and uses the callback for a local op to submit further local ops.
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { bufferToString } from "@fluid-internal/client-utils";
|
|
7
|
+
import { assert } from "@fluidframework/core-utils/internal";
|
|
7
8
|
import {
|
|
8
9
|
IChannelAttributes,
|
|
9
10
|
IChannelFactory,
|
|
@@ -169,11 +170,14 @@ export class SharedIntervalCollection
|
|
|
169
170
|
localOpMetadata: unknown,
|
|
170
171
|
) {
|
|
171
172
|
if (message.type === MessageType.Operation) {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
173
|
+
assert(
|
|
174
|
+
this.intervalCollections.tryProcessMessage(
|
|
175
|
+
message.contents as IMapOperation,
|
|
176
|
+
local,
|
|
177
|
+
message,
|
|
178
|
+
localOpMetadata,
|
|
179
|
+
),
|
|
180
|
+
0xab3 /* SharedIntervalCollection received an unrecognized op, possibly from a newer version */,
|
|
177
181
|
);
|
|
178
182
|
}
|
|
179
183
|
}
|