@fluidframework/container-loader 2.4.0-299707 → 2.5.0-302463
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 +4 -0
- package/dist/container.js +2 -2
- package/dist/container.js.map +1 -1
- package/dist/deltaManager.d.ts.map +1 -1
- package/dist/deltaManager.js +0 -6
- package/dist/deltaManager.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/dist/protocol/protocol.d.ts.map +1 -1
- package/dist/protocol/protocol.js +3 -1
- package/dist/protocol/protocol.js.map +1 -1
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +0 -3
- package/dist/protocol.js.map +1 -1
- package/lib/container.js +2 -2
- package/lib/container.js.map +1 -1
- package/lib/deltaManager.d.ts.map +1 -1
- package/lib/deltaManager.js +0 -6
- package/lib/deltaManager.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/protocol/protocol.d.ts.map +1 -1
- package/lib/protocol/protocol.js +3 -1
- package/lib/protocol/protocol.js.map +1 -1
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +0 -3
- package/lib/protocol.js.map +1 -1
- package/package.json +15 -15
- package/src/container.ts +2 -2
- package/src/deltaManager.ts +0 -9
- package/src/packageVersion.ts +1 -1
- package/src/protocol/protocol.ts +3 -1
- package/src/protocol.ts +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/container-loader",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0-302463",
|
|
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.
|
|
123
|
-
"@fluidframework/container-definitions": "2.
|
|
124
|
-
"@fluidframework/core-interfaces": "2.
|
|
125
|
-
"@fluidframework/core-utils": "2.
|
|
126
|
-
"@fluidframework/driver-definitions": "2.
|
|
127
|
-
"@fluidframework/driver-utils": "2.
|
|
128
|
-
"@fluidframework/telemetry-utils": "2.
|
|
122
|
+
"@fluid-internal/client-utils": "2.5.0-302463",
|
|
123
|
+
"@fluidframework/container-definitions": "2.5.0-302463",
|
|
124
|
+
"@fluidframework/core-interfaces": "2.5.0-302463",
|
|
125
|
+
"@fluidframework/core-utils": "2.5.0-302463",
|
|
126
|
+
"@fluidframework/driver-definitions": "2.5.0-302463",
|
|
127
|
+
"@fluidframework/driver-utils": "2.5.0-302463",
|
|
128
|
+
"@fluidframework/telemetry-utils": "2.5.0-302463",
|
|
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",
|
|
@@ -135,14 +135,14 @@
|
|
|
135
135
|
},
|
|
136
136
|
"devDependencies": {
|
|
137
137
|
"@arethetypeswrong/cli": "^0.16.4",
|
|
138
|
-
"@biomejs/biome": "~1.
|
|
139
|
-
"@fluid-internal/client-utils": "2.
|
|
140
|
-
"@fluid-internal/mocha-test-setup": "2.
|
|
141
|
-
"@fluid-private/test-loader-utils": "2.
|
|
142
|
-
"@fluid-tools/build-cli": "^0.
|
|
138
|
+
"@biomejs/biome": "~1.9.3",
|
|
139
|
+
"@fluid-internal/client-utils": "2.5.0-302463",
|
|
140
|
+
"@fluid-internal/mocha-test-setup": "2.5.0-302463",
|
|
141
|
+
"@fluid-private/test-loader-utils": "2.5.0-302463",
|
|
142
|
+
"@fluid-tools/build-cli": "^0.49.0",
|
|
143
143
|
"@fluidframework/build-common": "^2.0.3",
|
|
144
|
-
"@fluidframework/build-tools": "^0.
|
|
145
|
-
"@fluidframework/container-loader-previous": "npm:@fluidframework/container-loader@~2.
|
|
144
|
+
"@fluidframework/build-tools": "^0.49.0",
|
|
145
|
+
"@fluidframework/container-loader-previous": "npm:@fluidframework/container-loader@~2.4.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",
|
package/src/container.ts
CHANGED
|
@@ -394,7 +394,7 @@ export class Container
|
|
|
394
394
|
// to return container, so ignore this value and use undefined for opsBeforeReturn
|
|
395
395
|
const mode: IContainerLoadMode = pendingLocalState
|
|
396
396
|
? { ...(loadMode ?? defaultMode), opsBeforeReturn: undefined }
|
|
397
|
-
: loadMode ?? defaultMode;
|
|
397
|
+
: (loadMode ?? defaultMode);
|
|
398
398
|
|
|
399
399
|
const onClosed = (err?: ICriticalContainerError): void => {
|
|
400
400
|
// pre-0.58 error message: containerClosedWithoutErrorDuringLoad
|
|
@@ -1719,7 +1719,7 @@ export class Container
|
|
|
1719
1719
|
codeDetails,
|
|
1720
1720
|
baseSnapshotTree,
|
|
1721
1721
|
// give runtime a dummy value so it knows we're loading from a stash blob
|
|
1722
|
-
pendingLocalState ? pendingLocalState?.pendingRuntimeState ?? {} : undefined,
|
|
1722
|
+
pendingLocalState ? (pendingLocalState?.pendingRuntimeState ?? {}) : undefined,
|
|
1723
1723
|
isInstanceOfISnapshot(baseSnapshot) ? baseSnapshot : undefined,
|
|
1724
1724
|
);
|
|
1725
1725
|
|
package/src/deltaManager.ts
CHANGED
|
@@ -1031,15 +1031,6 @@ export class DeltaManager<TConnectionManager extends IConnectionManager>
|
|
|
1031
1031
|
});
|
|
1032
1032
|
}
|
|
1033
1033
|
|
|
1034
|
-
// TODO: AB#12052: Stop parsing message.contents here, let the downstream handlers do it
|
|
1035
|
-
if (
|
|
1036
|
-
typeof message.contents === "string" &&
|
|
1037
|
-
message.contents !== "" &&
|
|
1038
|
-
message.type !== MessageType.ClientLeave
|
|
1039
|
-
) {
|
|
1040
|
-
message.contents = JSON.parse(message.contents);
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
1034
|
// Validate client sequence number has no gap. Decrement the noOpCount by gap
|
|
1044
1035
|
// If the count ends up negative, that means we have a real gap and throw error
|
|
1045
1036
|
if (
|
package/src/packageVersion.ts
CHANGED
package/src/protocol/protocol.ts
CHANGED
|
@@ -125,7 +125,9 @@ export class ProtocolOpHandler implements IProtocolHandler {
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
case MessageType.Propose: {
|
|
128
|
-
//
|
|
128
|
+
// DeltaManager is no longer parsing the contents, so we expect this to be a string here
|
|
129
|
+
// (However, switching this to an assert caused some tests to fail, apparently due to the same
|
|
130
|
+
// message object being processed multiple times - So we will retain the typeof check for now)
|
|
129
131
|
if (typeof message.contents === "string") {
|
|
130
132
|
message.contents = JSON.parse(message.contents);
|
|
131
133
|
}
|
package/src/protocol.ts
CHANGED
|
@@ -73,9 +73,6 @@ export class ProtocolHandler extends ProtocolOpHandler implements IProtocolHandl
|
|
|
73
73
|
audience.addMember(clientId, details.client),
|
|
74
74
|
);
|
|
75
75
|
this.quorum.on("removeMember", (clientId) => audience.removeMember(clientId));
|
|
76
|
-
for (const [clientId, details] of this.quorum.getMembers()) {
|
|
77
|
-
this.audience.addMember(clientId, details.client);
|
|
78
|
-
}
|
|
79
76
|
}
|
|
80
77
|
|
|
81
78
|
public processMessage(
|