fluid-framework 2.0.0-internal.3.0.5 → 2.0.0-internal.3.1.1
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/.eslintrc.js +6 -8
- package/.npmpackagejsonlintrc.json +3 -3
- package/README.md +9 -7
- package/api-extractor.json +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +74 -73
- package/prettier.config.cjs +1 -1
- package/src/index.ts +3 -3
- package/tsconfig.esnext.json +6 -6
- package/tsconfig.json +10 -16
package/.eslintrc.js
CHANGED
|
@@ -4,11 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
module.exports = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"rules": {},
|
|
14
|
-
}
|
|
7
|
+
extends: ["@fluidframework/eslint-config-fluid/strict", "prettier"],
|
|
8
|
+
parserOptions: {
|
|
9
|
+
project: ["./tsconfig.json", "./src/test/tsconfig.json"],
|
|
10
|
+
},
|
|
11
|
+
rules: {},
|
|
12
|
+
};
|
package/README.md
CHANGED
|
@@ -4,15 +4,16 @@ The `fluid-framework` package bundles a collection of Fluid Framework client pac
|
|
|
4
4
|
|
|
5
5
|
## Contents
|
|
6
6
|
|
|
7
|
-
The `fluid-framework` package consists primarily of two portions:
|
|
7
|
+
The `fluid-framework` package consists primarily of two portions: the `IFluidContainer` and a selection of distributed data structures (DDSes).
|
|
8
8
|
|
|
9
9
|
### IFluidContainer
|
|
10
10
|
|
|
11
|
-
The **[IFluidContainer][]** interface is the one of the types returned by calls to `createContainer()` and `getContainer()` on the service clients such as `AzureClient`.
|
|
11
|
+
The **[IFluidContainer][]** interface is the one of the types returned by calls to `createContainer()` and `getContainer()` on the service clients such as `AzureClient`. It includes functionality to retrieve the Fluid data contained within, as well as to inspect the state of the collaboration session connection.
|
|
12
12
|
|
|
13
13
|
### DDS packages
|
|
14
14
|
|
|
15
|
-
You'll use one or more DDS data structures in your container to model your collaborative data.
|
|
15
|
+
You'll use one or more DDS data structures in your container to model your collaborative data. The `fluid-framework` package comes with three data structures that cover a broad range of scenarios:
|
|
16
|
+
|
|
16
17
|
1. **[SharedMap][]**, a map-like data structure for storing key/value pair data
|
|
17
18
|
2. **[SharedDirectory][]**, a map-like data structure with ability to organize keys into subdirectories
|
|
18
19
|
3. **[SharedString][]**, a data structure for string data
|
|
@@ -24,7 +25,8 @@ Check out the Hello World tutorial using the `fluid-framework` package [here](ht
|
|
|
24
25
|
See [GitHub](https://github.com/microsoft/FluidFramework) for more details on the Fluid Framework and packages within.
|
|
25
26
|
|
|
26
27
|
<!-- Links -->
|
|
27
|
-
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
28
|
+
|
|
29
|
+
[ifluidcontainer]: https://fluidframework.com/docs/apis/fluid-static/ifluidcontainer/
|
|
30
|
+
[sharedmap]: https://fluidframework.com/docs/apis/map/sharedmap/
|
|
31
|
+
[shareddirectory]: https://fluidframework.com/docs/apis/map/shareddirectory/
|
|
32
|
+
[sharedstring]: https://fluidframework.com/docs/apis/sequence/sharedstring/
|
package/api-extractor.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
|
3
|
+
"extends": "@fluidframework/build-common/api-extractor-common-strict.json"
|
|
4
4
|
}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"m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b,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,+BAA+B,EAC/B,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACnB,WAAW,GACX,MAAM,0BAA0B,CAAC"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;;;;;GAMG;AAEH,+EAI+C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;;;;;GAMG;AAEH,+EAI+C;AAH9C,oHAAA,WAAW,OAAA;AACX,2HAAA,kBAAkB,OAAA;AAGnB,yEAAqE;AAA5D,qHAAA,eAAe,OAAA;AACxB,qEAAmE;AAA1D,mHAAA,eAAe,OAAA;AACxB,6DAqBsC;AAlBrC,iIAAA,iCAAiC,OAAA;AACjC,8GAAA,cAAc,OAAA;AAad,8GAAA,cAAc,OAAA;AAEd,+GAAA,eAAe,OAAA;AAGhB,2CA4B6B;AA3B5B,uGAAA,gBAAgB,OAAA;AAuBhB,sGAAA,eAAe,OAAA;AACf,iGAAA,UAAU,OAAA;AACV,sGAAA,eAAe,OAAA;AACf,gGAAA,SAAS,OAAA;AAEV,qDAqCkC;AAlCjC,6GAAA,iBAAiB,OAAA;AAMjB,oGAAA,QAAQ,OAAA;AACR,8GAAA,kBAAkB,OAAA;AAClB,sHAAA,0BAA0B,OAAA;AAG1B,uHAAA,2BAA2B,OAAA;AAC3B,wGAAA,YAAY,OAAA;AASZ,8GAAA,kBAAkB,OAAA;AAClB,yGAAA,aAAa,OAAA;AACb,4GAAA,gBAAgB,OAAA;AAChB,oHAAA,wBAAwB,OAAA;AAExB,oHAAA,wBAAwB,OAAA;AACxB,2HAAA,+BAA+B,OAAA;AAC/B,iHAAA,qBAAqB,OAAA;AACrB,0GAAA,cAAc,OAAA;AACd,wGAAA,YAAY,OAAA;AACZ,+GAAA,mBAAmB,OAAA;AAEnB,uGAAA,WAAW,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * The **fluid-framework** package bundles a collection of Fluid Framework client libraries for easy use\n * when paired with a corresponding service client library (for example,\n * `\\@fluidframework/azure-client` or `\\@fluidframework/tinylicious-client`).\n *\n * @packageDocumentation\n */\n\nexport {\n\tAttachState,\n\tContainerErrorType,\n\tICriticalContainerError,\n} from \"@fluidframework/container-definitions\";\nexport { DriverErrorType } from \"@fluidframework/driver-definitions\";\nexport { ConnectionState } from \"@fluidframework/container-loader\";\nexport {\n\tContainerSchema,\n\tDataObjectClass,\n\tDOProviderContainerRuntimeFactory,\n\tFluidContainer,\n\tIConnection,\n\tIFluidContainer,\n\tIFluidContainerEvents,\n\tIMember,\n\tIRootDataObject,\n\tIServiceAudience,\n\tIServiceAudienceEvents,\n\tLoadableObjectClass,\n\tLoadableObjectClassRecord,\n\tLoadableObjectCtor,\n\tLoadableObjectRecord,\n\tMemberChangedListener,\n\tRootDataObject,\n\tRootDataObjectProps,\n\tServiceAudience,\n\tSharedObjectClass,\n} from \"@fluidframework/fluid-static\";\nexport {\n\tDirectoryFactory,\n\tIDirectory,\n\tIDirectoryClearOperation,\n\tIDirectoryCreateSubDirectoryOperation,\n\tIDirectoryDataObject,\n\tIDirectoryDeleteOperation,\n\tIDirectoryDeleteSubDirectoryOperation,\n\tIDirectoryEvents,\n\tIDirectoryKeyOperation,\n\tIDirectoryNewStorageFormat,\n\tIDirectoryOperation,\n\tIDirectorySetOperation,\n\tIDirectoryStorageOperation,\n\tIDirectorySubDirectoryOperation,\n\tIDirectoryValueChanged,\n\tILocalValue,\n\tISerializableValue,\n\tISerializedValue,\n\tISharedDirectory,\n\tISharedDirectoryEvents,\n\tISharedMap,\n\tISharedMapEvents,\n\tIValueChanged,\n\tLocalValueMaker,\n\tMapFactory,\n\tSharedDirectory,\n\tSharedMap,\n} from \"@fluidframework/map\";\nexport {\n\tCompressedSerializedInterval,\n\tDeserializeCallback,\n\tgetTextAndMarkers,\n\tIInterval,\n\tIIntervalCollectionEvent,\n\tIIntervalHelpers,\n\tIJSONRunSegment,\n\tIMapMessageLocalMetadata,\n\tInterval,\n\tIntervalCollection,\n\tIntervalCollectionIterator,\n\tIntervalConflictResolver,\n\tIntervalLocator,\n\tintervalLocatorFromEndpoint,\n\tIntervalType,\n\tISequenceDeltaRange,\n\tISerializableInterval,\n\tISerializedInterval,\n\tISerializedIntervalCollectionV2,\n\tISharedIntervalCollection,\n\tISharedSegmentSequenceEvents,\n\tISharedString,\n\tIValueOpEmitter,\n\tSequenceDeltaEvent,\n\tSequenceEvent,\n\tSequenceInterval,\n\tSequenceMaintenanceEvent,\n\tSerializedIntervalDelta,\n\tSharedIntervalCollection,\n\tSharedIntervalCollectionFactory,\n\tSharedSegmentSequence,\n\tSharedSequence,\n\tSharedString,\n\tSharedStringFactory,\n\tSharedStringSegment,\n\tSubSequence,\n} from \"@fluidframework/sequence\";\n"]}
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AAEH,OAAO,EACN,WAAW,EACX,kBAAkB,EAClB,uBAAuB,GACvB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EACN,eAAe,EACf,eAAe,EACf,iCA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1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AAEH,OAAO,EACN,WAAW,EACX,kBAAkB,GAElB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAGN,iCAAiC,EACjC,cAAc,EAad,cAAc,EAEd,eAAe,GAEf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,gBAAgB,EAuBhB,eAAe,EACf,UAAU,EACV,eAAe,EACf,SAAS,GACT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGN,iBAAiB,EAMjB,QAAQ,EACR,kBAAkB,EAClB,0BAA0B,EAG1B,2BAA2B,EAC3B,YAAY,EASZ,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,wBAAwB,EAExB,wBAAwB,EACxB,+BAA+B,EAC/B,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,mBAAmB,EAEnB,WAAW,GACX,MAAM,0BAA0B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * The **fluid-framework** package bundles a collection of Fluid Framework client libraries for easy use\n * when paired with a corresponding service client library (for example,\n * `\\@fluidframework/azure-client` or `\\@fluidframework/tinylicious-client`).\n *\n * @packageDocumentation\n */\n\nexport {\n\tAttachState,\n\tContainerErrorType,\n\tICriticalContainerError,\n} from \"@fluidframework/container-definitions\";\nexport { DriverErrorType } from \"@fluidframework/driver-definitions\";\nexport { ConnectionState } from \"@fluidframework/container-loader\";\nexport {\n\tContainerSchema,\n\tDataObjectClass,\n\tDOProviderContainerRuntimeFactory,\n\tFluidContainer,\n\tIConnection,\n\tIFluidContainer,\n\tIFluidContainerEvents,\n\tIMember,\n\tIRootDataObject,\n\tIServiceAudience,\n\tIServiceAudienceEvents,\n\tLoadableObjectClass,\n\tLoadableObjectClassRecord,\n\tLoadableObjectCtor,\n\tLoadableObjectRecord,\n\tMemberChangedListener,\n\tRootDataObject,\n\tRootDataObjectProps,\n\tServiceAudience,\n\tSharedObjectClass,\n} from \"@fluidframework/fluid-static\";\nexport {\n\tDirectoryFactory,\n\tIDirectory,\n\tIDirectoryClearOperation,\n\tIDirectoryCreateSubDirectoryOperation,\n\tIDirectoryDataObject,\n\tIDirectoryDeleteOperation,\n\tIDirectoryDeleteSubDirectoryOperation,\n\tIDirectoryEvents,\n\tIDirectoryKeyOperation,\n\tIDirectoryNewStorageFormat,\n\tIDirectoryOperation,\n\tIDirectorySetOperation,\n\tIDirectoryStorageOperation,\n\tIDirectorySubDirectoryOperation,\n\tIDirectoryValueChanged,\n\tILocalValue,\n\tISerializableValue,\n\tISerializedValue,\n\tISharedDirectory,\n\tISharedDirectoryEvents,\n\tISharedMap,\n\tISharedMapEvents,\n\tIValueChanged,\n\tLocalValueMaker,\n\tMapFactory,\n\tSharedDirectory,\n\tSharedMap,\n} from \"@fluidframework/map\";\nexport {\n\tCompressedSerializedInterval,\n\tDeserializeCallback,\n\tgetTextAndMarkers,\n\tIInterval,\n\tIIntervalCollectionEvent,\n\tIIntervalHelpers,\n\tIJSONRunSegment,\n\tIMapMessageLocalMetadata,\n\tInterval,\n\tIntervalCollection,\n\tIntervalCollectionIterator,\n\tIntervalConflictResolver,\n\tIntervalLocator,\n\tintervalLocatorFromEndpoint,\n\tIntervalType,\n\tISequenceDeltaRange,\n\tISerializableInterval,\n\tISerializedInterval,\n\tISerializedIntervalCollectionV2,\n\tISharedIntervalCollection,\n\tISharedSegmentSequenceEvents,\n\tISharedString,\n\tIValueOpEmitter,\n\tSequenceDeltaEvent,\n\tSequenceEvent,\n\tSequenceInterval,\n\tSequenceMaintenanceEvent,\n\tSerializedIntervalDelta,\n\tSharedIntervalCollection,\n\tSharedIntervalCollectionFactory,\n\tSharedSegmentSequence,\n\tSharedSequence,\n\tSharedString,\n\tSharedStringFactory,\n\tSharedStringSegment,\n\tSubSequence,\n} from \"@fluidframework/sequence\";\n"]}
|
package/package.json
CHANGED
|
@@ -1,75 +1,76 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
2
|
+
"name": "fluid-framework",
|
|
3
|
+
"version": "2.0.0-internal.3.1.1",
|
|
4
|
+
"description": "The main entry point into Fluid Framework public packages",
|
|
5
|
+
"homepage": "https://fluidframework.com",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/microsoft/FluidFramework.git",
|
|
9
|
+
"directory": "packages/framework/fluid-framework"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"author": "Microsoft and contributors",
|
|
13
|
+
"sideEffects": false,
|
|
14
|
+
"main": "dist/index.js",
|
|
15
|
+
"module": "lib/index.js",
|
|
16
|
+
"types": "dist/index.d.ts",
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "concurrently npm:build:compile npm:lint && npm run build:docs",
|
|
19
|
+
"build:commonjs": "npm run tsc && npm run typetests:gen && npm run build:test",
|
|
20
|
+
"build:compile": "concurrently npm:build:commonjs npm:build:esnext",
|
|
21
|
+
"build:docs": "api-extractor run --local --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../_api-extractor-temp/",
|
|
22
|
+
"build:esnext": "tsc --project ./tsconfig.esnext.json",
|
|
23
|
+
"build:full": "npm run build",
|
|
24
|
+
"build:full:compile": "npm run build:compile",
|
|
25
|
+
"build:test": "tsc --project ./src/test/tsconfig.json",
|
|
26
|
+
"ci:build:docs": "api-extractor run --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/* ../../../_api-extractor-temp/",
|
|
27
|
+
"clean": "rimraf _api-extractor-temp dist lib *.tsbuildinfo *.build.log",
|
|
28
|
+
"eslint": "eslint --format stylish src",
|
|
29
|
+
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
|
|
30
|
+
"format": "npm run prettier:fix",
|
|
31
|
+
"lint": "npm run prettier && npm run eslint",
|
|
32
|
+
"lint:fix": "npm run prettier:fix && npm run eslint:fix",
|
|
33
|
+
"prettier": "prettier --check . --ignore-path ../../../.prettierignore",
|
|
34
|
+
"prettier:fix": "prettier --write . --ignore-path ../../../.prettierignore",
|
|
35
|
+
"tsc": "tsc",
|
|
36
|
+
"typetests:gen": "flub generate typetests --generate --dir .",
|
|
37
|
+
"typetests:prepare": "flub generate typetests --prepare --dir . --pin"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@fluidframework/container-definitions": ">=2.0.0-internal.3.1.1 <2.0.0-internal.4.0.0",
|
|
41
|
+
"@fluidframework/container-loader": ">=2.0.0-internal.3.1.1 <2.0.0-internal.4.0.0",
|
|
42
|
+
"@fluidframework/driver-definitions": ">=2.0.0-internal.3.1.1 <2.0.0-internal.4.0.0",
|
|
43
|
+
"@fluidframework/fluid-static": ">=2.0.0-internal.3.1.1 <2.0.0-internal.4.0.0",
|
|
44
|
+
"@fluidframework/map": ">=2.0.0-internal.3.1.1 <2.0.0-internal.4.0.0",
|
|
45
|
+
"@fluidframework/sequence": ">=2.0.0-internal.3.1.1 <2.0.0-internal.4.0.0"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@fluid-tools/build-cli": "^0.9.0",
|
|
49
|
+
"@fluidframework/build-common": "^1.1.0",
|
|
50
|
+
"@fluidframework/build-tools": "^0.9.0",
|
|
51
|
+
"@fluidframework/eslint-config-fluid": "^2.0.0",
|
|
52
|
+
"@microsoft/api-extractor": "^7.22.2",
|
|
53
|
+
"@rushstack/eslint-config": "^2.5.1",
|
|
54
|
+
"@types/mocha": "^9.1.1",
|
|
55
|
+
"@types/node": "^14.18.36",
|
|
56
|
+
"concurrently": "^6.2.0",
|
|
57
|
+
"copyfiles": "^2.4.1",
|
|
58
|
+
"cross-env": "^7.0.2",
|
|
59
|
+
"eslint": "~8.6.0",
|
|
60
|
+
"fluid-framework-previous": "npm:fluid-framework@2.0.0-internal.2.1.0",
|
|
61
|
+
"prettier": "~2.6.2",
|
|
62
|
+
"rimraf": "^2.6.2",
|
|
63
|
+
"typescript": "~4.5.5"
|
|
64
|
+
},
|
|
65
|
+
"typeValidation": {
|
|
66
|
+
"disabled": true,
|
|
67
|
+
"version": "2.0.0-internal.2.2.0",
|
|
68
|
+
"baselineRange": ">=2.0.0-internal.2.1.0 <2.0.0-internal.2.2.0",
|
|
69
|
+
"baselineVersion": "2.0.0-internal.2.1.0",
|
|
70
|
+
"broken": {
|
|
71
|
+
"EnumDeclaration_DriverErrorType": {
|
|
72
|
+
"backCompat": false
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
75
76
|
}
|
package/prettier.config.cjs
CHANGED
package/src/index.ts
CHANGED
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
AttachState,
|
|
16
|
+
ContainerErrorType,
|
|
17
|
+
ICriticalContainerError,
|
|
18
18
|
} from "@fluidframework/container-definitions";
|
|
19
19
|
export { DriverErrorType } from "@fluidframework/driver-definitions";
|
|
20
20
|
export { ConnectionState } from "@fluidframework/container-loader";
|
package/tsconfig.esnext.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "./lib",
|
|
5
|
+
"module": "esnext",
|
|
6
|
+
},
|
|
7
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
],
|
|
13
|
-
"skipLibCheck": true
|
|
14
|
-
},
|
|
15
|
-
"include": [
|
|
16
|
-
"src/**/*"
|
|
17
|
-
]
|
|
2
|
+
"extends": "@fluidframework/build-common/ts-common-config.json",
|
|
3
|
+
"exclude": ["src/test/**/*"],
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"rootDir": "./src",
|
|
6
|
+
"outDir": "./dist",
|
|
7
|
+
"composite": true,
|
|
8
|
+
"types": ["node"],
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
},
|
|
11
|
+
"include": ["src/**/*"],
|
|
18
12
|
}
|