@fluidframework/container-loader 2.5.0 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/container-loader",
3
- "version": "2.5.0",
3
+ "version": "2.10.0-305357",
4
4
  "description": "Fluid container loader",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -119,13 +119,13 @@
119
119
  "temp-directory": "nyc/.nyc_output"
120
120
  },
121
121
  "dependencies": {
122
- "@fluid-internal/client-utils": "~2.5.0",
123
- "@fluidframework/container-definitions": "~2.5.0",
124
- "@fluidframework/core-interfaces": "~2.5.0",
125
- "@fluidframework/core-utils": "~2.5.0",
126
- "@fluidframework/driver-definitions": "~2.5.0",
127
- "@fluidframework/driver-utils": "~2.5.0",
128
- "@fluidframework/telemetry-utils": "~2.5.0",
122
+ "@fluid-internal/client-utils": "2.10.0-305357",
123
+ "@fluidframework/container-definitions": "2.10.0-305357",
124
+ "@fluidframework/core-interfaces": "2.10.0-305357",
125
+ "@fluidframework/core-utils": "2.10.0-305357",
126
+ "@fluidframework/driver-definitions": "2.10.0-305357",
127
+ "@fluidframework/driver-utils": "2.10.0-305357",
128
+ "@fluidframework/telemetry-utils": "2.10.0-305357",
129
129
  "@types/events_pkg": "npm:@types/events@^3.0.0",
130
130
  "@ungap/structured-clone": "^1.2.0",
131
131
  "debug": "^4.3.4",
@@ -136,13 +136,13 @@
136
136
  "devDependencies": {
137
137
  "@arethetypeswrong/cli": "^0.16.4",
138
138
  "@biomejs/biome": "~1.9.3",
139
- "@fluid-internal/client-utils": "~2.5.0",
140
- "@fluid-internal/mocha-test-setup": "~2.5.0",
141
- "@fluid-private/test-loader-utils": "~2.5.0",
142
- "@fluid-tools/build-cli": "^0.49.0",
139
+ "@fluid-internal/client-utils": "2.10.0-305357",
140
+ "@fluid-internal/mocha-test-setup": "2.10.0-305357",
141
+ "@fluid-private/test-loader-utils": "2.10.0-305357",
142
+ "@fluid-tools/build-cli": "^0.50.0",
143
143
  "@fluidframework/build-common": "^2.0.3",
144
- "@fluidframework/build-tools": "^0.49.0",
145
- "@fluidframework/container-loader-previous": "npm:@fluidframework/container-loader@~2.4.0",
144
+ "@fluidframework/build-tools": "^0.50.0",
145
+ "@fluidframework/container-loader-previous": "npm:@fluidframework/container-loader@~2.5.0",
146
146
  "@fluidframework/eslint-config-fluid": "^5.4.0",
147
147
  "@microsoft/api-extractor": "7.47.8",
148
148
  "@types/debug": "^4.1.5",
@@ -166,7 +166,11 @@
166
166
  "typescript": "~5.4.5"
167
167
  },
168
168
  "typeValidation": {
169
- "broken": {},
169
+ "broken": {
170
+ "Interface_IContainerExperimental": {
171
+ "backCompat": false
172
+ }
173
+ },
170
174
  "entrypoint": "legacy"
171
175
  },
172
176
  "scripts": {
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.5.0";
9
+ export const pkgVersion = "2.10.0-305357";