@fluidframework/container-loader 2.10.0-304831 → 2.10.0-305357

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/src/container.ts CHANGED
@@ -1319,7 +1319,7 @@ export class Container
1319
1319
  ) => {
1320
1320
  try {
1321
1321
  assert(
1322
- this.deltaManager.inbound.length === 0,
1322
+ this._deltaManager.inbound.length === 0,
1323
1323
  0x0d6 /* "Inbound queue should be empty when attaching" */,
1324
1324
  );
1325
1325
  return combineAppAndProtocolSummary(
@@ -1523,13 +1523,13 @@ export class Container
1523
1523
  const codeDetails = this.getCodeDetailsFromQuorum();
1524
1524
 
1525
1525
  await Promise.all([
1526
- this.deltaManager.inbound.pause(),
1527
- this.deltaManager.inboundSignal.pause(),
1526
+ this._deltaManager.inbound.pause(),
1527
+ this._deltaManager.inboundSignal.pause(),
1528
1528
  ]);
1529
1529
 
1530
1530
  if ((await this.satisfies(codeDetails)) === true) {
1531
- this.deltaManager.inbound.resume();
1532
- this.deltaManager.inboundSignal.resume();
1531
+ this._deltaManager.inbound.resume();
1532
+ this._deltaManager.inboundSignal.resume();
1533
1533
  return;
1534
1534
  }
1535
1535
 
@@ -5,8 +5,8 @@
5
5
 
6
6
  import { ICriticalContainerError } from "@fluidframework/container-definitions";
7
7
  import {
8
- IDeltaManager,
9
8
  IDeltaManagerEvents,
9
+ IDeltaManagerFull,
10
10
  IDeltaQueue,
11
11
  type IDeltaSender,
12
12
  type ReadOnlyInfo,
@@ -151,9 +151,7 @@ function logIfFalse(
151
151
  */
152
152
  export class DeltaManager<TConnectionManager extends IConnectionManager>
153
153
  extends EventEmitterWithErrorHandling<IDeltaManagerInternalEvents>
154
- implements
155
- IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>,
156
- IEventProvider<IDeltaManagerInternalEvents>
154
+ implements IDeltaManagerFull, IEventProvider<IDeltaManagerInternalEvents>
157
155
  {
158
156
  public readonly connectionManager: TConnectionManager;
159
157
 
package/src/index.ts CHANGED
@@ -20,7 +20,10 @@ export {
20
20
  resolveWithLocationRedirectionHandling,
21
21
  } from "./location-redirection-utilities/index.js";
22
22
  export { IProtocolHandler, ProtocolHandlerBuilder } from "./protocol.js";
23
- export { tryParseCompatibleResolvedUrl, IParsedUrl } from "./utils.js";
23
+ export {
24
+ tryParseCompatibleResolvedUrl,
25
+ IParsedUrl,
26
+ } from "./utils.js";
24
27
  export {
25
28
  IBaseProtocolHandler,
26
29
  IScribeProtocolState,
package/src/loadPaused.ts CHANGED
@@ -5,11 +5,13 @@
5
5
 
6
6
  import {
7
7
  ILoader,
8
+ isIDeltaManagerFull,
8
9
  LoaderHeader,
9
10
  type IContainer,
10
11
  } from "@fluidframework/container-definitions/internal";
11
12
  import { IRequest } from "@fluidframework/core-interfaces";
12
13
  import type { IErrorBase } from "@fluidframework/core-interfaces";
14
+ import { assert } from "@fluidframework/core-utils/internal";
13
15
  import { GenericError } from "@fluidframework/telemetry-utils/internal";
14
16
 
15
17
  /* eslint-disable jsdoc/check-indentation */
@@ -63,6 +65,7 @@ export async function loadContainerPaused(
63
65
  const lastProcessedSequenceNumber = dm.initialSequenceNumber;
64
66
 
65
67
  const pauseContainer = (): void => {
68
+ assert(isIDeltaManagerFull(dm), "Delta manager does not have inbound/outbound queues.");
66
69
  // eslint-disable-next-line no-void
67
70
  void dm.inbound.pause();
68
71
  // eslint-disable-next-line no-void
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/container-loader";
9
- export const pkgVersion = "2.10.0-304831";
9
+ export const pkgVersion = "2.10.0-305357";