@fluidframework/container-loader 2.41.0-338401 → 2.42.0

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.
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluidframework/container-loader";
8
- export declare const pkgVersion = "2.41.0-338401";
8
+ export declare const pkgVersion = "2.42.0";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,qCAAqC,CAAC;AAC1D,eAAO,MAAM,UAAU,kBAAkB,CAAC"}
1
+ {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,qCAAqC,CAAC;AAC1D,eAAO,MAAM,UAAU,WAAW,CAAC"}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export const pkgName = "@fluidframework/container-loader";
8
- export const pkgVersion = "2.41.0-338401";
8
+ export const pkgVersion = "2.42.0";
9
9
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,kCAAkC,CAAC;AAC1D,MAAM,CAAC,MAAM,UAAU,GAAG,eAAe,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/container-loader\";\nexport const pkgVersion = \"2.41.0-338401\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,kCAAkC,CAAC;AAC1D,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/container-loader\";\nexport const pkgVersion = \"2.42.0\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/container-loader",
3
- "version": "2.41.0-338401",
3
+ "version": "2.42.0",
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.41.0-338401",
123
- "@fluidframework/container-definitions": "2.41.0-338401",
124
- "@fluidframework/core-interfaces": "2.41.0-338401",
125
- "@fluidframework/core-utils": "2.41.0-338401",
126
- "@fluidframework/driver-definitions": "2.41.0-338401",
127
- "@fluidframework/driver-utils": "2.41.0-338401",
128
- "@fluidframework/telemetry-utils": "2.41.0-338401",
122
+ "@fluid-internal/client-utils": "~2.42.0",
123
+ "@fluidframework/container-definitions": "~2.42.0",
124
+ "@fluidframework/core-interfaces": "~2.42.0",
125
+ "@fluidframework/core-utils": "~2.42.0",
126
+ "@fluidframework/driver-definitions": "~2.42.0",
127
+ "@fluidframework/driver-utils": "~2.42.0",
128
+ "@fluidframework/telemetry-utils": "~2.42.0",
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,14 +136,14 @@
136
136
  "devDependencies": {
137
137
  "@arethetypeswrong/cli": "^0.17.1",
138
138
  "@biomejs/biome": "~1.9.3",
139
- "@fluid-internal/client-utils": "2.41.0-338401",
140
- "@fluid-internal/mocha-test-setup": "2.41.0-338401",
141
- "@fluid-private/test-loader-utils": "2.41.0-338401",
139
+ "@fluid-internal/client-utils": "~2.42.0",
140
+ "@fluid-internal/mocha-test-setup": "~2.42.0",
141
+ "@fluid-private/test-loader-utils": "~2.42.0",
142
142
  "@fluid-tools/build-cli": "^0.55.0",
143
143
  "@fluidframework/build-common": "^2.0.3",
144
144
  "@fluidframework/build-tools": "^0.55.0",
145
- "@fluidframework/container-loader-previous": "npm:@fluidframework/container-loader@2.40.0",
146
- "@fluidframework/eslint-config-fluid": "^5.7.3",
145
+ "@fluidframework/container-loader-previous": "npm:@fluidframework/container-loader@2.41.0",
146
+ "@fluidframework/eslint-config-fluid": "^5.7.4",
147
147
  "@microsoft/api-extractor": "7.52.8",
148
148
  "@types/debug": "^4.1.5",
149
149
  "@types/double-ended-queue": "^2.1.0",
package/src/container.ts CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  IAudience,
16
16
  ICriticalContainerError,
17
17
  } from "@fluidframework/container-definitions";
18
- import {
18
+ import type {
19
19
  ContainerWarning,
20
20
  IBatchMessage,
21
21
  ICodeDetailsLoader,
@@ -30,11 +30,11 @@ import {
30
30
  IProvideFluidCodeDetailsComparer,
31
31
  IProvideRuntimeFactory,
32
32
  IRuntime,
33
- isFluidCodeDetails,
34
33
  ReadOnlyInfo,
35
- type ILoader,
36
- type ILoaderOptions,
34
+ ILoader,
35
+ ILoaderOptions,
37
36
  } from "@fluidframework/container-definitions/internal";
37
+ import { isFluidCodeDetails } from "@fluidframework/container-definitions/internal";
38
38
  import {
39
39
  FluidObject,
40
40
  IEvent,
@@ -2486,13 +2486,11 @@ export class Container
2486
2486
  */
2487
2487
  private setContextConnectedState(connected: boolean, readonly: boolean): void {
2488
2488
  if (this._runtime?.disposed === false && this.loaded) {
2489
- /**
2490
- * We want to lie to the ContainerRuntime when we are in readonly mode to prevent issues with pending
2491
- * ops getting through to the DeltaManager.
2492
- * The ContainerRuntime's "connected" state simply means it is ok to send ops
2493
- * See https://dev.azure.com/fluidframework/internal/_workitems/edit/1246
2494
- */
2495
- this.runtime.setConnectionState(connected && !readonly, this.clientId);
2489
+ this.runtime.setConnectionState(
2490
+ connected &&
2491
+ !readonly /* container can send ops if connected to service and not in readonly mode */,
2492
+ this.clientId,
2493
+ );
2496
2494
  }
2497
2495
  }
2498
2496
 
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/container-loader";
9
- export const pkgVersion = "2.41.0-338401";
9
+ export const pkgVersion = "2.42.0";