@fluidframework/sequence 0.56.0 → 0.57.0-51086
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/localValues.d.ts.map +1 -1
- package/dist/localValues.js +0 -3
- package/dist/localValues.js.map +1 -1
- package/dist/mapKernel.d.ts.map +1 -1
- package/dist/mapKernel.js +0 -2
- package/dist/mapKernel.js.map +1 -1
- 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/sequence.d.ts +0 -1
- package/dist/sequence.d.ts.map +1 -1
- package/dist/sequence.js +1 -10
- package/dist/sequence.js.map +1 -1
- package/dist/sharedIntervalCollection.d.ts +0 -1
- package/dist/sharedIntervalCollection.d.ts.map +1 -1
- package/dist/sharedIntervalCollection.js +0 -7
- package/dist/sharedIntervalCollection.js.map +1 -1
- package/lib/localValues.d.ts.map +1 -1
- package/lib/localValues.js +1 -4
- package/lib/localValues.js.map +1 -1
- package/lib/mapKernel.d.ts.map +1 -1
- package/lib/mapKernel.js +0 -2
- package/lib/mapKernel.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/lib/sequence.d.ts +0 -1
- package/lib/sequence.d.ts.map +1 -1
- package/lib/sequence.js +1 -10
- package/lib/sequence.js.map +1 -1
- package/lib/sharedIntervalCollection.d.ts +0 -1
- package/lib/sharedIntervalCollection.d.ts.map +1 -1
- package/lib/sharedIntervalCollection.js +0 -7
- package/lib/sharedIntervalCollection.js.map +1 -1
- package/package.json +11 -11
- package/src/localValues.ts +0 -5
- package/src/mapKernel.ts +0 -2
- package/src/packageVersion.ts +1 -1
- package/src/sequence.ts +1 -12
- package/src/sharedIntervalCollection.ts +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":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,OAAY,EAAE,eAAwB;QACzD,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;IACtE,CAAC;IAES,YAAY,KAAK,CAAC;IAE5B;;OAEG;IACO,KAAK,CAAC,QAAQ,CAAC,OAA+B;QACpD,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;QACtD,MAAM,MAAM,GAAG,cAAc,CAAC,IAAI,EAAC,MAAM,CAAC,CAAC;QAC3C,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;IAES,WAAW,CAAC,OAAkC,EAAE,KAAc,EAAE,eAAwB;QAC9F,IAAI,OAAO,CAAC,IAAI,KAAK,WAAW,CAAC,SAAS,EAAE;YACxC,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,OAAO,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC;SAC/F;IACL,CAAC;IAED;;;OAGG;IACO,yBAAyB,CAAC,KAAa;QAC7C,OAAO,KAAK,CAAC;IACjB,CAAC;IAES,cAAc;QACpB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;CACJ","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { bufferToString } from \"@fluidframework/common-utils\";\nimport {\n IChannelAttributes,\n IFluidDataStoreRuntime,\n IChannelStorageService,\n IChannelServices,\n IChannelFactory,\n} from \"@fluidframework/datastore-definitions\";\nimport { ISequencedDocumentMessage, MessageType } from \"@fluidframework/protocol-definitions\";\nimport { ISummaryTreeWithStats } from \"@fluidframework/runtime-definitions\";\nimport {\n createSingleBlobSummary,\n IFluidSerializer,\n SharedObject,\n} from \"@fluidframework/shared-object-base\";\nimport {\n Interval,\n IntervalCollection,\n IntervalCollectionValueType,\n ISerializableInterval,\n} from \"./intervalCollection\";\nimport { MapKernel } from \"./mapKernel\";\nimport { pkgVersion } from \"./packageVersion\";\n\nconst snapshotFileName = \"header\";\n\n/**\n * The factory that defines the SharedIntervalCollection\n */\nexport class SharedIntervalCollectionFactory implements IChannelFactory {\n public static readonly Type = \"https://graph.microsoft.com/types/sharedIntervalCollection\";\n\n public static readonly Attributes: IChannelAttributes = {\n type: SharedIntervalCollectionFactory.Type,\n snapshotFormatVersion: \"0.1\",\n packageVersion: pkgVersion,\n };\n\n public get type() {\n return SharedIntervalCollectionFactory.Type;\n }\n\n public get attributes() {\n return SharedIntervalCollectionFactory.Attributes;\n }\n\n /**\n * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}\n */\n public async load(\n runtime: IFluidDataStoreRuntime,\n id: string,\n services: IChannelServices,\n attributes: IChannelAttributes): Promise<SharedIntervalCollection> {\n const map = new SharedIntervalCollection(id, runtime, attributes);\n await map.load(services);\n\n return map;\n }\n\n public create(runtime: IFluidDataStoreRuntime, id: string): SharedIntervalCollection {\n const map = new SharedIntervalCollection(\n id,\n runtime,\n this.attributes);\n map.initializeLocal();\n\n return map;\n }\n}\n\nexport interface ISharedIntervalCollection<TInterval extends ISerializableInterval> {\n waitIntervalCollection(label: string): Promise<IntervalCollection<TInterval>>;\n getIntervalCollection(label: string): IntervalCollection<TInterval>;\n}\n\nexport class SharedIntervalCollection<TInterval extends ISerializableInterval = Interval>\n extends SharedObject implements ISharedIntervalCollection<TInterval> {\n /**\n * Create a SharedIntervalCollection\n *\n * @param runtime - data store runtime the new shared map belongs to\n * @param id - optional name of the shared map\n * @returns newly create shared map (but not attached yet)\n */\n public static create(runtime: IFluidDataStoreRuntime, id?: string) {\n return runtime.createChannel(id, SharedIntervalCollectionFactory.Type) as SharedIntervalCollection;\n }\n\n /**\n * Get a factory for SharedIntervalCollection to register with the data store.\n *\n * @returns a factory that creates and load SharedIntervalCollection\n */\n public static getFactory(): IChannelFactory {\n return new SharedIntervalCollectionFactory();\n }\n\n public readonly [Symbol.toStringTag]: string = \"SharedIntervalCollection\";\n private readonly intervalMapKernel: MapKernel;\n\n /**\n * Constructs a new shared SharedIntervalCollection. If the object is non-local an id and service interfaces will\n * be provided\n */\n constructor(\n id: string,\n runtime: IFluidDataStoreRuntime,\n attributes: IChannelAttributes,\n ) {\n super(id, runtime, attributes);\n this.intervalMapKernel = new MapKernel(\n this.serializer,\n this.handle,\n (op, localOpMetadata) => this.submitLocalMessage(op, localOpMetadata),\n () => this.isAttached(),\n [new IntervalCollectionValueType()],\n );\n }\n\n public async waitIntervalCollection(\n label: string,\n ): Promise<IntervalCollection<TInterval>> {\n return this.intervalMapKernel.wait<IntervalCollection<TInterval>>(\n this.getIntervalCollectionPath(label));\n }\n\n // TODO: fix race condition on creation by putting type on every operation\n public getIntervalCollection(label: string): IntervalCollection<TInterval> {\n const realLabel = this.getIntervalCollectionPath(label);\n if (!this.intervalMapKernel.has(realLabel)) {\n this.intervalMapKernel.createValueType(\n label,\n IntervalCollectionValueType.Name,\n undefined);\n }\n\n const sharedCollection =\n this.intervalMapKernel.get<IntervalCollection<TInterval>>(realLabel);\n return sharedCollection;\n }\n\n protected summarizeCore(serializer: IFluidSerializer): ISummaryTreeWithStats {\n return createSingleBlobSummary(snapshotFileName, this.intervalMapKernel.serialize(serializer));\n }\n\n protected reSubmitCore(content: any, localOpMetadata: unknown) {\n this.intervalMapKernel.trySubmitMessage(content, localOpMetadata);\n }\n\n protected onDisconnect() { }\n\n /**\n * {@inheritDoc @fluidframework/shared-object-base#SharedObject.loadCore}\n */\n protected async loadCore(storage: IChannelStorageService) {\n const blob = await storage.readBlob(snapshotFileName);\n const header = bufferToString(blob,\"utf8\");\n this.intervalMapKernel.populate(header);\n }\n\n protected processCore(message: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown) {\n if (message.type === MessageType.Operation) {\n this.intervalMapKernel.tryProcessMessage(message.contents, local, message, localOpMetadata);\n }\n }\n\n /**\n * Creates the full path of the intervalCollection label\n * @param label - the incoming lable\n */\n protected getIntervalCollectionPath(label: string): string {\n return label;\n }\n\n protected applyStashedOp() {\n throw new Error(\"not implemented\");\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/sequence",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.0-51086",
|
|
4
4
|
"description": "Distributed sequence",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": "https://github.com/microsoft/FluidFramework",
|
|
@@ -60,23 +60,23 @@
|
|
|
60
60
|
"@fluidframework/common-definitions": "^0.20.1",
|
|
61
61
|
"@fluidframework/common-utils": "^0.32.1",
|
|
62
62
|
"@fluidframework/core-interfaces": "^0.42.0",
|
|
63
|
-
"@fluidframework/datastore-definitions": "
|
|
64
|
-
"@fluidframework/merge-tree": "
|
|
63
|
+
"@fluidframework/datastore-definitions": "0.57.0-51086",
|
|
64
|
+
"@fluidframework/merge-tree": "0.57.0-51086",
|
|
65
65
|
"@fluidframework/protocol-definitions": "^0.1026.0",
|
|
66
|
-
"@fluidframework/runtime-definitions": "
|
|
67
|
-
"@fluidframework/runtime-utils": "
|
|
68
|
-
"@fluidframework/shared-object-base": "
|
|
69
|
-
"@fluidframework/telemetry-utils": "
|
|
66
|
+
"@fluidframework/runtime-definitions": "0.57.0-51086",
|
|
67
|
+
"@fluidframework/runtime-utils": "0.57.0-51086",
|
|
68
|
+
"@fluidframework/shared-object-base": "0.57.0-51086",
|
|
69
|
+
"@fluidframework/telemetry-utils": "0.57.0-51086",
|
|
70
70
|
"uuid": "^8.3.1"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@fluid-internal/test-dds-utils": "
|
|
73
|
+
"@fluid-internal/test-dds-utils": "0.57.0-51086",
|
|
74
74
|
"@fluidframework/build-common": "^0.23.0",
|
|
75
|
-
"@fluidframework/eslint-config-fluid": "^0.
|
|
75
|
+
"@fluidframework/eslint-config-fluid": "^0.26.0-0",
|
|
76
76
|
"@fluidframework/gitresources": "^0.1034.0",
|
|
77
|
-
"@fluidframework/mocha-test-setup": "
|
|
77
|
+
"@fluidframework/mocha-test-setup": "0.57.0-51086",
|
|
78
78
|
"@fluidframework/server-services-client": "^0.1034.0",
|
|
79
|
-
"@fluidframework/test-runtime-utils": "
|
|
79
|
+
"@fluidframework/test-runtime-utils": "0.57.0-51086",
|
|
80
80
|
"@microsoft/api-extractor": "^7.16.1",
|
|
81
81
|
"@rushstack/eslint-config": "^2.5.1",
|
|
82
82
|
"@types/diff": "^3.5.1",
|
package/src/localValues.ts
CHANGED
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
ISerializedHandle,
|
|
10
10
|
parseHandles,
|
|
11
11
|
serializeHandles,
|
|
12
|
-
SharedObject,
|
|
13
12
|
ValueType,
|
|
14
13
|
} from "@fluidframework/shared-object-base";
|
|
15
14
|
import {
|
|
@@ -219,10 +218,6 @@ export class LocalValueMaker {
|
|
|
219
218
|
* @returns An ILocalValue containing the value
|
|
220
219
|
*/
|
|
221
220
|
public fromInMemory(value: any): ILocalValue {
|
|
222
|
-
if (SharedObject.is(value)) {
|
|
223
|
-
throw new Error("SharedObject sets are no longer supported. Instead set the SharedObject handle.");
|
|
224
|
-
}
|
|
225
|
-
|
|
226
221
|
return new PlainLocalValue(value);
|
|
227
222
|
}
|
|
228
223
|
|
package/src/mapKernel.ts
CHANGED
|
@@ -331,7 +331,6 @@ export class MapKernel implements IValueTypeCreator {
|
|
|
331
331
|
*/
|
|
332
332
|
public set(key: string, value: any) {
|
|
333
333
|
// Undefined/null keys can't be serialized to JSON in the manner we currently snapshot.
|
|
334
|
-
// eslint-disable-next-line no-null/no-null
|
|
335
334
|
if (key === undefined || key === null) {
|
|
336
335
|
throw new Error("Undefined and null keys are not supported");
|
|
337
336
|
}
|
|
@@ -825,7 +824,6 @@ export class MapKernel implements IValueTypeCreator {
|
|
|
825
824
|
this.submitMessage(op, undefined /* localOpMetadata */);
|
|
826
825
|
|
|
827
826
|
const event: IValueChanged = { key, previousValue };
|
|
828
|
-
// eslint-disable-next-line no-null/no-null
|
|
829
827
|
this.eventEmitter.emit("valueChanged", event, true, null, this.eventEmitter);
|
|
830
828
|
};
|
|
831
829
|
|
package/src/packageVersion.ts
CHANGED
package/src/sequence.ts
CHANGED
|
@@ -114,7 +114,6 @@ export abstract class SharedSegmentSequence<T extends ISegment>
|
|
|
114
114
|
const props = {};
|
|
115
115
|
for (const key of Object.keys(r.propertyDeltas)) {
|
|
116
116
|
props[key] =
|
|
117
|
-
// eslint-disable-next-line no-null/no-null
|
|
118
117
|
r.segment.properties[key] === undefined ? null : r.segment.properties[key];
|
|
119
118
|
}
|
|
120
119
|
if (lastAnnotate && lastAnnotate.pos2 === r.position &&
|
|
@@ -565,16 +564,6 @@ export abstract class SharedSegmentSequence<T extends ISegment>
|
|
|
565
564
|
}
|
|
566
565
|
}
|
|
567
566
|
|
|
568
|
-
protected registerCore() {
|
|
569
|
-
for (const value of this.intervalMapKernel.values()) {
|
|
570
|
-
if (SharedObject.is(value)) {
|
|
571
|
-
value.bindToContext();
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
this.client.startOrUpdateCollaboration(this.runtime.clientId);
|
|
576
|
-
}
|
|
577
|
-
|
|
578
567
|
protected didAttach() {
|
|
579
568
|
// If we are not local, and we've attached we need to start generating and sending ops
|
|
580
569
|
// so start collaboration and provide a default client id incase we are not connected
|
|
@@ -595,7 +584,7 @@ export abstract class SharedSegmentSequence<T extends ISegment>
|
|
|
595
584
|
|
|
596
585
|
this.processMinSequenceNumberChanged(minSeq);
|
|
597
586
|
|
|
598
|
-
this.messagesSinceMSNChange.forEach((m) => m.minimumSequenceNumber = minSeq);
|
|
587
|
+
this.messagesSinceMSNChange.forEach((m) => { m.minimumSequenceNumber = minSeq; });
|
|
599
588
|
|
|
600
589
|
return this.client.summarize(this.runtime, this.handle, serializer, this.messagesSinceMSNChange);
|
|
601
590
|
}
|
|
@@ -170,14 +170,6 @@ export class SharedIntervalCollection<TInterval extends ISerializableInterval =
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
protected registerCore() {
|
|
174
|
-
for (const value of this.intervalMapKernel.values()) {
|
|
175
|
-
if (SharedObject.is(value)) {
|
|
176
|
-
value.bindToContext();
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
173
|
/**
|
|
182
174
|
* Creates the full path of the intervalCollection label
|
|
183
175
|
* @param label - the incoming lable
|