@fluidframework/map 2.0.0-internal.7.0.0 → 2.0.0-internal.7.0.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/dist/directory.js +11 -10
- 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 +11 -10
- 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 +14 -14
- package/src/directory.ts +13 -12
- 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-internal.7.0.
|
|
8
|
+
export declare const pkgVersion = "2.0.0-internal.7.0.1";
|
|
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,sBAAsB,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-internal.7.0.
|
|
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,sBAAsB,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-internal.7.0.1\";\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/map",
|
|
3
|
-
"version": "2.0.0-internal.7.0.
|
|
3
|
+
"version": "2.0.0-internal.7.0.1",
|
|
4
4
|
"description": "Distributed map",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -35,29 +35,29 @@
|
|
|
35
35
|
"temp-directory": "nyc/.nyc_output"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@fluid-internal/client-utils": ">=2.0.0-internal.7.0.
|
|
39
|
-
"@fluidframework/core-interfaces": ">=2.0.0-internal.7.0.
|
|
40
|
-
"@fluidframework/core-utils": ">=2.0.0-internal.7.0.
|
|
41
|
-
"@fluidframework/datastore-definitions": ">=2.0.0-internal.7.0.
|
|
42
|
-
"@fluidframework/driver-utils": ">=2.0.0-internal.7.0.
|
|
38
|
+
"@fluid-internal/client-utils": ">=2.0.0-internal.7.0.1 <2.0.0-internal.7.1.0",
|
|
39
|
+
"@fluidframework/core-interfaces": ">=2.0.0-internal.7.0.1 <2.0.0-internal.7.1.0",
|
|
40
|
+
"@fluidframework/core-utils": ">=2.0.0-internal.7.0.1 <2.0.0-internal.7.1.0",
|
|
41
|
+
"@fluidframework/datastore-definitions": ">=2.0.0-internal.7.0.1 <2.0.0-internal.7.1.0",
|
|
42
|
+
"@fluidframework/driver-utils": ">=2.0.0-internal.7.0.1 <2.0.0-internal.7.1.0",
|
|
43
43
|
"@fluidframework/protocol-definitions": "^3.0.0",
|
|
44
|
-
"@fluidframework/runtime-definitions": ">=2.0.0-internal.7.0.
|
|
45
|
-
"@fluidframework/runtime-utils": ">=2.0.0-internal.7.0.
|
|
46
|
-
"@fluidframework/shared-object-base": ">=2.0.0-internal.7.0.
|
|
47
|
-
"@fluidframework/telemetry-utils": ">=2.0.0-internal.7.0.
|
|
44
|
+
"@fluidframework/runtime-definitions": ">=2.0.0-internal.7.0.1 <2.0.0-internal.7.1.0",
|
|
45
|
+
"@fluidframework/runtime-utils": ">=2.0.0-internal.7.0.1 <2.0.0-internal.7.1.0",
|
|
46
|
+
"@fluidframework/shared-object-base": ">=2.0.0-internal.7.0.1 <2.0.0-internal.7.1.0",
|
|
47
|
+
"@fluidframework/telemetry-utils": ">=2.0.0-internal.7.0.1 <2.0.0-internal.7.1.0",
|
|
48
48
|
"path-browserify": "^1.0.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@fluid-internal/stochastic-test-utils": ">=2.0.0-internal.7.0.
|
|
52
|
-
"@fluid-internal/test-dds-utils": ">=2.0.0-internal.7.0.
|
|
51
|
+
"@fluid-internal/stochastic-test-utils": ">=2.0.0-internal.7.0.1 <2.0.0-internal.7.1.0",
|
|
52
|
+
"@fluid-internal/test-dds-utils": ">=2.0.0-internal.7.0.1 <2.0.0-internal.7.1.0",
|
|
53
53
|
"@fluid-tools/benchmark": "^0.48.0",
|
|
54
54
|
"@fluid-tools/build-cli": "^0.24.0",
|
|
55
55
|
"@fluidframework/build-common": "^2.0.0",
|
|
56
56
|
"@fluidframework/build-tools": "^0.24.0",
|
|
57
57
|
"@fluidframework/eslint-config-fluid": "^2.1.0",
|
|
58
58
|
"@fluidframework/map-previous": "npm:@fluidframework/map@2.0.0-internal.6.3.0",
|
|
59
|
-
"@fluidframework/mocha-test-setup": ">=2.0.0-internal.7.0.
|
|
60
|
-
"@fluidframework/test-runtime-utils": ">=2.0.0-internal.7.0.
|
|
59
|
+
"@fluidframework/mocha-test-setup": ">=2.0.0-internal.7.0.1 <2.0.0-internal.7.1.0",
|
|
60
|
+
"@fluidframework/test-runtime-utils": ">=2.0.0-internal.7.0.1 <2.0.0-internal.7.1.0",
|
|
61
61
|
"@microsoft/api-extractor": "^7.37.0",
|
|
62
62
|
"@types/mocha": "^9.1.1",
|
|
63
63
|
"@types/node": "^16.18.38",
|
package/src/directory.ts
CHANGED
|
@@ -1819,11 +1819,14 @@ class SubDirectory extends TypedEventEmitter<IDirectoryEvents> implements IDirec
|
|
|
1819
1819
|
const pendingMessageIds = this.pendingKeys.get(op.key);
|
|
1820
1820
|
// Only submit the op, if we have record for it, otherwise it is possible that the older instance
|
|
1821
1821
|
// is already deleted, in which case we don't need to submit the op.
|
|
1822
|
-
if (
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1822
|
+
if (pendingMessageIds !== undefined) {
|
|
1823
|
+
const index = pendingMessageIds.findIndex(
|
|
1824
|
+
(id) => id === localOpMetadata.pendingMessageId,
|
|
1825
|
+
);
|
|
1826
|
+
if (index === -1) {
|
|
1827
|
+
return;
|
|
1828
|
+
}
|
|
1829
|
+
pendingMessageIds.splice(index, 1);
|
|
1827
1830
|
if (pendingMessageIds.length === 0) {
|
|
1828
1831
|
this.pendingKeys.delete(op.key);
|
|
1829
1832
|
}
|
|
@@ -2134,8 +2137,8 @@ class SubDirectory extends TypedEventEmitter<IDirectoryEvents> implements IDirec
|
|
|
2134
2137
|
return false;
|
|
2135
2138
|
}
|
|
2136
2139
|
|
|
2137
|
-
const
|
|
2138
|
-
if (
|
|
2140
|
+
const pendingKeyMessageIds = this.pendingKeys.get(op.key);
|
|
2141
|
+
if (pendingKeyMessageIds !== undefined) {
|
|
2139
2142
|
// Found an NACK op, clear it from the directory if the latest sequence number in the directory
|
|
2140
2143
|
// match the message's and don't process the op.
|
|
2141
2144
|
if (local) {
|
|
@@ -2143,14 +2146,12 @@ class SubDirectory extends TypedEventEmitter<IDirectoryEvents> implements IDirec
|
|
|
2143
2146
|
localOpMetadata !== undefined && isKeyEditLocalOpMetadata(localOpMetadata),
|
|
2144
2147
|
0x011 /* pendingMessageId is missing from the local client's operation */,
|
|
2145
2148
|
);
|
|
2146
|
-
const pendingMessageIds = this.pendingKeys.get(op.key);
|
|
2147
2149
|
assert(
|
|
2148
|
-
|
|
2149
|
-
pendingMessageIds[0] === localOpMetadata.pendingMessageId,
|
|
2150
|
+
pendingKeyMessageIds[0] === localOpMetadata.pendingMessageId,
|
|
2150
2151
|
0x331 /* Unexpected pending message received */,
|
|
2151
2152
|
);
|
|
2152
|
-
|
|
2153
|
-
if (
|
|
2153
|
+
pendingKeyMessageIds.shift();
|
|
2154
|
+
if (pendingKeyMessageIds.length === 0) {
|
|
2154
2155
|
this.pendingKeys.delete(op.key);
|
|
2155
2156
|
}
|
|
2156
2157
|
}
|
package/src/packageVersion.ts
CHANGED