@fluidframework/shared-object-base 2.0.0-internal.4.2.1 → 2.0.0-internal.4.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/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.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 +12 -12
- package/src/packageVersion.ts +1 -1
- package/bench/src/index.ts +0 -72
- package/bench/src/util.ts +0 -56
package/dist/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/shared-object-base";
|
|
8
|
-
export declare const pkgVersion = "2.0.0-internal.4.
|
|
8
|
+
export declare const pkgVersion = "2.0.0-internal.4.3.0";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
package/dist/packageVersion.js
CHANGED
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.pkgVersion = exports.pkgName = void 0;
|
|
10
10
|
exports.pkgName = "@fluidframework/shared-object-base";
|
|
11
|
-
exports.pkgVersion = "2.0.0-internal.4.
|
|
11
|
+
exports.pkgVersion = "2.0.0-internal.4.3.0";
|
|
12
12
|
//# sourceMappingURL=packageVersion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,oCAAoC,CAAC;AAC/C,QAAA,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/shared-object-base\";\nexport const pkgVersion = \"2.0.0-internal.4.
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,oCAAoC,CAAC;AAC/C,QAAA,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/shared-object-base\";\nexport const pkgVersion = \"2.0.0-internal.4.3.0\";\n"]}
|
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/shared-object-base";
|
|
8
|
-
export declare const pkgVersion = "2.0.0-internal.4.
|
|
8
|
+
export declare const pkgVersion = "2.0.0-internal.4.3.0";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
package/lib/packageVersion.js
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
|
|
6
6
|
*/
|
|
7
7
|
export const pkgName = "@fluidframework/shared-object-base";
|
|
8
|
-
export const pkgVersion = "2.0.0-internal.4.
|
|
8
|
+
export const pkgVersion = "2.0.0-internal.4.3.0";
|
|
9
9
|
//# sourceMappingURL=packageVersion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,oCAAoC,CAAC;AAC5D,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/shared-object-base\";\nexport const pkgVersion = \"2.0.0-internal.4.
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,oCAAoC,CAAC;AAC5D,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/shared-object-base\";\nexport const pkgVersion = \"2.0.0-internal.4.3.0\";\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/shared-object-base",
|
|
3
|
-
"version": "2.0.0-internal.4.
|
|
3
|
+
"version": "2.0.0-internal.4.3.0",
|
|
4
4
|
"description": "Fluid base class for shared distributed data structures",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@fluidframework/common-definitions": "^0.20.1",
|
|
39
39
|
"@fluidframework/common-utils": "^1.1.1",
|
|
40
|
-
"@fluidframework/container-definitions": ">=2.0.0-internal.4.
|
|
41
|
-
"@fluidframework/container-runtime": ">=2.0.0-internal.4.
|
|
42
|
-
"@fluidframework/container-utils": ">=2.0.0-internal.4.
|
|
43
|
-
"@fluidframework/core-interfaces": ">=2.0.0-internal.4.
|
|
44
|
-
"@fluidframework/datastore": ">=2.0.0-internal.4.
|
|
45
|
-
"@fluidframework/datastore-definitions": ">=2.0.0-internal.4.
|
|
40
|
+
"@fluidframework/container-definitions": ">=2.0.0-internal.4.3.0 <2.0.0-internal.4.4.0",
|
|
41
|
+
"@fluidframework/container-runtime": ">=2.0.0-internal.4.3.0 <2.0.0-internal.4.4.0",
|
|
42
|
+
"@fluidframework/container-utils": ">=2.0.0-internal.4.3.0 <2.0.0-internal.4.4.0",
|
|
43
|
+
"@fluidframework/core-interfaces": ">=2.0.0-internal.4.3.0 <2.0.0-internal.4.4.0",
|
|
44
|
+
"@fluidframework/datastore": ">=2.0.0-internal.4.3.0 <2.0.0-internal.4.4.0",
|
|
45
|
+
"@fluidframework/datastore-definitions": ">=2.0.0-internal.4.3.0 <2.0.0-internal.4.4.0",
|
|
46
46
|
"@fluidframework/protocol-definitions": "^1.1.0",
|
|
47
|
-
"@fluidframework/runtime-definitions": ">=2.0.0-internal.4.
|
|
48
|
-
"@fluidframework/runtime-utils": ">=2.0.0-internal.4.
|
|
49
|
-
"@fluidframework/telemetry-utils": ">=2.0.0-internal.4.
|
|
47
|
+
"@fluidframework/runtime-definitions": ">=2.0.0-internal.4.3.0 <2.0.0-internal.4.4.0",
|
|
48
|
+
"@fluidframework/runtime-utils": ">=2.0.0-internal.4.3.0 <2.0.0-internal.4.4.0",
|
|
49
|
+
"@fluidframework/telemetry-utils": ">=2.0.0-internal.4.3.0 <2.0.0-internal.4.4.0",
|
|
50
50
|
"uuid": "^8.3.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"@fluidframework/build-common": "^1.1.0",
|
|
55
55
|
"@fluidframework/build-tools": "^0.17.0",
|
|
56
56
|
"@fluidframework/eslint-config-fluid": "^2.0.0",
|
|
57
|
-
"@fluidframework/mocha-test-setup": ">=2.0.0-internal.4.
|
|
57
|
+
"@fluidframework/mocha-test-setup": ">=2.0.0-internal.4.3.0 <2.0.0-internal.4.4.0",
|
|
58
58
|
"@fluidframework/shared-object-base-previous": "npm:@fluidframework/shared-object-base@2.0.0-internal.4.1.0",
|
|
59
|
-
"@fluidframework/test-runtime-utils": ">=2.0.0-internal.4.
|
|
59
|
+
"@fluidframework/test-runtime-utils": ">=2.0.0-internal.4.3.0 <2.0.0-internal.4.4.0",
|
|
60
60
|
"@microsoft/api-extractor": "^7.34.4",
|
|
61
61
|
"@types/benchmark": "^2.1.0",
|
|
62
62
|
"@types/mocha": "^9.1.1",
|
package/src/packageVersion.ts
CHANGED
package/bench/src/index.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { IFluidHandle } from "@fluidframework/core-interfaces";
|
|
7
|
-
import { Suite } from "benchmark";
|
|
8
|
-
import { FluidSerializer } from "../..";
|
|
9
|
-
import { makeJson, MockHandleContext } from "../../src/test/utils";
|
|
10
|
-
import { consume, runSuites } from "./util";
|
|
11
|
-
|
|
12
|
-
const serializer = new FluidSerializer(new MockHandleContext(), (handle: IFluidHandle) => {});
|
|
13
|
-
|
|
14
|
-
// Mock Fluid handle
|
|
15
|
-
const handle: IFluidHandle = {
|
|
16
|
-
get IFluidHandle() {
|
|
17
|
-
return handle;
|
|
18
|
-
},
|
|
19
|
-
absolutePath: "/",
|
|
20
|
-
isAttached: false,
|
|
21
|
-
|
|
22
|
-
attachGraph(): void {},
|
|
23
|
-
get: async () => Promise.resolve(undefined as any),
|
|
24
|
-
bind() {},
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
const shallowNoHandles = makeJson(/* breadth: */ 2, /* depth: */ 2, () => ({}));
|
|
28
|
-
const deepWithHandles = makeJson(/* breadth: */ 8, /* depth: */ 8, () => handle);
|
|
29
|
-
|
|
30
|
-
const shallowNoHandlesString = serializer.stringify(shallowNoHandles, handle);
|
|
31
|
-
const deepWithHandlesString = serializer.stringify(deepWithHandles, handle);
|
|
32
|
-
|
|
33
|
-
const measureReplaceHandles = (name: string, value: any) =>
|
|
34
|
-
new Suite(`encode Handles: ${name}`)
|
|
35
|
-
.add("encode(...)", () => {
|
|
36
|
-
consume(serializer.encode(value, handle));
|
|
37
|
-
})
|
|
38
|
-
.add("parse(stringify(...))", () => {
|
|
39
|
-
consume(serializer.parse(serializer.stringify(value, handle)));
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
const measureStringify = (name: string, value: any) =>
|
|
43
|
-
new Suite(`Stringify: ${name}`)
|
|
44
|
-
.add("JSON.stringify(encode(...))", () => {
|
|
45
|
-
consume(JSON.stringify(serializer.encode(value, handle)));
|
|
46
|
-
})
|
|
47
|
-
.add("stringify(...)", () => {
|
|
48
|
-
consume(serializer.stringify(value, handle));
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
const measureParse = (name: string, value: any) =>
|
|
52
|
-
new Suite(`Parse: ${name}`).add("parse(...)", () => {
|
|
53
|
-
consume(serializer.parse(value));
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
runSuites([
|
|
57
|
-
measureReplaceHandles("primitive", 0),
|
|
58
|
-
measureReplaceHandles("shallow (no handles)", shallowNoHandles),
|
|
59
|
-
measureReplaceHandles("deep (with handles)", deepWithHandles),
|
|
60
|
-
]);
|
|
61
|
-
|
|
62
|
-
runSuites([
|
|
63
|
-
measureStringify("primitive", 0),
|
|
64
|
-
measureStringify("shallow (no handles)", shallowNoHandles),
|
|
65
|
-
measureStringify("deep (with handles)", deepWithHandles),
|
|
66
|
-
]);
|
|
67
|
-
|
|
68
|
-
runSuites([
|
|
69
|
-
measureParse("primitive", "0"),
|
|
70
|
-
measureParse("shallow (no handles)", shallowNoHandlesString),
|
|
71
|
-
measureParse("deep (with handles)", deepWithHandlesString),
|
|
72
|
-
]);
|
package/bench/src/util.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/* eslint-disable no-bitwise */
|
|
7
|
-
|
|
8
|
-
// This file contains some helpers creating/executing benchmark suites using 'Benchmark.js'.
|
|
9
|
-
|
|
10
|
-
import process = require("process");
|
|
11
|
-
import { Suite } from "benchmark";
|
|
12
|
-
|
|
13
|
-
let count = 0;
|
|
14
|
-
let cached: any;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Paranoid defense against dead code elimination.
|
|
18
|
-
*/
|
|
19
|
-
export function consume(value: any) {
|
|
20
|
-
count++;
|
|
21
|
-
if (count >>> 0 === 0) {
|
|
22
|
-
cached = value;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// Prevent v8's optimizer from identifying 'cached' as an unused value.
|
|
27
|
-
process.on("exit", () => {
|
|
28
|
-
if (count >>> 0 === 0) {
|
|
29
|
-
console.log(`Ignore this: ${cached}`);
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
export function runSuite(suite: Suite) {
|
|
34
|
-
count = 0;
|
|
35
|
-
|
|
36
|
-
console.log();
|
|
37
|
-
console.group((suite as any).name);
|
|
38
|
-
return suite
|
|
39
|
-
.on("cycle", (event: any) => {
|
|
40
|
-
console.log(String(event.target));
|
|
41
|
-
})
|
|
42
|
-
.on("error", (event: any) => {
|
|
43
|
-
console.error(String(event.target.error));
|
|
44
|
-
})
|
|
45
|
-
.on("complete", (event: any) => {
|
|
46
|
-
console.groupEnd();
|
|
47
|
-
console.log(`Fastest is ${event.currentTarget.filter("fastest").map("name")}`);
|
|
48
|
-
})
|
|
49
|
-
.run();
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function runSuites(suites: Iterable<Suite>) {
|
|
53
|
-
for (const suite of suites) {
|
|
54
|
-
runSuite(suite);
|
|
55
|
-
}
|
|
56
|
-
}
|