@fluidframework/container-loader 2.10.0-304831 → 2.10.0-306579
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/.eslintrc.cjs +3 -0
- package/dist/container.js +5 -5
- package/dist/container.js.map +1 -1
- package/dist/deltaManager.d.ts +2 -2
- package/dist/deltaManager.d.ts.map +1 -1
- package/dist/deltaManager.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/loadPaused.d.ts.map +1 -1
- package/dist/loadPaused.js +5 -3
- package/dist/loadPaused.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/lib/container.js +5 -5
- package/lib/container.js.map +1 -1
- package/lib/deltaManager.d.ts +2 -2
- package/lib/deltaManager.d.ts.map +1 -1
- package/lib/deltaManager.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/loadPaused.d.ts.map +1 -1
- package/lib/loadPaused.js +3 -1
- package/lib/loadPaused.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/package.json +16 -12
- package/src/container.ts +5 -5
- package/src/deltaManager.ts +2 -4
- package/src/index.ts +4 -1
- package/src/loadPaused.ts +3 -0
- package/src/packageVersion.ts +1 -1
package/src/container.ts
CHANGED
|
@@ -1319,7 +1319,7 @@ export class Container
|
|
|
1319
1319
|
) => {
|
|
1320
1320
|
try {
|
|
1321
1321
|
assert(
|
|
1322
|
-
this.
|
|
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.
|
|
1527
|
-
this.
|
|
1526
|
+
this._deltaManager.inbound.pause(),
|
|
1527
|
+
this._deltaManager.inboundSignal.pause(),
|
|
1528
1528
|
]);
|
|
1529
1529
|
|
|
1530
1530
|
if ((await this.satisfies(codeDetails)) === true) {
|
|
1531
|
-
this.
|
|
1532
|
-
this.
|
|
1531
|
+
this._deltaManager.inbound.resume();
|
|
1532
|
+
this._deltaManager.inboundSignal.resume();
|
|
1533
1533
|
return;
|
|
1534
1534
|
}
|
|
1535
1535
|
|
package/src/deltaManager.ts
CHANGED
|
@@ -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 {
|
|
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
|
package/src/packageVersion.ts
CHANGED