@fluidframework/datastore 2.0.0-internal.6.1.1 → 2.0.0-internal.6.3.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 +35 -0
- package/README.md +4 -3
- package/dist/channelContext.d.ts.map +1 -1
- package/dist/channelContext.js +2 -3
- package/dist/channelContext.js.map +1 -1
- package/dist/channelDeltaConnection.js +5 -5
- package/dist/channelDeltaConnection.js.map +1 -1
- package/dist/dataStoreRuntime.d.ts +1 -1
- package/dist/dataStoreRuntime.d.ts.map +1 -1
- package/dist/dataStoreRuntime.js +24 -25
- package/dist/dataStoreRuntime.js.map +1 -1
- package/dist/localChannelContext.d.ts +1 -1
- package/dist/localChannelContext.d.ts.map +1 -1
- package/dist/localChannelContext.js +12 -13
- package/dist/localChannelContext.js.map +1 -1
- package/dist/localChannelStorageService.js +2 -2
- package/dist/localChannelStorageService.js.map +1 -1
- package/dist/remoteChannelContext.d.ts.map +1 -1
- package/dist/remoteChannelContext.js +7 -8
- package/dist/remoteChannelContext.js.map +1 -1
- package/lib/channelContext.d.ts.map +1 -1
- package/lib/channelContext.js +1 -2
- package/lib/channelContext.js.map +1 -1
- package/lib/channelDeltaConnection.js +2 -2
- package/lib/channelDeltaConnection.js.map +1 -1
- package/lib/dataStoreRuntime.d.ts +1 -1
- package/lib/dataStoreRuntime.d.ts.map +1 -1
- package/lib/dataStoreRuntime.js +3 -4
- package/lib/dataStoreRuntime.js.map +1 -1
- package/lib/localChannelContext.d.ts +1 -1
- package/lib/localChannelContext.d.ts.map +1 -1
- package/lib/localChannelContext.js +2 -3
- package/lib/localChannelContext.js.map +1 -1
- package/lib/localChannelStorageService.js +1 -1
- package/lib/localChannelStorageService.js.map +1 -1
- package/lib/remoteChannelContext.d.ts.map +1 -1
- package/lib/remoteChannelContext.js +1 -2
- package/lib/remoteChannelContext.js.map +1 -1
- package/package.json +29 -28
- package/src/channelContext.ts +5 -2
- package/src/channelDeltaConnection.ts +2 -2
- package/src/dataStoreRuntime.ts +4 -3
- package/src/localChannelContext.ts +2 -4
- package/src/localChannelStorageService.ts +1 -1
- package/src/remoteChannelContext.ts +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/datastore",
|
|
3
|
-
"version": "2.0.0-internal.6.
|
|
3
|
+
"version": "2.0.0-internal.6.3.0",
|
|
4
4
|
"description": "Fluid data store implementation",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"main": "dist/index.js",
|
|
15
15
|
"module": "lib/index.js",
|
|
16
16
|
"types": "dist/index.d.ts",
|
|
17
|
-
"
|
|
17
|
+
"c8": {
|
|
18
18
|
"all": true,
|
|
19
19
|
"cache-dir": "nyc/.cache",
|
|
20
20
|
"exclude": [
|
|
@@ -35,36 +35,35 @@
|
|
|
35
35
|
"temp-directory": "nyc/.nyc_output"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@
|
|
39
|
-
"@fluidframework/
|
|
40
|
-
"@fluidframework/container-
|
|
41
|
-
"@fluidframework/
|
|
42
|
-
"@fluidframework/core-
|
|
43
|
-
"@fluidframework/
|
|
44
|
-
"@fluidframework/
|
|
45
|
-
"@fluidframework/driver-
|
|
46
|
-
"@fluidframework/
|
|
47
|
-
"@fluidframework/protocol-base": "^1.0.0",
|
|
38
|
+
"@fluid-internal/client-utils": ">=2.0.0-internal.6.3.0 <2.0.0-internal.6.4.0",
|
|
39
|
+
"@fluidframework/container-definitions": ">=2.0.0-internal.6.3.0 <2.0.0-internal.6.4.0",
|
|
40
|
+
"@fluidframework/container-utils": ">=2.0.0-internal.6.3.0 <2.0.0-internal.6.4.0",
|
|
41
|
+
"@fluidframework/core-interfaces": ">=2.0.0-internal.6.3.0 <2.0.0-internal.6.4.0",
|
|
42
|
+
"@fluidframework/core-utils": ">=2.0.0-internal.6.3.0 <2.0.0-internal.6.4.0",
|
|
43
|
+
"@fluidframework/datastore-definitions": ">=2.0.0-internal.6.3.0 <2.0.0-internal.6.4.0",
|
|
44
|
+
"@fluidframework/driver-definitions": ">=2.0.0-internal.6.3.0 <2.0.0-internal.6.4.0",
|
|
45
|
+
"@fluidframework/driver-utils": ">=2.0.0-internal.6.3.0 <2.0.0-internal.6.4.0",
|
|
46
|
+
"@fluidframework/protocol-base": "^1.0.1",
|
|
48
47
|
"@fluidframework/protocol-definitions": "^1.1.0",
|
|
49
|
-
"@fluidframework/runtime-definitions": ">=2.0.0-internal.6.
|
|
50
|
-
"@fluidframework/runtime-utils": ">=2.0.0-internal.6.
|
|
51
|
-
"@fluidframework/telemetry-utils": ">=2.0.0-internal.6.
|
|
48
|
+
"@fluidframework/runtime-definitions": ">=2.0.0-internal.6.3.0 <2.0.0-internal.6.4.0",
|
|
49
|
+
"@fluidframework/runtime-utils": ">=2.0.0-internal.6.3.0 <2.0.0-internal.6.4.0",
|
|
50
|
+
"@fluidframework/telemetry-utils": ">=2.0.0-internal.6.3.0 <2.0.0-internal.6.4.0",
|
|
52
51
|
"lodash": "^4.17.21",
|
|
53
|
-
"uuid": "^
|
|
52
|
+
"uuid": "^9.0.0"
|
|
54
53
|
},
|
|
55
54
|
"devDependencies": {
|
|
56
55
|
"@fluid-tools/build-cli": "^0.22.0",
|
|
57
56
|
"@fluidframework/build-common": "^2.0.0",
|
|
58
57
|
"@fluidframework/build-tools": "^0.22.0",
|
|
59
|
-
"@fluidframework/datastore-previous": "npm:@fluidframework/datastore@2.0.0-internal.6.
|
|
60
|
-
"@fluidframework/eslint-config-fluid": "^2.
|
|
61
|
-
"@fluidframework/mocha-test-setup": ">=2.0.0-internal.6.
|
|
62
|
-
"@fluidframework/test-runtime-utils": ">=2.0.0-internal.6.
|
|
58
|
+
"@fluidframework/datastore-previous": "npm:@fluidframework/datastore@2.0.0-internal.6.1.1",
|
|
59
|
+
"@fluidframework/eslint-config-fluid": "^2.1.0",
|
|
60
|
+
"@fluidframework/mocha-test-setup": ">=2.0.0-internal.6.3.0 <2.0.0-internal.6.4.0",
|
|
61
|
+
"@fluidframework/test-runtime-utils": ">=2.0.0-internal.6.3.0 <2.0.0-internal.6.4.0",
|
|
63
62
|
"@microsoft/api-extractor": "^7.34.4",
|
|
64
63
|
"@types/mocha": "^9.1.1",
|
|
65
64
|
"@types/node": "^16.18.38",
|
|
66
|
-
"@types/uuid": "^
|
|
67
|
-
"
|
|
65
|
+
"@types/uuid": "^9.0.2",
|
|
66
|
+
"c8": "^7.7.1",
|
|
68
67
|
"copyfiles": "^2.4.1",
|
|
69
68
|
"cross-env": "^7.0.3",
|
|
70
69
|
"eslint": "~8.6.0",
|
|
@@ -72,13 +71,16 @@
|
|
|
72
71
|
"mocha-json-output-reporter": "^2.0.1",
|
|
73
72
|
"mocha-multi-reporters": "^1.5.1",
|
|
74
73
|
"moment": "^2.21.0",
|
|
75
|
-
"nyc": "^15.1.0",
|
|
76
74
|
"prettier": "~2.6.2",
|
|
77
75
|
"rimraf": "^4.4.0",
|
|
78
76
|
"typescript": "~4.5.5"
|
|
79
77
|
},
|
|
80
78
|
"typeValidation": {
|
|
81
|
-
"broken": {
|
|
79
|
+
"broken": {
|
|
80
|
+
"ClassDeclaration_FluidDataStoreRuntime": {
|
|
81
|
+
"backCompat": false
|
|
82
|
+
}
|
|
83
|
+
}
|
|
82
84
|
},
|
|
83
85
|
"scripts": {
|
|
84
86
|
"build": "fluid-build . --task build",
|
|
@@ -88,7 +90,7 @@
|
|
|
88
90
|
"build:esnext": "tsc --project ./tsconfig.esnext.json",
|
|
89
91
|
"build:test": "tsc --project ./src/test/tsconfig.json",
|
|
90
92
|
"ci:build:docs": "api-extractor run --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/* ../../../_api-extractor-temp/",
|
|
91
|
-
"clean": "rimraf --glob
|
|
93
|
+
"clean": "rimraf --glob 'dist' 'lib' '*.tsbuildinfo' '*.build.log' '_api-extractor-temp' 'nyc'",
|
|
92
94
|
"eslint": "eslint --format stylish src",
|
|
93
95
|
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
|
|
94
96
|
"format": "npm run prettier:fix",
|
|
@@ -97,9 +99,8 @@
|
|
|
97
99
|
"prettier": "prettier --check . --ignore-path ../../../.prettierignore",
|
|
98
100
|
"prettier:fix": "prettier --write . --ignore-path ../../../.prettierignore",
|
|
99
101
|
"test": "npm run test:mocha",
|
|
100
|
-
"test:coverage": "
|
|
101
|
-
"test:mocha": "mocha --ignore 'dist/test/types/*' --recursive dist/test --exit -r node_modules/@fluidframework/mocha-test-setup
|
|
102
|
-
"test:mocha:multireport": "cross-env FLUID_TEST_MULTIREPORT=1 npm run test:mocha",
|
|
102
|
+
"test:coverage": "c8 npm test",
|
|
103
|
+
"test:mocha": "mocha --ignore 'dist/test/types/*' --recursive dist/test --exit -r node_modules/@fluidframework/mocha-test-setup",
|
|
103
104
|
"test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
|
|
104
105
|
"tsc": "tsc",
|
|
105
106
|
"tsc:watch": "tsc --watch",
|
package/src/channelContext.ts
CHANGED
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
DataCorruptionError,
|
|
8
|
+
ITelemetryLoggerExt,
|
|
9
|
+
tagCodeArtifacts,
|
|
10
|
+
} from "@fluidframework/telemetry-utils";
|
|
7
11
|
import { IFluidHandle } from "@fluidframework/core-interfaces";
|
|
8
12
|
import {
|
|
9
13
|
IChannel,
|
|
@@ -22,7 +26,6 @@ import {
|
|
|
22
26
|
IFluidDataStoreContext,
|
|
23
27
|
} from "@fluidframework/runtime-definitions";
|
|
24
28
|
import { addBlobToSummary } from "@fluidframework/runtime-utils";
|
|
25
|
-
import { DataCorruptionError } from "@fluidframework/container-utils";
|
|
26
29
|
import { readAndParse } from "@fluidframework/driver-utils";
|
|
27
30
|
import { ChannelStorageService } from "./channelStorageService";
|
|
28
31
|
import { ChannelDeltaConnection } from "./channelDeltaConnection";
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { assert } from "@fluidframework/
|
|
6
|
+
import { assert } from "@fluidframework/core-utils";
|
|
7
7
|
import { ISequencedDocumentMessage } from "@fluidframework/protocol-definitions";
|
|
8
8
|
import { IDeltaConnection, IDeltaHandler } from "@fluidframework/datastore-definitions";
|
|
9
|
-
import { DataProcessingError } from "@fluidframework/
|
|
9
|
+
import { DataProcessingError } from "@fluidframework/telemetry-utils";
|
|
10
10
|
import { IFluidHandle } from "@fluidframework/core-interfaces";
|
|
11
11
|
|
|
12
12
|
export class ChannelDeltaConnection implements IDeltaConnection {
|
package/src/dataStoreRuntime.ts
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
import { TypedEventEmitter } from "@fluid-internal/client-utils";
|
|
6
7
|
import {
|
|
8
|
+
DataProcessingError,
|
|
7
9
|
ITelemetryLoggerExt,
|
|
8
10
|
generateStack,
|
|
9
11
|
LoggingError,
|
|
@@ -11,6 +13,7 @@ import {
|
|
|
11
13
|
raiseConnectedEvent,
|
|
12
14
|
createChildMonitoringContext,
|
|
13
15
|
tagCodeArtifacts,
|
|
16
|
+
UsageError,
|
|
14
17
|
} from "@fluidframework/telemetry-utils";
|
|
15
18
|
import {
|
|
16
19
|
FluidObject,
|
|
@@ -19,15 +22,13 @@ import {
|
|
|
19
22
|
IRequest,
|
|
20
23
|
IResponse,
|
|
21
24
|
} from "@fluidframework/core-interfaces";
|
|
22
|
-
import { LazyPromise } from "@fluidframework/core-utils";
|
|
25
|
+
import { assert, Deferred, LazyPromise, unreachableCase } from "@fluidframework/core-utils";
|
|
23
26
|
import {
|
|
24
27
|
IAudience,
|
|
25
28
|
IDeltaManager,
|
|
26
29
|
AttachState,
|
|
27
30
|
ILoaderOptions,
|
|
28
31
|
} from "@fluidframework/container-definitions";
|
|
29
|
-
import { DataProcessingError, UsageError } from "@fluidframework/container-utils";
|
|
30
|
-
import { assert, Deferred, TypedEventEmitter, unreachableCase } from "@fluidframework/common-utils";
|
|
31
32
|
import { buildSnapshotTree } from "@fluidframework/driver-utils";
|
|
32
33
|
import {
|
|
33
34
|
IClientDetails,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line import/no-internal-modules
|
|
7
7
|
import cloneDeep from "lodash/cloneDeep";
|
|
8
|
-
import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils";
|
|
8
|
+
import { DataProcessingError, ITelemetryLoggerExt } from "@fluidframework/telemetry-utils";
|
|
9
9
|
import { IDocumentStorageService } from "@fluidframework/driver-definitions";
|
|
10
10
|
import { ISequencedDocumentMessage, ISnapshotTree } from "@fluidframework/protocol-definitions";
|
|
11
11
|
import { IChannel, IFluidDataStoreRuntime } from "@fluidframework/datastore-definitions";
|
|
@@ -15,10 +15,8 @@ import {
|
|
|
15
15
|
ISummarizeResult,
|
|
16
16
|
ITelemetryContext,
|
|
17
17
|
} from "@fluidframework/runtime-definitions";
|
|
18
|
-
import {
|
|
19
|
-
import { assert } from "@fluidframework/common-utils";
|
|
18
|
+
import { assert, Lazy, LazyPromise } from "@fluidframework/core-utils";
|
|
20
19
|
import { IFluidHandle } from "@fluidframework/core-interfaces";
|
|
21
|
-
import { Lazy, LazyPromise } from "@fluidframework/core-utils";
|
|
22
20
|
import {
|
|
23
21
|
ChannelServiceEndpoints,
|
|
24
22
|
createChannelServiceEndpoints,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { IChannelStorageService } from "@fluidframework/datastore-definitions";
|
|
7
|
-
import { stringToBuffer } from "@
|
|
7
|
+
import { stringToBuffer } from "@fluid-internal/client-utils";
|
|
8
8
|
import { IBlob, ITree, TreeEntry } from "@fluidframework/protocol-definitions";
|
|
9
9
|
import { listBlobsAtTreePath } from "@fluidframework/runtime-utils";
|
|
10
10
|
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { assert } from "@fluidframework/
|
|
6
|
+
import { assert, LazyPromise } from "@fluidframework/core-utils";
|
|
7
7
|
import { IFluidHandle } from "@fluidframework/core-interfaces";
|
|
8
|
-
import { LazyPromise } from "@fluidframework/core-utils";
|
|
9
8
|
import { IChannel, IFluidDataStoreRuntime } from "@fluidframework/datastore-definitions";
|
|
10
9
|
import { IDocumentStorageService } from "@fluidframework/driver-definitions";
|
|
11
10
|
import { ISequencedDocumentMessage, ISnapshotTree } from "@fluidframework/protocol-definitions";
|