@fluidframework/container-loader 2.0.0-internal.6.3.3 → 2.0.0-internal.6.4.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.
- package/CHANGELOG.md +4 -0
- package/dist/connectionManager.d.ts +1 -15
- package/dist/connectionManager.d.ts.map +1 -1
- package/dist/connectionManager.js +1 -15
- package/dist/connectionManager.js.map +1 -1
- package/dist/container.d.ts +15 -1
- package/dist/container.d.ts.map +1 -1
- package/dist/container.js +15 -1
- package/dist/container.js.map +1 -1
- package/dist/debugLogger.d.ts.map +1 -1
- package/dist/debugLogger.js +1 -0
- package/dist/debugLogger.js.map +1 -1
- package/dist/deltaManager.js +1 -1
- package/dist/deltaManager.js.map +1 -1
- package/dist/loader.d.ts +1 -1
- package/dist/loader.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/connectionManager.d.ts +1 -15
- package/lib/connectionManager.d.ts.map +1 -1
- package/lib/connectionManager.js +1 -15
- package/lib/connectionManager.js.map +1 -1
- package/lib/container.d.ts +15 -1
- package/lib/container.d.ts.map +1 -1
- package/lib/container.js +15 -1
- package/lib/container.js.map +1 -1
- package/lib/debugLogger.d.ts.map +1 -1
- package/lib/debugLogger.js +1 -0
- package/lib/debugLogger.js.map +1 -1
- package/lib/deltaManager.js +1 -1
- package/lib/deltaManager.js.map +1 -1
- package/lib/loader.d.ts +1 -1
- package/lib/loader.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 +12 -12
- package/src/connectionManager.ts +1 -15
- package/src/container.ts +15 -1
- package/src/debugLogger.ts +1 -0
- package/src/deltaManager.ts +1 -1
- package/src/loader.ts +1 -1
- package/src/packageVersion.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/container-loader",
|
|
3
|
-
"version": "2.0.0-internal.6.
|
|
3
|
+
"version": "2.0.0-internal.6.4.0",
|
|
4
4
|
"description": "Fluid container loader",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
"temp-directory": "nyc/.nyc_output"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@fluid-internal/client-utils": ">=2.0.0-internal.6.
|
|
39
|
-
"@fluidframework/container-definitions": ">=2.0.0-internal.6.
|
|
40
|
-
"@fluidframework/container-utils": ">=2.0.0-internal.6.
|
|
41
|
-
"@fluidframework/core-interfaces": ">=2.0.0-internal.6.
|
|
42
|
-
"@fluidframework/core-utils": ">=2.0.0-internal.6.
|
|
43
|
-
"@fluidframework/driver-definitions": ">=2.0.0-internal.6.
|
|
44
|
-
"@fluidframework/driver-utils": ">=2.0.0-internal.6.
|
|
38
|
+
"@fluid-internal/client-utils": ">=2.0.0-internal.6.4.0 <2.0.0-internal.6.5.0",
|
|
39
|
+
"@fluidframework/container-definitions": ">=2.0.0-internal.6.4.0 <2.0.0-internal.6.5.0",
|
|
40
|
+
"@fluidframework/container-utils": ">=2.0.0-internal.6.4.0 <2.0.0-internal.6.5.0",
|
|
41
|
+
"@fluidframework/core-interfaces": ">=2.0.0-internal.6.4.0 <2.0.0-internal.6.5.0",
|
|
42
|
+
"@fluidframework/core-utils": ">=2.0.0-internal.6.4.0 <2.0.0-internal.6.5.0",
|
|
43
|
+
"@fluidframework/driver-definitions": ">=2.0.0-internal.6.4.0 <2.0.0-internal.6.5.0",
|
|
44
|
+
"@fluidframework/driver-utils": ">=2.0.0-internal.6.4.0 <2.0.0-internal.6.5.0",
|
|
45
45
|
"@fluidframework/protocol-base": "^1.0.1",
|
|
46
46
|
"@fluidframework/protocol-definitions": "^1.1.0",
|
|
47
|
-
"@fluidframework/telemetry-utils": ">=2.0.0-internal.6.
|
|
47
|
+
"@fluidframework/telemetry-utils": ">=2.0.0-internal.6.4.0 <2.0.0-internal.6.5.0",
|
|
48
48
|
"debug": "^4.1.1",
|
|
49
49
|
"double-ended-queue": "^2.1.0-0",
|
|
50
50
|
"events": "^3.1.0",
|
|
@@ -53,13 +53,13 @@
|
|
|
53
53
|
"uuid": "^9.0.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@fluid-internal/test-loader-utils": ">=2.0.0-internal.6.
|
|
56
|
+
"@fluid-internal/test-loader-utils": ">=2.0.0-internal.6.4.0 <2.0.0-internal.6.5.0",
|
|
57
57
|
"@fluid-tools/build-cli": "^0.22.0",
|
|
58
58
|
"@fluidframework/build-common": "^2.0.0",
|
|
59
59
|
"@fluidframework/build-tools": "^0.22.0",
|
|
60
|
-
"@fluidframework/container-loader-previous": "npm:@fluidframework/container-loader@2.0.0-internal.6.3.
|
|
60
|
+
"@fluidframework/container-loader-previous": "npm:@fluidframework/container-loader@2.0.0-internal.6.3.0",
|
|
61
61
|
"@fluidframework/eslint-config-fluid": "^2.1.0",
|
|
62
|
-
"@fluidframework/mocha-test-setup": ">=2.0.0-internal.6.
|
|
62
|
+
"@fluidframework/mocha-test-setup": ">=2.0.0-internal.6.4.0 <2.0.0-internal.6.5.0",
|
|
63
63
|
"@microsoft/api-extractor": "^7.34.4",
|
|
64
64
|
"@types/double-ended-queue": "^2.1.0",
|
|
65
65
|
"@types/events": "^3.0.0",
|
package/src/connectionManager.ts
CHANGED
|
@@ -432,21 +432,7 @@ export class ConnectionManager implements IConnectionManager {
|
|
|
432
432
|
}
|
|
433
433
|
|
|
434
434
|
/**
|
|
435
|
-
*
|
|
436
|
-
* Hosts may have read only views, indicating to data stores that no edits are allowed.
|
|
437
|
-
* This is independent from this._readonlyPermissions (permissions) and this.connectionMode
|
|
438
|
-
* (server can return "write" mode even when asked for "read")
|
|
439
|
-
* Leveraging same "readonly" event as runtime & data stores should behave the same in such case
|
|
440
|
-
* as in read-only permissions.
|
|
441
|
-
* But this.active can be used by some DDSes to figure out if ops can be sent
|
|
442
|
-
* (for example, read-only view still participates in code proposals / upgrades decisions)
|
|
443
|
-
*
|
|
444
|
-
* Forcing Readonly does not prevent DDS from generating ops. It is up to user code to honour
|
|
445
|
-
* the readonly flag. If ops are generated, they will accumulate locally and not be sent. If
|
|
446
|
-
* there are pending in the outbound queue, it will stop sending until force readonly is
|
|
447
|
-
* cleared.
|
|
448
|
-
*
|
|
449
|
-
* @param readonly - set or clear force readonly.
|
|
435
|
+
* {@inheritDoc Container.forceReadonly}
|
|
450
436
|
*/
|
|
451
437
|
public forceReadonly(readonly: boolean) {
|
|
452
438
|
if (readonly !== this._forceReadonly) {
|
package/src/container.ts
CHANGED
|
@@ -619,7 +619,21 @@ export class Container
|
|
|
619
619
|
}
|
|
620
620
|
|
|
621
621
|
/**
|
|
622
|
-
*
|
|
622
|
+
* Sends signal to runtime (and data stores) to be read-only.
|
|
623
|
+
* Hosts may have read only views, indicating to data stores that no edits are allowed.
|
|
624
|
+
* This is independent from this._readonlyPermissions (permissions) and this.connectionMode
|
|
625
|
+
* (server can return "write" mode even when asked for "read")
|
|
626
|
+
* Leveraging same "readonly" event as runtime & data stores should behave the same in such case
|
|
627
|
+
* as in read-only permissions.
|
|
628
|
+
* But this.active can be used by some DDSes to figure out if ops can be sent
|
|
629
|
+
* (for example, read-only view still participates in code proposals / upgrades decisions)
|
|
630
|
+
*
|
|
631
|
+
* Forcing Readonly does not prevent DDS from generating ops. It is up to user code to honour
|
|
632
|
+
* the readonly flag. If ops are generated, they will accumulate locally and not be sent. If
|
|
633
|
+
* there are pending in the outbound queue, it will stop sending until force readonly is
|
|
634
|
+
* cleared.
|
|
635
|
+
*
|
|
636
|
+
* @param readonly - set or clear force readonly.
|
|
623
637
|
*/
|
|
624
638
|
public forceReadonly(readonly: boolean) {
|
|
625
639
|
this._deltaManager.connectionManager.forceReadonly(readonly);
|
package/src/debugLogger.ts
CHANGED
package/src/deltaManager.ts
CHANGED
|
@@ -368,7 +368,7 @@ export class DeltaManager<TConnectionManager extends IConnectionManager>
|
|
|
368
368
|
assert(this.connectionManager.connected, 0x238 /* "called only in connected state" */);
|
|
369
369
|
|
|
370
370
|
const pendingSorted = this.pending.sort((a, b) => a.sequenceNumber - b.sequenceNumber);
|
|
371
|
-
this.logger.
|
|
371
|
+
this.logger.sendTelemetryEvent({
|
|
372
372
|
...event,
|
|
373
373
|
// This directly tells us if fetching ops is in flight, and thus likely the reason of
|
|
374
374
|
// stalled op processing
|
package/src/loader.ts
CHANGED
|
@@ -151,7 +151,7 @@ export interface ICodeDetailsLoader extends Partial<IProvideFluidCodeDetailsComp
|
|
|
151
151
|
* Load the code module (package) that is capable to interact with the document.
|
|
152
152
|
*
|
|
153
153
|
* @param source - Code proposal that articulates the current schema the document is written in.
|
|
154
|
-
* @returns
|
|
154
|
+
* @returns Code module entry point along with the code details associated with it.
|
|
155
155
|
*/
|
|
156
156
|
load(source: IFluidCodeDetails): Promise<IFluidModuleWithDetails>;
|
|
157
157
|
}
|
package/src/packageVersion.ts
CHANGED