@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.
Files changed (65) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +1 -4
  5. package/dist/index.js.map +1 -1
  6. package/dist/intervalCollectionMap.d.ts +8 -1
  7. package/dist/intervalCollectionMap.d.ts.map +1 -1
  8. package/dist/intervalCollectionMap.js +8 -1
  9. package/dist/intervalCollectionMap.js.map +1 -1
  10. package/dist/intervalCollectionMapInterfaces.d.ts +0 -1
  11. package/dist/intervalCollectionMapInterfaces.d.ts.map +1 -1
  12. package/dist/intervalCollectionMapInterfaces.js.map +1 -1
  13. package/dist/intervals/sequenceInterval.d.ts.map +1 -1
  14. package/dist/intervals/sequenceInterval.js +3 -1
  15. package/dist/intervals/sequenceInterval.js.map +1 -1
  16. package/dist/package.json +2 -1
  17. package/dist/packageVersion.d.ts +1 -1
  18. package/dist/packageVersion.js +1 -1
  19. package/dist/packageVersion.js.map +1 -1
  20. package/dist/revertibles.d.ts.map +1 -1
  21. package/dist/revertibles.js +12 -11
  22. package/dist/revertibles.js.map +1 -1
  23. package/dist/sequence.d.ts +0 -6
  24. package/dist/sequence.d.ts.map +1 -1
  25. package/dist/sequence.js +0 -8
  26. package/dist/sequence.js.map +1 -1
  27. package/dist/sharedIntervalCollection.d.ts.map +1 -1
  28. package/dist/sharedIntervalCollection.js +7 -6
  29. package/dist/sharedIntervalCollection.js.map +1 -1
  30. package/lib/index.d.ts +1 -1
  31. package/lib/index.d.ts.map +1 -1
  32. package/lib/index.js +0 -1
  33. package/lib/index.js.map +1 -1
  34. package/lib/intervalCollectionMap.d.ts +8 -1
  35. package/lib/intervalCollectionMap.d.ts.map +1 -1
  36. package/lib/intervalCollectionMap.js +8 -1
  37. package/lib/intervalCollectionMap.js.map +1 -1
  38. package/lib/intervalCollectionMapInterfaces.d.ts +0 -1
  39. package/lib/intervalCollectionMapInterfaces.d.ts.map +1 -1
  40. package/lib/intervalCollectionMapInterfaces.js.map +1 -1
  41. package/lib/intervals/sequenceInterval.d.ts.map +1 -1
  42. package/lib/intervals/sequenceInterval.js +3 -1
  43. package/lib/intervals/sequenceInterval.js.map +1 -1
  44. package/lib/packageVersion.d.ts +1 -1
  45. package/lib/packageVersion.js +1 -1
  46. package/lib/packageVersion.js.map +1 -1
  47. package/lib/revertibles.d.ts.map +1 -1
  48. package/lib/revertibles.js +13 -12
  49. package/lib/revertibles.js.map +1 -1
  50. package/lib/sequence.d.ts +0 -6
  51. package/lib/sequence.d.ts.map +1 -1
  52. package/lib/sequence.js +0 -8
  53. package/lib/sequence.js.map +1 -1
  54. package/lib/sharedIntervalCollection.d.ts.map +1 -1
  55. package/lib/sharedIntervalCollection.js +2 -1
  56. package/lib/sharedIntervalCollection.js.map +1 -1
  57. package/package.json +32 -20
  58. package/src/index.ts +1 -5
  59. package/src/intervalCollectionMap.ts +8 -1
  60. package/src/intervalCollectionMapInterfaces.ts +0 -1
  61. package/src/intervals/sequenceInterval.ts +7 -4
  62. package/src/packageVersion.ts +1 -1
  63. package/src/revertibles.ts +15 -13
  64. package/src/sequence.ts +0 -9
  65. 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
- this.intervalCollections.tryProcessMessage(
173
- message.contents as IMapOperation,
174
- local,
175
- message,
176
- localOpMetadata,
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
  }