@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/container-loader",
3
- "version": "2.4.0-299707",
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.4.0-299707",
123
- "@fluidframework/container-definitions": "2.4.0-299707",
124
- "@fluidframework/core-interfaces": "2.4.0-299707",
125
- "@fluidframework/core-utils": "2.4.0-299707",
126
- "@fluidframework/driver-definitions": "2.4.0-299707",
127
- "@fluidframework/driver-utils": "2.4.0-299707",
128
- "@fluidframework/telemetry-utils": "2.4.0-299707",
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.8.3",
139
- "@fluid-internal/client-utils": "2.4.0-299707",
140
- "@fluid-internal/mocha-test-setup": "2.4.0-299707",
141
- "@fluid-private/test-loader-utils": "2.4.0-299707",
142
- "@fluid-tools/build-cli": "^0.48.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.48.0",
145
- "@fluidframework/container-loader-previous": "npm:@fluidframework/container-loader@~2.3.0",
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
 
@@ -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 (
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/container-loader";
9
- export const pkgVersion = "2.4.0-299707";
9
+ export const pkgVersion = "2.5.0-302463";
@@ -125,7 +125,9 @@ export class ProtocolOpHandler implements IProtocolHandler {
125
125
  }
126
126
 
127
127
  case MessageType.Propose: {
128
- // This should become unconditional once DeltaManager.processInboundMessage() stops parsing content (ADO #12052)
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(