@fluidframework/map 2.0.0-dev.4.2.0.153917 → 2.0.0-dev.4.3.0.158678
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/dist/directory.js +6 -1
- package/dist/directory.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/directory.js +6 -1
- package/lib/directory.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 +15 -15
- package/src/directory.ts +7 -1
- package/src/packageVersion.ts +1 -1
package/lib/packageVersion.d.ts
CHANGED
|
@@ -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/map";
|
|
8
|
-
export declare const pkgVersion = "2.0.0-dev.4.
|
|
8
|
+
export declare const pkgVersion = "2.0.0-dev.4.3.0.158678";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
package/lib/packageVersion.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,qBAAqB,CAAC;AAC7C,MAAM,CAAC,MAAM,UAAU,GAAG,wBAAwB,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/map\";\nexport const pkgVersion = \"2.0.0-dev.4.
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,qBAAqB,CAAC;AAC7C,MAAM,CAAC,MAAM,UAAU,GAAG,wBAAwB,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/map\";\nexport const pkgVersion = \"2.0.0-dev.4.3.0.158678\";\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/map",
|
|
3
|
-
"version": "2.0.0-dev.4.
|
|
3
|
+
"version": "2.0.0-dev.4.3.0.158678",
|
|
4
4
|
"description": "Distributed map",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -37,27 +37,27 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@fluidframework/common-definitions": "^0.20.1",
|
|
39
39
|
"@fluidframework/common-utils": "^1.1.1",
|
|
40
|
-
"@fluidframework/container-utils": "2.0.0-dev.4.
|
|
41
|
-
"@fluidframework/core-interfaces": "2.0.0-dev.4.
|
|
42
|
-
"@fluidframework/datastore-definitions": "2.0.0-dev.4.
|
|
43
|
-
"@fluidframework/driver-utils": "2.0.0-dev.4.
|
|
40
|
+
"@fluidframework/container-utils": "2.0.0-dev.4.3.0.158678",
|
|
41
|
+
"@fluidframework/core-interfaces": "2.0.0-dev.4.3.0.158678",
|
|
42
|
+
"@fluidframework/datastore-definitions": "2.0.0-dev.4.3.0.158678",
|
|
43
|
+
"@fluidframework/driver-utils": "2.0.0-dev.4.3.0.158678",
|
|
44
44
|
"@fluidframework/protocol-definitions": "^1.1.0",
|
|
45
|
-
"@fluidframework/runtime-definitions": "2.0.0-dev.4.
|
|
46
|
-
"@fluidframework/runtime-utils": "2.0.0-dev.4.
|
|
47
|
-
"@fluidframework/shared-object-base": "2.0.0-dev.4.
|
|
45
|
+
"@fluidframework/runtime-definitions": "2.0.0-dev.4.3.0.158678",
|
|
46
|
+
"@fluidframework/runtime-utils": "2.0.0-dev.4.3.0.158678",
|
|
47
|
+
"@fluidframework/shared-object-base": "2.0.0-dev.4.3.0.158678",
|
|
48
48
|
"path-browserify": "^1.0.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@fluid-internal/stochastic-test-utils": "2.0.0-dev.4.
|
|
52
|
-
"@fluid-internal/test-dds-utils": "2.0.0-dev.4.
|
|
51
|
+
"@fluid-internal/stochastic-test-utils": "2.0.0-dev.4.3.0.158678",
|
|
52
|
+
"@fluid-internal/test-dds-utils": "2.0.0-dev.4.3.0.158678",
|
|
53
53
|
"@fluid-tools/benchmark": "^0.47.0",
|
|
54
|
-
"@fluid-tools/build-cli": "^0.
|
|
54
|
+
"@fluid-tools/build-cli": "^0.17.0",
|
|
55
55
|
"@fluidframework/build-common": "^1.1.0",
|
|
56
|
-
"@fluidframework/build-tools": "^0.
|
|
56
|
+
"@fluidframework/build-tools": "^0.17.0",
|
|
57
57
|
"@fluidframework/eslint-config-fluid": "^2.0.0",
|
|
58
|
-
"@fluidframework/map-previous": "npm:@fluidframework/map@2.0.0-internal.4.
|
|
59
|
-
"@fluidframework/mocha-test-setup": "2.0.0-dev.4.
|
|
60
|
-
"@fluidframework/test-runtime-utils": "2.0.0-dev.4.
|
|
58
|
+
"@fluidframework/map-previous": "npm:@fluidframework/map@2.0.0-internal.4.1.0",
|
|
59
|
+
"@fluidframework/mocha-test-setup": "2.0.0-dev.4.3.0.158678",
|
|
60
|
+
"@fluidframework/test-runtime-utils": "2.0.0-dev.4.3.0.158678",
|
|
61
61
|
"@microsoft/api-extractor": "^7.34.4",
|
|
62
62
|
"@types/mocha": "^9.1.1",
|
|
63
63
|
"@types/node": "^14.18.38",
|
package/src/directory.ts
CHANGED
|
@@ -1070,6 +1070,10 @@ function isDirectoryLocalOpMetadata(metadata: any): metadata is DirectoryLocalOp
|
|
|
1070
1070
|
|
|
1071
1071
|
/* eslint-enable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access */
|
|
1072
1072
|
|
|
1073
|
+
function assertNonNullClientId(clientId: string | null): asserts clientId is string {
|
|
1074
|
+
assert(clientId !== null, "client id should never be null");
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1073
1077
|
/**
|
|
1074
1078
|
* Node of the directory tree.
|
|
1075
1079
|
* @sealed
|
|
@@ -1636,6 +1640,7 @@ class SubDirectory extends TypedEventEmitter<IDirectoryEvents> implements IDirec
|
|
|
1636
1640
|
if (!this.needProcessSubDirectoryOperation(msg, op, local, localOpMetadata)) {
|
|
1637
1641
|
return;
|
|
1638
1642
|
}
|
|
1643
|
+
assertNonNullClientId(msg.clientId);
|
|
1639
1644
|
this.createSubDirectoryCore(op.subdirName, local, msg.sequenceNumber, msg.clientId);
|
|
1640
1645
|
}
|
|
1641
1646
|
|
|
@@ -2125,7 +2130,7 @@ class SubDirectory extends TypedEventEmitter<IDirectoryEvents> implements IDirec
|
|
|
2125
2130
|
// container was detached or in case this directory is already live(known to other clients)
|
|
2126
2131
|
// and the op was created after the directory was created then apply this op.
|
|
2127
2132
|
return (
|
|
2128
|
-
this.clientIds.has(msg.clientId) ||
|
|
2133
|
+
(msg.clientId !== null && this.clientIds.has(msg.clientId)) ||
|
|
2129
2134
|
this.clientIds.has("detached") ||
|
|
2130
2135
|
(this.sequenceNumber !== -1 && this.sequenceNumber <= msg.referenceSequenceNumber)
|
|
2131
2136
|
);
|
|
@@ -2148,6 +2153,7 @@ class SubDirectory extends TypedEventEmitter<IDirectoryEvents> implements IDirec
|
|
|
2148
2153
|
localOpMetadata: unknown,
|
|
2149
2154
|
): boolean {
|
|
2150
2155
|
const pendingSubDirectoryMessageId = this.pendingSubDirectories.get(op.subdirName);
|
|
2156
|
+
assertNonNullClientId(msg.clientId);
|
|
2151
2157
|
if (pendingSubDirectoryMessageId !== undefined) {
|
|
2152
2158
|
if (local) {
|
|
2153
2159
|
assert(
|
package/src/packageVersion.ts
CHANGED