@fluidframework/container-loader 2.1.0-281041 → 2.2.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 +14 -0
- package/README.md +131 -30
- package/api-report/container-loader.legacy.alpha.api.md +2 -2
- package/dist/container.d.ts +4 -0
- package/dist/container.d.ts.map +1 -1
- package/dist/container.js +6 -2
- package/dist/container.js.map +1 -1
- package/dist/containerStorageAdapter.js +2 -2
- package/dist/containerStorageAdapter.js.map +1 -1
- package/dist/deltaManager.d.ts.map +1 -1
- package/dist/deltaManager.js +11 -3
- package/dist/deltaManager.js.map +1 -1
- package/dist/loader.d.ts +7 -0
- package/dist/loader.d.ts.map +1 -1
- package/dist/loader.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.d.ts.map +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/lib/container.d.ts +4 -0
- package/lib/container.d.ts.map +1 -1
- package/lib/container.js +6 -2
- package/lib/container.js.map +1 -1
- package/lib/containerStorageAdapter.js +2 -2
- package/lib/containerStorageAdapter.js.map +1 -1
- package/lib/deltaManager.d.ts.map +1 -1
- package/lib/deltaManager.js +11 -3
- package/lib/deltaManager.js.map +1 -1
- package/lib/loader.d.ts +7 -0
- package/lib/loader.d.ts.map +1 -1
- package/lib/loader.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.d.ts.map +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/package.json +14 -14
- package/src/container.ts +9 -3
- package/src/containerStorageAdapter.ts +5 -2
- package/src/deltaManager.ts +13 -4
- package/src/loader.ts +7 -0
- package/src/packageVersion.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @fluidframework/container-loader
|
|
2
2
|
|
|
3
|
+
## 2.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- container-loader: summarizeProtocolTree and its corresponding duplicate ILoaderOptions definition is deprecated ([#21999](https://github.com/microsoft/FluidFramework/pull/21999)) [11ccda1597](https://github.com/microsoft/FluidFramework/commit/11ccda15970a10de00facfebfc060bece4a459ba)
|
|
8
|
+
|
|
9
|
+
The `summarizeProtocolTree` property in ILoaderOptions was added to test single-commit summaries during the initial
|
|
10
|
+
implementation phase. The flag is no longer required and should no longer be used, and is now marked deprecated. If a
|
|
11
|
+
driver needs to enable or disable single-commit summaries, it can do so via `IDocumentServicePolicies`.
|
|
12
|
+
|
|
13
|
+
## 2.1.0
|
|
14
|
+
|
|
15
|
+
Dependency updates only.
|
|
16
|
+
|
|
3
17
|
## 2.0.0-rc.5.0.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -1,6 +1,46 @@
|
|
|
1
1
|
# @fluidframework/container-loader
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Topics covered below:**
|
|
4
|
+
|
|
5
|
+
- [@fluidframework/container-loader](#fluidframeworkcontainer-loader)
|
|
6
|
+
- [Using Fluid Framework libraries](#using-fluid-framework-libraries)
|
|
7
|
+
- [Installation](#installation)
|
|
8
|
+
- [Importing from this package](#importing-from-this-package)
|
|
9
|
+
- [API Documentation](#api-documentation)
|
|
10
|
+
- [Fluid Loader](#fluid-loader)
|
|
11
|
+
- [Expectations from host implementers](#expectations-from-host-implementers)
|
|
12
|
+
- [Expectations from container runtime and data store implementers](#expectations-from-container-runtime-and-data-store-implementers)
|
|
13
|
+
- [Container Lifetime](#container-lifetime)
|
|
14
|
+
- [Loading](#loading)
|
|
15
|
+
- [Connectivity](#connectivity)
|
|
16
|
+
- [Closure](#closure)
|
|
17
|
+
- [`Container.close()`](#containerclose)
|
|
18
|
+
- [`Container.dispose()`](#containerdispose)
|
|
19
|
+
- [Audience](#audience)
|
|
20
|
+
- [ClientID and client identification](#clientid-and-client-identification)
|
|
21
|
+
- [Error handling](#error-handling)
|
|
22
|
+
- [Connectivity events](#connectivity-events)
|
|
23
|
+
- [Connection State Transitions Flow Chart](#connection-state-transitions-flow-chart)
|
|
24
|
+
- [Readonly states](#readonly-states)
|
|
25
|
+
- [`readonly`](#readonly)
|
|
26
|
+
- [`permissions`](#permissions)
|
|
27
|
+
- [`forced`](#forced)
|
|
28
|
+
- [`storageOnly`](#storageonly)
|
|
29
|
+
- [Dirty events](#dirty-events)
|
|
30
|
+
- [Minimum Client Requirements](#minimum-client-requirements)
|
|
31
|
+
- [Supported Runtimes](#supported-runtimes)
|
|
32
|
+
- [Supported Tools](#supported-tools)
|
|
33
|
+
- [Module Resolution](#module-resolution)
|
|
34
|
+
- [Module Formats](#module-formats)
|
|
35
|
+
- [Contribution Guidelines](#contribution-guidelines)
|
|
36
|
+
- [Help](#help)
|
|
37
|
+
- [Trademark](#trademark)
|
|
38
|
+
|
|
39
|
+
**Related topics covered elsewhere:**
|
|
40
|
+
|
|
41
|
+
- [Quorum and Proposals](../../../server/routerlicious/packages/protocol-base/README.md)
|
|
42
|
+
|
|
43
|
+
<!-- AUTO-GENERATED-CONTENT:START (LIBRARY_README_HEADER) -->
|
|
4
44
|
|
|
5
45
|
<!-- prettier-ignore-start -->
|
|
6
46
|
<!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
|
|
@@ -13,39 +53,30 @@ library consumers should always prefer `^`.
|
|
|
13
53
|
|
|
14
54
|
If using any of Fluid Framework's unstable APIs (for example, its `beta` APIs), we recommend using a more constrained version range, such as `~`.
|
|
15
55
|
|
|
16
|
-
|
|
56
|
+
## Installation
|
|
17
57
|
|
|
18
|
-
|
|
58
|
+
To get started, install the package by running the following command:
|
|
19
59
|
|
|
20
|
-
|
|
60
|
+
```bash
|
|
61
|
+
npm i @fluidframework/container-loader
|
|
62
|
+
```
|
|
21
63
|
|
|
22
|
-
|
|
23
|
-
- [Using Fluid Framework libraries](#using-fluid-framework-libraries)
|
|
24
|
-
- [Fluid Loader](#fluid-loader)
|
|
25
|
-
- [Expectations from host implementers](#expectations-from-host-implementers)
|
|
26
|
-
- [Expectations from container runtime and data store implementers](#expectations-from-container-runtime-and-data-store-implementers)
|
|
27
|
-
- [Container Lifetime](#container-lifetime)
|
|
28
|
-
- [Loading](#loading)
|
|
29
|
-
- [Connectivity](#connectivity)
|
|
30
|
-
- [Closure](#closure)
|
|
31
|
-
- [`Container.close()`](#containerclose)
|
|
32
|
-
- [`Container.dispose()`](#containerdispose)
|
|
33
|
-
- [Audience](#audience)
|
|
34
|
-
- [ClientID and client identification](#clientid-and-client-identification)
|
|
35
|
-
- [Error handling](#error-handling)
|
|
36
|
-
- [Connectivity events](#connectivity-events)
|
|
37
|
-
- [Connection State Transitions Flow Chart](#connection-state-transitions-flow-chart)
|
|
38
|
-
- [Readonly states](#readonly-states)
|
|
39
|
-
- [`readonly`](#readonly)
|
|
40
|
-
- [`permissions`](#permissions)
|
|
41
|
-
- [`forced`](#forced)
|
|
42
|
-
- [`storageOnly`](#storageonly)
|
|
43
|
-
- [Dirty events](#dirty-events)
|
|
44
|
-
- [Trademark](#trademark)
|
|
64
|
+
## Importing from this package
|
|
45
65
|
|
|
46
|
-
|
|
66
|
+
This package leverages [package.json exports](https://nodejs.org/api/packages.html#exports) to separate its APIs by support level.
|
|
67
|
+
For more information on the related support guarantees, see [API Support Levels](https://fluidframework.com/docs/build/releases-and-apitags/#api-support-levels).
|
|
47
68
|
|
|
48
|
-
|
|
69
|
+
To access the `public` ([SemVer](https://semver.org/)) APIs, import via `@fluidframework/container-loader` like normal.
|
|
70
|
+
|
|
71
|
+
To access the `legacy` APIs, import via `@fluidframework/container-loader/legacy`.
|
|
72
|
+
|
|
73
|
+
## API Documentation
|
|
74
|
+
|
|
75
|
+
API documentation for **@fluidframework/container-loader** is available at <https://fluidframework.com/docs/apis/container-loader>.
|
|
76
|
+
|
|
77
|
+
<!-- prettier-ignore-end -->
|
|
78
|
+
|
|
79
|
+
<!-- AUTO-GENERATED-CONTENT:END -->
|
|
49
80
|
|
|
50
81
|
## Fluid Loader
|
|
51
82
|
|
|
@@ -264,11 +295,81 @@ Note that when an active connection is in place, it's just a matter of time befo
|
|
|
264
295
|
|
|
265
296
|
`Container.isDirty` can be used to get current state of container.
|
|
266
297
|
|
|
267
|
-
<!-- AUTO-GENERATED-CONTENT:START (
|
|
298
|
+
<!-- AUTO-GENERATED-CONTENT:START (README_FOOTER) -->
|
|
268
299
|
|
|
269
300
|
<!-- prettier-ignore-start -->
|
|
270
301
|
<!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
|
|
271
302
|
|
|
303
|
+
## Minimum Client Requirements
|
|
304
|
+
|
|
305
|
+
These are the platform requirements for the current version of Fluid Framework Client Packages.
|
|
306
|
+
These requirements err on the side of being too strict since within a major version they can be relaxed over time, but not made stricter.
|
|
307
|
+
For Long Term Support (LTS) versions this can require supporting these platforms for several years.
|
|
308
|
+
|
|
309
|
+
It is likely that other configurations will work, but they are not supported: if they stop working, we do not consider that a bug.
|
|
310
|
+
If you would benefit from support for something not listed here, file an issue and the product team will evaluate your request.
|
|
311
|
+
When making such a request please include if the configuration already works (and thus the request is just that it becomes officially supported), or if changes are required to get it working.
|
|
312
|
+
|
|
313
|
+
### Supported Runtimes
|
|
314
|
+
|
|
315
|
+
- NodeJs ^20.10.0 except that we will drop support for it [when NodeJs 20 loses its upstream support on 2026-04-30](https://github.com/nodejs/release#release-schedule), and will support a newer LTS version of NodeJS (22) at least 1 year before 20 is end-of-life. This same policy applies to NodeJS 22 when it is end of life (2027-04-30).
|
|
316
|
+
- Modern browsers supporting the es2022 standard library: in response to asks we can add explicit support for using babel to polyfill to target specific standards or runtimes (meaning we can avoid/remove use of things that don't polyfill robustly, but otherwise target modern standards).
|
|
317
|
+
|
|
318
|
+
### Supported Tools
|
|
319
|
+
|
|
320
|
+
- TypeScript 5.4:
|
|
321
|
+
- All [`strict`](https://www.typescriptlang.org/tsconfig) options are supported.
|
|
322
|
+
- [`strictNullChecks`](https://www.typescriptlang.org/tsconfig) is required.
|
|
323
|
+
- [Configuration options deprecated in 5.0](https://github.com/microsoft/TypeScript/issues/51909) are not supported.
|
|
324
|
+
- `exactOptionalPropertyTypes` is currently not fully supported.
|
|
325
|
+
If used, narrowing members of Fluid Framework types types using `in`, `Reflect.has`, `Object.hasOwn` or `Object.prototype.hasOwnProperty` should be avoided as they may incorrectly exclude `undefined` from the possible values in some cases.
|
|
326
|
+
- [webpack](https://webpack.js.org/) 5
|
|
327
|
+
- We are not intending to be prescriptive about what bundler to use.
|
|
328
|
+
Other bundlers which can handle ES Modules should work, but webpack is the only one we actively test.
|
|
329
|
+
|
|
330
|
+
### Module Resolution
|
|
331
|
+
|
|
332
|
+
[`Node16`, `NodeNext`, or `Bundler`](https://www.typescriptlang.org/tsconfig#moduleResolution) resolution should be used with TypeScript compilerOptions to follow the [Node.js v12+ ESM Resolution and Loading algorithm](https://nodejs.github.io/nodejs.dev/en/api/v20/esm/#resolution-and-loading-algorithm).
|
|
333
|
+
Node10 resolution is not supported as it does not support Fluid Framework's API structuring pattern that is used to distinguish stable APIs from those that are in development.
|
|
334
|
+
|
|
335
|
+
### Module Formats
|
|
336
|
+
|
|
337
|
+
- ES Modules:
|
|
338
|
+
ES Modules are the preferred way to consume our client packages (including in NodeJs) and consuming our client packages from ES Modules is fully supported.
|
|
339
|
+
- CommonJs:
|
|
340
|
+
Consuming our client packages as CommonJs is supported only in NodeJS and only for the cases listed below.
|
|
341
|
+
This is done to accommodate some workflows without good ES Module support.
|
|
342
|
+
If you have a workflow you would like included in this list, file an issue.
|
|
343
|
+
Once this list of workflows motivating CommonJS support is empty, we may drop support for CommonJS one year after notice of the change is posted here.
|
|
344
|
+
|
|
345
|
+
- Testing with Jest (which lacks [stable ESM support](https://jestjs.io/docs/ecmascript-modules) due to [unstable APIs in NodeJs](https://github.com/nodejs/node/issues/37648))
|
|
346
|
+
|
|
347
|
+
## Contribution Guidelines
|
|
348
|
+
|
|
349
|
+
There are many ways to [contribute](https://github.com/microsoft/FluidFramework/blob/main/CONTRIBUTING.md) to Fluid.
|
|
350
|
+
|
|
351
|
+
- Participate in Q&A in our [GitHub Discussions](https://github.com/microsoft/FluidFramework/discussions).
|
|
352
|
+
- [Submit bugs](https://github.com/microsoft/FluidFramework/issues) and help us verify fixes as they are checked in.
|
|
353
|
+
- Review the [source code changes](https://github.com/microsoft/FluidFramework/pulls).
|
|
354
|
+
- [Contribute bug fixes](https://github.com/microsoft/FluidFramework/blob/main/CONTRIBUTING.md).
|
|
355
|
+
|
|
356
|
+
Detailed instructions for working in the repo can be found in the [Wiki](https://github.com/microsoft/FluidFramework/wiki).
|
|
357
|
+
|
|
358
|
+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
|
|
359
|
+
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
|
|
360
|
+
|
|
361
|
+
This project may contain Microsoft trademarks or logos for Microsoft projects, products, or services.
|
|
362
|
+
Use of these trademarks or logos must follow Microsoft’s [Trademark & Brand Guidelines](https://www.microsoft.com/trademarks).
|
|
363
|
+
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
|
|
364
|
+
|
|
365
|
+
## Help
|
|
366
|
+
|
|
367
|
+
Not finding what you're looking for in this README? Check out [fluidframework.com](https://fluidframework.com/docs/).
|
|
368
|
+
|
|
369
|
+
Still not finding what you're looking for? Please [file an issue](https://github.com/microsoft/FluidFramework/wiki/Submitting-Bugs-and-Feature-Requests).
|
|
370
|
+
|
|
371
|
+
Thank you!
|
|
372
|
+
|
|
272
373
|
## Trademark
|
|
273
374
|
|
|
274
375
|
This project may contain Microsoft trademarks or logos for Microsoft projects, products, or services.
|
|
@@ -48,9 +48,9 @@ export interface IFluidModuleWithDetails {
|
|
|
48
48
|
module: IFluidModule;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
// @alpha (undocumented)
|
|
51
|
+
// @alpha @deprecated (undocumented)
|
|
52
52
|
export interface ILoaderOptions extends ILoaderOptions_2 {
|
|
53
|
-
// (undocumented)
|
|
53
|
+
// @deprecated (undocumented)
|
|
54
54
|
summarizeProtocolTree?: boolean;
|
|
55
55
|
}
|
|
56
56
|
|
package/dist/container.d.ts
CHANGED
|
@@ -327,6 +327,10 @@ export declare class Container extends EventEmitterWithErrorHandling<IContainerE
|
|
|
327
327
|
private submitBatch;
|
|
328
328
|
private submitSummaryMessage;
|
|
329
329
|
private submitMessage;
|
|
330
|
+
/**
|
|
331
|
+
* Processes incoming delta messages
|
|
332
|
+
* @param message - delta message received from the server
|
|
333
|
+
*/
|
|
330
334
|
private processRemoteMessage;
|
|
331
335
|
private submitSignal;
|
|
332
336
|
private processSignal;
|
package/dist/container.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../src/container.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EACN,WAAW,EACX,SAAS,EACT,uBAAuB,EACvB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGN,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EASjB,aAAa,EACb,YAAY,EACZ,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACN,WAAW,EAEX,QAAQ,EACR,wBAAwB,EAExB,MAAM,iCAAiC,CAAC;AAGzC,OAAO,EAEN,cAAc,EACd,cAAc,EAId,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAEN,uBAAuB,EAEvB,YAAY,EAGZ,YAAY,EAGZ,gBAAgB,EAOhB,yBAAyB,EAGzB,MAAM,6CAA6C,CAAC;AAYrD,OAAO,EAEN,mBAAmB,EACnB,6BAA6B,EAe7B,MAAM,0CAA0C,CAAC;AAWlD,OAAO,EAAE,eAAe,EAAE,MAAM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AC,wBAAwB;IAgChC,OAAO,CAAC,sBAAsB;IAyB9B;;OAEG;IACH,OAAO,CAAC,WAAW;IAgBnB,OAAO,CAAC,oBAAoB;IAsB5B,OAAO,CAAC,aAAa;IAwBrB;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IAgD5B,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,aAAa;YAUP,kBAAkB;IA8EhC,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAMxC;IAEF;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;IAYhC,OAAO,CAAC,wBAAwB;CAuChC;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAuB,SAAQ,UAAU;IACzD;;;;;OAKG;IACH,oBAAoB,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAEzC;;;OAGG;IACH,4BAA4B,CAAC,CAAC,uBAAuB,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACtF"}
|
package/dist/container.js
CHANGED
|
@@ -1343,12 +1343,12 @@ class Container extends internal_5.EventEmitterWithErrorHandling {
|
|
|
1343
1343
|
return deltaManager;
|
|
1344
1344
|
}
|
|
1345
1345
|
async attachDeltaManagerOpHandler(attributes, prefetchType, lastProcessedSequenceNumber) {
|
|
1346
|
-
return this._deltaManager.attachOpHandler(attributes.minimumSequenceNumber
|
|
1346
|
+
return this._deltaManager.attachOpHandler(attributes.minimumSequenceNumber /* minimumSequenceNumber */, attributes.sequenceNumber /* snapshotSequenceNumber */, {
|
|
1347
1347
|
process: (message) => this.processRemoteMessage(message),
|
|
1348
1348
|
processSignal: (message) => {
|
|
1349
1349
|
this.processSignal(message);
|
|
1350
1350
|
},
|
|
1351
|
-
}
|
|
1351
|
+
} /* handler to process incoming delta messages */, prefetchType, lastProcessedSequenceNumber);
|
|
1352
1352
|
}
|
|
1353
1353
|
logConnectionStateChangeTelemetry(value, oldState, reason) {
|
|
1354
1354
|
// Log actual event
|
|
@@ -1470,6 +1470,10 @@ class Container extends internal_5.EventEmitterWithErrorHandling {
|
|
|
1470
1470
|
this.noopHeuristic?.notifyMessageSent();
|
|
1471
1471
|
return this._deltaManager.submit(type, contents, batch, metadata, compression, referenceSequenceNumber);
|
|
1472
1472
|
}
|
|
1473
|
+
/**
|
|
1474
|
+
* Processes incoming delta messages
|
|
1475
|
+
* @param message - delta message received from the server
|
|
1476
|
+
*/
|
|
1473
1477
|
processRemoteMessage(message) {
|
|
1474
1478
|
const local = this.clientId === message.clientId;
|
|
1475
1479
|
// Allow the protocol handler to process the message
|