@fluidframework/shared-summary-block 0.59.2000 → 0.59.3000-67119
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.d.ts.map +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/sharedSummaryBlock.js +2 -2
- package/dist/sharedSummaryBlock.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.d.ts.map +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/package.json +12 -11
- package/src/packageVersion.ts +1 -1
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-summary-block";
|
|
8
|
-
export declare const pkgVersion = "0.59.
|
|
8
|
+
export declare const pkgVersion = "0.59.3000-67119";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,yCAAyC,CAAC;AAC9D,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,yCAAyC,CAAC;AAC9D,eAAO,MAAM,UAAU,oBAAoB,CAAC"}
|
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-summary-block";
|
|
11
|
-
exports.pkgVersion = "0.59.
|
|
11
|
+
exports.pkgVersion = "0.59.3000-67119";
|
|
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,sCAAsC,CAAC;AACjD,QAAA,UAAU,GAAG,
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,sCAAsC,CAAC;AACjD,QAAA,UAAU,GAAG,iBAAiB,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-summary-block\";\nexport const pkgVersion = \"0.59.3000-67119\";\n"]}
|
|
@@ -69,13 +69,13 @@ class SharedSummaryBlock extends shared_object_base_1.SharedObject {
|
|
|
69
69
|
this.data.forEach((value, key) => {
|
|
70
70
|
contentsBlob[key] = value;
|
|
71
71
|
});
|
|
72
|
-
return shared_object_base_1.createSingleBlobSummary(snapshotFileName, JSON.stringify(contentsBlob));
|
|
72
|
+
return (0, shared_object_base_1.createSingleBlobSummary)(snapshotFileName, JSON.stringify(contentsBlob));
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
75
|
* {@inheritDoc @fluidframework/shared-object-base#SharedObject.loadCore}
|
|
76
76
|
*/
|
|
77
77
|
async loadCore(storage) {
|
|
78
|
-
const contents = await driver_utils_1.readAndParse(storage, snapshotFileName);
|
|
78
|
+
const contents = await (0, driver_utils_1.readAndParse)(storage, snapshotFileName);
|
|
79
79
|
for (const [key, value] of Object.entries(contents)) {
|
|
80
80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CAAC,GAAG,KAAK,CAAC;QAC9B,CAAC,CAAC,CAAC;QACH,OAAO,IAAA,4CAAuB,EAAC,gBAAgB,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;IACnF,CAAC;IAED;;OAEG;IACO,KAAK,CAAC,QAAQ,CAAC,OAA+B;QACpD,MAAM,QAAQ,GAAG,MAAM,IAAA,2BAAY,EAAsC,OAAO,EAAE,gBAAgB,CAAC,CAAC;QACpG,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YACjD,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;SAC7B;IACL,CAAC;IAED;;OAEG;IACO,YAAY,KAAK,CAAC;IAE5B;;OAEG;IACO,WAAW,CAAC,OAAkC,EAAE,KAAc;QACpE,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACzE,CAAC;IAES,cAAc;QACpB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;CACJ;AA1FD,gDA0FC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { ISequencedDocumentMessage } from \"@fluidframework/protocol-definitions\";\nimport {\n IChannelAttributes,\n IFluidDataStoreRuntime,\n IChannelStorageService,\n Jsonable,\n IChannelFactory,\n} from \"@fluidframework/datastore-definitions\";\nimport { ISummaryTreeWithStats } from \"@fluidframework/runtime-definitions\";\nimport { readAndParse } from \"@fluidframework/driver-utils\";\nimport {\n createSingleBlobSummary,\n IFluidSerializer,\n SharedObject,\n} from \"@fluidframework/shared-object-base\";\nimport { SharedSummaryBlockFactory } from \"./sharedSummaryBlockFactory\";\nimport { ISharedSummaryBlock } from \"./interfaces\";\n\nconst snapshotFileName = \"header\";\n\n/**\n * Defines the in-memory object structure to be used for the conversion to/from serialized.\n * Directly used in JSON.stringify, direct result from JSON.parse.\n */\ninterface ISharedSummaryBlockDataSerializable {\n [key: string]: Jsonable;\n}\n\n/**\n * Implementation of a shared summary block. It does not generate any ops. It is only part of the summary.\n * Data should be set in this object in response to a remote op.\n */\nexport class SharedSummaryBlock extends SharedObject implements ISharedSummaryBlock {\n /**\n * Create a new shared summary block\n *\n * @param runtime - data store runtime the new shared summary block belongs to.\n * @param id - optional name of the shared summary block.\n * @returns newly created shared summary block (but not attached yet).\n */\n public static create(runtime: IFluidDataStoreRuntime, id?: string) {\n return runtime.createChannel(id, SharedSummaryBlockFactory.Type) as SharedSummaryBlock;\n }\n\n /**\n * Get a factory for SharedSummaryBlock to register with the data store.\n *\n * @returns a factory that creates and loads SharedSummaryBlock.\n */\n public static getFactory(): IChannelFactory {\n return new SharedSummaryBlockFactory();\n }\n\n /**\n * The data held by this object.\n */\n private readonly data = new Map<string, Jsonable>();\n\n /**\n * Constructs a new SharedSummaryBlock. If the object is non-local, an id and service interfaces will\n * be provided.\n *\n * @param id - optional name of the shared summary block.\n * @param runtime - data store runtime thee object belongs to.\n * @param attributes - The attributes for the object.\n */\n constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes) {\n super(id, runtime, attributes);\n }\n\n /**\n * {@inheritDoc ISharedSummaryBlock.get}\n */\n public get<T>(key: string): Jsonable<T> {\n return this.data.get(key) as Jsonable<T>;\n }\n\n /**\n * {@inheritDoc ISharedSummaryBlock.set}\n */\n public set<T>(key: string, value: Jsonable<T>): void {\n this.data.set(key, value);\n // Set this object as dirty so that it is part of the next summary.\n this.dirty();\n }\n\n /**\n * {@inheritDoc @fluidframework/shared-object-base#SharedObject.summarizeCore}\n */\n protected summarizeCore(serializer: IFluidSerializer): ISummaryTreeWithStats {\n const contentsBlob: ISharedSummaryBlockDataSerializable = {};\n this.data.forEach((value, key) => {\n contentsBlob[key] = value;\n });\n return createSingleBlobSummary(snapshotFileName, JSON.stringify(contentsBlob));\n }\n\n /**\n * {@inheritDoc @fluidframework/shared-object-base#SharedObject.loadCore}\n */\n protected async loadCore(storage: IChannelStorageService): Promise<void> {\n const contents = await readAndParse<ISharedSummaryBlockDataSerializable>(storage, snapshotFileName);\n for (const [key, value] of Object.entries(contents)) {\n this.data.set(key, value);\n }\n }\n\n /**\n * {@inheritDoc @fluidframework/shared-object-base#SharedObject.onDisconnect}\n */\n protected onDisconnect() { }\n\n /**\n * {@inheritDoc @fluidframework/shared-object-base#SharedObject.processCore}\n */\n protected processCore(message: ISequencedDocumentMessage, local: boolean) {\n throw new Error(\"shared summary block should not generate any ops.\");\n }\n\n protected applyStashedOp() {\n throw new Error(\"not implemented\");\n }\n}\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-summary-block";
|
|
8
|
-
export declare const pkgVersion = "0.59.
|
|
8
|
+
export declare const pkgVersion = "0.59.3000-67119";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,yCAAyC,CAAC;AAC9D,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,yCAAyC,CAAC;AAC9D,eAAO,MAAM,UAAU,oBAAoB,CAAC"}
|
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,sCAAsC,CAAC;AAC9D,MAAM,CAAC,MAAM,UAAU,GAAG,
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,sCAAsC,CAAC;AAC9D,MAAM,CAAC,MAAM,UAAU,GAAG,iBAAiB,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-summary-block\";\nexport const pkgVersion = \"0.59.3000-67119\";\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/shared-summary-block",
|
|
3
|
-
"version": "0.59.
|
|
3
|
+
"version": "0.59.3000-67119",
|
|
4
4
|
"description": "A DDS that does not generate ops but is part of summary",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -63,18 +63,19 @@
|
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@fluidframework/common-utils": "^0.32.1",
|
|
65
65
|
"@fluidframework/core-interfaces": "^0.43.1000",
|
|
66
|
-
"@fluidframework/datastore-definitions": "
|
|
67
|
-
"@fluidframework/driver-utils": "
|
|
66
|
+
"@fluidframework/datastore-definitions": "0.59.3000-67119",
|
|
67
|
+
"@fluidframework/driver-utils": "0.59.3000-67119",
|
|
68
68
|
"@fluidframework/protocol-definitions": "^0.1028.1000",
|
|
69
|
-
"@fluidframework/runtime-definitions": "
|
|
70
|
-
"@fluidframework/shared-object-base": "
|
|
69
|
+
"@fluidframework/runtime-definitions": "0.59.3000-67119",
|
|
70
|
+
"@fluidframework/shared-object-base": "0.59.3000-67119"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@fluidframework/build-common": "^0.23.0",
|
|
74
|
-
"@fluidframework/
|
|
75
|
-
"@fluidframework/
|
|
76
|
-
"@fluidframework/
|
|
77
|
-
"@fluidframework/
|
|
74
|
+
"@fluidframework/build-tools": "^0.2.66793",
|
|
75
|
+
"@fluidframework/eslint-config-fluid": "^0.28.2000-0",
|
|
76
|
+
"@fluidframework/mocha-test-setup": "0.59.3000-67119",
|
|
77
|
+
"@fluidframework/shared-summary-block-previous": "npm:@fluidframework/shared-summary-block@0.59.2000",
|
|
78
|
+
"@fluidframework/test-runtime-utils": "0.59.3000-67119",
|
|
78
79
|
"@microsoft/api-extractor": "^7.22.2",
|
|
79
80
|
"@rushstack/eslint-config": "^2.5.1",
|
|
80
81
|
"@types/benchmark": "^2.1.0",
|
|
@@ -99,11 +100,11 @@
|
|
|
99
100
|
"mocha": "^8.4.0",
|
|
100
101
|
"nyc": "^15.0.0",
|
|
101
102
|
"rimraf": "^2.6.2",
|
|
102
|
-
"typescript": "~4.
|
|
103
|
+
"typescript": "~4.5.5",
|
|
103
104
|
"typescript-formatter": "7.1.0"
|
|
104
105
|
},
|
|
105
106
|
"typeValidation": {
|
|
106
|
-
"version": "0.59.
|
|
107
|
+
"version": "0.59.3000",
|
|
107
108
|
"broken": {}
|
|
108
109
|
}
|
|
109
110
|
}
|
package/src/packageVersion.ts
CHANGED