@fluidframework/sequence 0.52.1 → 0.54.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/README.md +8 -25
- package/dist/intervalCollection.d.ts +0 -12
- package/dist/intervalCollection.d.ts.map +1 -1
- package/dist/intervalCollection.js +0 -42
- package/dist/intervalCollection.js.map +1 -1
- package/dist/mapKernelInterfaces.d.ts +2 -2
- package/dist/mapKernelInterfaces.d.ts.map +1 -1
- package/dist/mapKernelInterfaces.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/dist/sequence.d.ts.map +1 -1
- package/dist/sequence.js +1 -1
- package/dist/sequence.js.map +1 -1
- package/dist/sequenceFactory.d.ts +62 -0
- package/dist/sequenceFactory.d.ts.map +1 -1
- package/dist/sequenceFactory.js +62 -0
- package/dist/sequenceFactory.js.map +1 -1
- package/dist/sharedNumberSequence.d.ts +17 -0
- package/dist/sharedNumberSequence.d.ts.map +1 -1
- package/dist/sharedNumberSequence.js +17 -0
- package/dist/sharedNumberSequence.js.map +1 -1
- package/dist/sharedObjectSequence.d.ts +17 -0
- package/dist/sharedObjectSequence.d.ts.map +1 -1
- package/dist/sharedObjectSequence.js +17 -0
- package/dist/sharedObjectSequence.js.map +1 -1
- package/lib/intervalCollection.d.ts +0 -12
- package/lib/intervalCollection.d.ts.map +1 -1
- package/lib/intervalCollection.js +0 -42
- package/lib/intervalCollection.js.map +1 -1
- package/lib/mapKernelInterfaces.d.ts +2 -2
- package/lib/mapKernelInterfaces.d.ts.map +1 -1
- package/lib/mapKernelInterfaces.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/lib/sequence.d.ts.map +1 -1
- package/lib/sequence.js +1 -1
- package/lib/sequence.js.map +1 -1
- package/lib/sequenceFactory.d.ts +62 -0
- package/lib/sequenceFactory.d.ts.map +1 -1
- package/lib/sequenceFactory.js +62 -0
- package/lib/sequenceFactory.js.map +1 -1
- package/lib/sharedNumberSequence.d.ts +17 -0
- package/lib/sharedNumberSequence.d.ts.map +1 -1
- package/lib/sharedNumberSequence.js +17 -0
- package/lib/sharedNumberSequence.js.map +1 -1
- package/lib/sharedObjectSequence.d.ts +17 -0
- package/lib/sharedObjectSequence.d.ts.map +1 -1
- package/lib/sharedObjectSequence.js +17 -0
- package/lib/sharedObjectSequence.js.map +1 -1
- package/package.json +11 -11
- package/src/intervalCollection.ts +0 -58
- package/src/mapKernelInterfaces.ts +0 -2
- package/src/packageVersion.ts +1 -1
- package/src/sequence.ts +5 -2
- package/src/sequenceFactory.ts +62 -0
- package/src/sharedNumberSequence.ts +17 -0
- package/src/sharedObjectSequence.ts +17 -0
|
@@ -10,6 +10,9 @@ import { SharedSequence } from "./sharedSequence";
|
|
|
10
10
|
* at a position within the sequence. See the
|
|
11
11
|
* {@link https://fluidframework.com/docs/data-structures/sequences/ | sequence documentation}
|
|
12
12
|
* for details on working with sequences.
|
|
13
|
+
*
|
|
14
|
+
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
|
|
15
|
+
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
|
|
13
16
|
*/
|
|
14
17
|
export declare class SharedNumberSequence extends SharedSequence<number> {
|
|
15
18
|
id: string;
|
|
@@ -19,15 +22,29 @@ export declare class SharedNumberSequence extends SharedSequence<number> {
|
|
|
19
22
|
* @param runtime - data store runtime the new shared number sequence belongs to
|
|
20
23
|
* @param id - optional name of the shared number sequence
|
|
21
24
|
* @returns newly create shared number sequence (but not attached yet)
|
|
25
|
+
*
|
|
26
|
+
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
|
|
27
|
+
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
|
|
22
28
|
*/
|
|
23
29
|
static create(runtime: IFluidDataStoreRuntime, id?: string): SharedNumberSequence;
|
|
24
30
|
/**
|
|
25
31
|
* Get a factory for SharedNumberSequence to register with the data store.
|
|
26
32
|
*
|
|
27
33
|
* @returns a factory that creates and load SharedNumberSequence
|
|
34
|
+
*
|
|
35
|
+
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
|
|
36
|
+
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
|
|
28
37
|
*/
|
|
29
38
|
static getFactory(): SharedNumberSequenceFactory;
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
|
|
41
|
+
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
|
|
42
|
+
*/
|
|
30
43
|
constructor(document: IFluidDataStoreRuntime, id: string, attributes: IChannelAttributes);
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
|
|
46
|
+
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
|
|
47
|
+
*/
|
|
31
48
|
getRange(start: number, end?: number): number[];
|
|
32
49
|
}
|
|
33
50
|
//# sourceMappingURL=sharedNumberSequence.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedNumberSequence.d.ts","sourceRoot":"","sources":["../src/sharedNumberSequence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AACnG,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD
|
|
1
|
+
{"version":3,"file":"sharedNumberSequence.d.ts","sourceRoot":"","sources":["../src/sharedNumberSequence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AACnG,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;;;GAQG;AACH,qBAAa,oBAAqB,SAAQ,cAAc,CAAC,MAAM,CAAC;IAgCP,EAAE,EAAE,MAAM;IA/B/D;;;;;;;;;OASG;WACW,MAAM,CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,CAAC,EAAE,MAAM;IAKjE;;;;;;;OAOG;WACW,UAAU;IAIxB;;;OAGG;gBACS,QAAQ,EAAE,sBAAsB,EAAS,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,kBAAkB;IAI/F;;;OAGG;IACI,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM;CAG9C"}
|
|
@@ -12,8 +12,15 @@ const sharedSequence_1 = require("./sharedSequence");
|
|
|
12
12
|
* at a position within the sequence. See the
|
|
13
13
|
* {@link https://fluidframework.com/docs/data-structures/sequences/ | sequence documentation}
|
|
14
14
|
* for details on working with sequences.
|
|
15
|
+
*
|
|
16
|
+
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
|
|
17
|
+
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
|
|
15
18
|
*/
|
|
16
19
|
class SharedNumberSequence extends sharedSequence_1.SharedSequence {
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
|
|
22
|
+
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
|
|
23
|
+
*/
|
|
17
24
|
constructor(document, id, attributes) {
|
|
18
25
|
super(document, id, attributes, sequenceFactory_1.SharedNumberSequenceFactory.segmentFromSpec);
|
|
19
26
|
this.id = id;
|
|
@@ -24,6 +31,9 @@ class SharedNumberSequence extends sharedSequence_1.SharedSequence {
|
|
|
24
31
|
* @param runtime - data store runtime the new shared number sequence belongs to
|
|
25
32
|
* @param id - optional name of the shared number sequence
|
|
26
33
|
* @returns newly create shared number sequence (but not attached yet)
|
|
34
|
+
*
|
|
35
|
+
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
|
|
36
|
+
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
|
|
27
37
|
*/
|
|
28
38
|
static create(runtime, id) {
|
|
29
39
|
return runtime.createChannel(id, sequenceFactory_1.SharedNumberSequenceFactory.Type);
|
|
@@ -32,10 +42,17 @@ class SharedNumberSequence extends sharedSequence_1.SharedSequence {
|
|
|
32
42
|
* Get a factory for SharedNumberSequence to register with the data store.
|
|
33
43
|
*
|
|
34
44
|
* @returns a factory that creates and load SharedNumberSequence
|
|
45
|
+
*
|
|
46
|
+
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
|
|
47
|
+
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
|
|
35
48
|
*/
|
|
36
49
|
static getFactory() {
|
|
37
50
|
return new sequenceFactory_1.SharedNumberSequenceFactory();
|
|
38
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
|
|
54
|
+
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
|
|
55
|
+
*/
|
|
39
56
|
getRange(start, end) {
|
|
40
57
|
return this.getItems(start, end);
|
|
41
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedNumberSequence.js","sourceRoot":"","sources":["../src/sharedNumberSequence.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,uDAAgE;AAChE,qDAAkD;AAElD
|
|
1
|
+
{"version":3,"file":"sharedNumberSequence.js","sourceRoot":"","sources":["../src/sharedNumberSequence.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,uDAAgE;AAChE,qDAAkD;AAElD;;;;;;;;GAQG;AACH,MAAa,oBAAqB,SAAQ,+BAAsB;IA4B5D;;;OAGG;IACH,YAAY,QAAgC,EAAS,EAAU,EAAE,UAA8B;QAC3F,KAAK,CAAC,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,6CAA2B,CAAC,eAAe,CAAC,CAAC;QAD5B,OAAE,GAAF,EAAE,CAAQ;IAE/D,CAAC;IAjCD;;;;;;;;;OASG;IACI,MAAM,CAAC,MAAM,CAAC,OAA+B,EAAE,EAAW;QAC7D,OAAO,OAAO,CAAC,aAAa,CAAC,EAAE,EAC3B,6CAA2B,CAAC,IAAI,CAAyB,CAAC;IAClE,CAAC;IAED;;;;;;;OAOG;IACI,MAAM,CAAC,UAAU;QACpB,OAAO,IAAI,6CAA2B,EAAE,CAAC;IAC7C,CAAC;IAUD;;;OAGG;IACI,QAAQ,CAAC,KAAa,EAAE,GAAY;QACvC,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACrC,CAAC;CACJ;AA3CD,oDA2CC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IFluidDataStoreRuntime, IChannelAttributes } from \"@fluidframework/datastore-definitions\";\nimport { SharedNumberSequenceFactory } from \"./sequenceFactory\";\nimport { SharedSequence } from \"./sharedSequence\";\n\n/**\n * The SharedNumberSequence holds a sequence of numbers. Each number will be stored\n * at a position within the sequence. See the\n * {@link https://fluidframework.com/docs/data-structures/sequences/ | sequence documentation}\n * for details on working with sequences.\n *\n * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n */\nexport class SharedNumberSequence extends SharedSequence<number> {\n /**\n * Create a new shared number sequence\n *\n * @param runtime - data store runtime the new shared number sequence belongs to\n * @param id - optional name of the shared number sequence\n * @returns newly create shared number sequence (but not attached yet)\n *\n * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n */\n public static create(runtime: IFluidDataStoreRuntime, id?: string) {\n return runtime.createChannel(id,\n SharedNumberSequenceFactory.Type) as SharedNumberSequence;\n }\n\n /**\n * Get a factory for SharedNumberSequence to register with the data store.\n *\n * @returns a factory that creates and load SharedNumberSequence\n *\n * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n */\n public static getFactory() {\n return new SharedNumberSequenceFactory();\n }\n\n /**\n * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n */\n constructor(document: IFluidDataStoreRuntime, public id: string, attributes: IChannelAttributes) {\n super(document, id, attributes, SharedNumberSequenceFactory.segmentFromSpec);\n }\n\n /**\n * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n */\n public getRange(start: number, end?: number) {\n return this.getItems(start, end);\n }\n}\n"]}
|
|
@@ -10,6 +10,9 @@ import { SharedSequence } from "./sharedSequence";
|
|
|
10
10
|
* at a position within the sequence. See the
|
|
11
11
|
* {@link https://fluidframework.com/docs/data-structures/sequences/ | sequence documentation}
|
|
12
12
|
* for details on working with sequences.
|
|
13
|
+
*
|
|
14
|
+
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
|
|
15
|
+
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
|
|
13
16
|
*/
|
|
14
17
|
export declare class SharedObjectSequence<T> extends SharedSequence<T> {
|
|
15
18
|
id: string;
|
|
@@ -19,15 +22,29 @@ export declare class SharedObjectSequence<T> extends SharedSequence<T> {
|
|
|
19
22
|
* @param runtime - data store runtime the new shared object sequence belongs to
|
|
20
23
|
* @param id - optional name of the shared object sequence
|
|
21
24
|
* @returns newly create shared object sequence (but not attached yet)
|
|
25
|
+
*
|
|
26
|
+
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
|
|
27
|
+
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
|
|
22
28
|
*/
|
|
23
29
|
static create<T>(runtime: IFluidDataStoreRuntime, id?: string): SharedObjectSequence<T>;
|
|
24
30
|
/**
|
|
25
31
|
* Get a factory for SharedObjectSequence to register with the data store.
|
|
26
32
|
*
|
|
27
33
|
* @returns a factory that creates and load SharedObjectSequence
|
|
34
|
+
*
|
|
35
|
+
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
|
|
36
|
+
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
|
|
28
37
|
*/
|
|
29
38
|
static getFactory(): SharedObjectSequenceFactory;
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
|
|
41
|
+
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
|
|
42
|
+
*/
|
|
30
43
|
constructor(document: IFluidDataStoreRuntime, id: string, attributes: IChannelAttributes);
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
|
|
46
|
+
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
|
|
47
|
+
*/
|
|
31
48
|
getRange(start: number, end?: number): Serializable<T>[];
|
|
32
49
|
}
|
|
33
50
|
//# sourceMappingURL=sharedObjectSequence.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedObjectSequence.d.ts","sourceRoot":"","sources":["../src/sharedObjectSequence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AACjH,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD
|
|
1
|
+
{"version":3,"file":"sharedObjectSequence.d.ts","sourceRoot":"","sources":["../src/sharedObjectSequence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AACjH,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;;;GAQG;AACH,qBAAa,oBAAoB,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;IAgCL,EAAE,EAAE,MAAM;IA/B/D;;;;;;;;;OASG;WAEW,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,sBAAsB,EAAE,EAAE,CAAC,EAAE,MAAM;IAIpE;;;;;;;OAOG;WACW,UAAU;IAIxB;;;OAGG;gBACS,QAAQ,EAAE,sBAAsB,EAAS,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,kBAAkB;IAI/F;;;OAGG;IACI,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC,CAAC,CAAC,EAAE;CAGlE"}
|
|
@@ -12,8 +12,15 @@ const sharedSequence_1 = require("./sharedSequence");
|
|
|
12
12
|
* at a position within the sequence. See the
|
|
13
13
|
* {@link https://fluidframework.com/docs/data-structures/sequences/ | sequence documentation}
|
|
14
14
|
* for details on working with sequences.
|
|
15
|
+
*
|
|
16
|
+
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
|
|
17
|
+
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
|
|
15
18
|
*/
|
|
16
19
|
class SharedObjectSequence extends sharedSequence_1.SharedSequence {
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
|
|
22
|
+
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
|
|
23
|
+
*/
|
|
17
24
|
constructor(document, id, attributes) {
|
|
18
25
|
super(document, id, attributes, sequenceFactory_1.SharedObjectSequenceFactory.segmentFromSpec);
|
|
19
26
|
this.id = id;
|
|
@@ -24,6 +31,9 @@ class SharedObjectSequence extends sharedSequence_1.SharedSequence {
|
|
|
24
31
|
* @param runtime - data store runtime the new shared object sequence belongs to
|
|
25
32
|
* @param id - optional name of the shared object sequence
|
|
26
33
|
* @returns newly create shared object sequence (but not attached yet)
|
|
34
|
+
*
|
|
35
|
+
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
|
|
36
|
+
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
|
|
27
37
|
*/
|
|
28
38
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
29
39
|
static create(runtime, id) {
|
|
@@ -33,10 +43,17 @@ class SharedObjectSequence extends sharedSequence_1.SharedSequence {
|
|
|
33
43
|
* Get a factory for SharedObjectSequence to register with the data store.
|
|
34
44
|
*
|
|
35
45
|
* @returns a factory that creates and load SharedObjectSequence
|
|
46
|
+
*
|
|
47
|
+
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
|
|
48
|
+
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
|
|
36
49
|
*/
|
|
37
50
|
static getFactory() {
|
|
38
51
|
return new sequenceFactory_1.SharedObjectSequenceFactory();
|
|
39
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
|
|
55
|
+
* For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
|
|
56
|
+
*/
|
|
40
57
|
getRange(start, end) {
|
|
41
58
|
return this.getItems(start, end);
|
|
42
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedObjectSequence.js","sourceRoot":"","sources":["../src/sharedObjectSequence.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,uDAAgE;AAChE,qDAAkD;AAElD
|
|
1
|
+
{"version":3,"file":"sharedObjectSequence.js","sourceRoot":"","sources":["../src/sharedObjectSequence.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,uDAAgE;AAChE,qDAAkD;AAElD;;;;;;;;GAQG;AACH,MAAa,oBAAwB,SAAQ,+BAAiB;IA4B1D;;;OAGG;IACH,YAAY,QAAgC,EAAS,EAAU,EAAE,UAA8B;QAC3F,KAAK,CAAC,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,6CAA2B,CAAC,eAAe,CAAC,CAAC;QAD5B,OAAE,GAAF,EAAE,CAAQ;IAE/D,CAAC;IAjCD;;;;;;;;;OASG;IACH,wDAAwD;IACjD,MAAM,CAAC,MAAM,CAAI,OAA+B,EAAE,EAAW;QAChE,OAAO,OAAO,CAAC,aAAa,CAAC,EAAE,EAAE,6CAA2B,CAAC,IAAI,CAA4B,CAAC;IAClG,CAAC;IAED;;;;;;;OAOG;IACI,MAAM,CAAC,UAAU;QACpB,OAAO,IAAI,6CAA2B,EAAE,CAAC;IAC7C,CAAC;IAUD;;;OAGG;IACI,QAAQ,CAAC,KAAa,EAAE,GAAY;QACvC,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACrC,CAAC;CACJ;AA3CD,oDA2CC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IFluidDataStoreRuntime, IChannelAttributes, Serializable } from \"@fluidframework/datastore-definitions\";\nimport { SharedObjectSequenceFactory } from \"./sequenceFactory\";\nimport { SharedSequence } from \"./sharedSequence\";\n\n/**\n * The SharedObjectSequence holds a sequence of serializable objects. Each object will be stored\n * at a position within the sequence. See the\n * {@link https://fluidframework.com/docs/data-structures/sequences/ | sequence documentation}\n * for details on working with sequences.\n *\n * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n */\nexport class SharedObjectSequence<T> extends SharedSequence<T> {\n /**\n * Create a new shared object sequence\n *\n * @param runtime - data store runtime the new shared object sequence belongs to\n * @param id - optional name of the shared object sequence\n * @returns newly create shared object sequence (but not attached yet)\n *\n * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n */\n // eslint-disable-next-line @typescript-eslint/no-shadow\n public static create<T>(runtime: IFluidDataStoreRuntime, id?: string) {\n return runtime.createChannel(id, SharedObjectSequenceFactory.Type) as SharedObjectSequence<T>;\n }\n\n /**\n * Get a factory for SharedObjectSequence to register with the data store.\n *\n * @returns a factory that creates and load SharedObjectSequence\n *\n * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n */\n public static getFactory() {\n return new SharedObjectSequenceFactory();\n }\n\n /**\n * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n */\n constructor(document: IFluidDataStoreRuntime, public id: string, attributes: IChannelAttributes) {\n super(document, id, attributes, SharedObjectSequenceFactory.segmentFromSpec);\n }\n\n /**\n * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n */\n public getRange(start: number, end?: number): Serializable<T>[] {\n return this.getItems(start, end);\n }\n}\n"]}
|
|
@@ -96,10 +96,6 @@ export declare class LocalIntervalCollection<TInterval extends ISerializableInte
|
|
|
96
96
|
getIntervalById(id: string): TInterval;
|
|
97
97
|
changeInterval(interval: TInterval, start: number, end: number): TInterval;
|
|
98
98
|
serialize(): ISerializedInterval[];
|
|
99
|
-
/**
|
|
100
|
-
* @deprecated This method only exists to support the deprecated IntervalCollection.delete(start, end).
|
|
101
|
-
*/
|
|
102
|
-
getLegacyInterval(start: number, end: number): TInterval | undefined;
|
|
103
99
|
}
|
|
104
100
|
export declare class SequenceIntervalCollectionValueType implements IValueType<IntervalCollection<SequenceInterval>> {
|
|
105
101
|
static Name: string;
|
|
@@ -146,10 +142,6 @@ export declare class IntervalCollection<TInterval extends ISerializableInterval>
|
|
|
146
142
|
attachGraph(client: Client, label: string): void;
|
|
147
143
|
getIntervalById(id: string): TInterval;
|
|
148
144
|
add(start: number, end: number, intervalType: IntervalType, props?: PropertySet): TInterval;
|
|
149
|
-
/**
|
|
150
|
-
* @deprecated delete by start/end position is deprecated. Use removeIntervalById.
|
|
151
|
-
*/
|
|
152
|
-
delete(start: number, end: number): void;
|
|
153
145
|
private deleteExistingInterval;
|
|
154
146
|
removeIntervalById(id: string): TInterval;
|
|
155
147
|
changeProperties(id: string, props: PropertySet): void;
|
|
@@ -163,10 +155,6 @@ export declare class IntervalCollection<TInterval extends ISerializableInterval>
|
|
|
163
155
|
changeInterval(serializedInterval: ISerializedInterval, local: boolean, op: ISequencedDocumentMessage): void;
|
|
164
156
|
addConflictResolver(conflictResolver: IntervalConflictResolver<TInterval>): void;
|
|
165
157
|
attachDeserializer(onDeserialize: DeserializeCallback): void;
|
|
166
|
-
/**
|
|
167
|
-
* @deprecated IntervalCollectionView has been removed. Refer to IntervalCollection directly.
|
|
168
|
-
*/
|
|
169
|
-
getView(onDeserialize?: DeserializeCallback): Promise<IntervalCollection<TInterval>>;
|
|
170
158
|
addInternal(serializedInterval: ISerializedInterval, local: boolean, op: ISequencedDocumentMessage): TInterval;
|
|
171
159
|
deleteInterval(serializedInterval: ISerializedInterval, local: boolean, op: ISequencedDocumentMessage): void;
|
|
172
160
|
serializeInternal(): ISerializedInterval[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intervalCollection.d.ts","s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489,23 +489,6 @@ export class LocalIntervalCollection {
|
|
|
489
489
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
490
490
|
return intervals.map((interval) => interval.serialize(client));
|
|
491
491
|
}
|
|
492
|
-
/**
|
|
493
|
-
* @deprecated This method only exists to support the deprecated IntervalCollection.delete(start, end).
|
|
494
|
-
*/
|
|
495
|
-
getLegacyInterval(start, end) {
|
|
496
|
-
const transientInterval = this.helpers.create("transient", start, end, this.client, IntervalType.Transient);
|
|
497
|
-
let result;
|
|
498
|
-
this.mapUntil((interval) => {
|
|
499
|
-
var _a;
|
|
500
|
-
if (interval.compareStart(transientInterval) === 0 &&
|
|
501
|
-
interval.compareEnd(transientInterval) === 0 && ((_a = interval.getIntervalId()) === null || _a === void 0 ? void 0 : _a.startsWith(LocalIntervalCollection.legacyIdPrefix))) {
|
|
502
|
-
result = interval;
|
|
503
|
-
return false;
|
|
504
|
-
}
|
|
505
|
-
return true;
|
|
506
|
-
});
|
|
507
|
-
return result;
|
|
508
|
-
}
|
|
509
492
|
}
|
|
510
493
|
LocalIntervalCollection.legacyIdPrefix = "legacy";
|
|
511
494
|
const compareSequenceIntervalEnds = (a, b) => a.end.compare(b.end);
|
|
@@ -709,18 +692,6 @@ export class IntervalCollection extends TypedEventEmitter {
|
|
|
709
692
|
this.emit("addInterval", interval, true, undefined);
|
|
710
693
|
return interval;
|
|
711
694
|
}
|
|
712
|
-
/**
|
|
713
|
-
* @deprecated delete by start/end position is deprecated. Use removeIntervalById.
|
|
714
|
-
*/
|
|
715
|
-
delete(start, end) {
|
|
716
|
-
if (!this.attached) {
|
|
717
|
-
throw new Error("attach must be called prior to deleting intervals");
|
|
718
|
-
}
|
|
719
|
-
const interval = this.localCollection.getLegacyInterval(start, end);
|
|
720
|
-
if (interval) {
|
|
721
|
-
this.deleteExistingInterval(interval, true, undefined);
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
695
|
deleteExistingInterval(interval, local, op) {
|
|
725
696
|
// The given interval is known to exist in the collection.
|
|
726
697
|
this.localCollection.removeExistingInterval(interval);
|
|
@@ -914,19 +885,6 @@ export class IntervalCollection extends TypedEventEmitter {
|
|
|
914
885
|
this.onDeserialize(interval);
|
|
915
886
|
});
|
|
916
887
|
}
|
|
917
|
-
/**
|
|
918
|
-
* @deprecated IntervalCollectionView has been removed. Refer to IntervalCollection directly.
|
|
919
|
-
*/
|
|
920
|
-
async getView(onDeserialize) {
|
|
921
|
-
if (!this.attached) {
|
|
922
|
-
return Promise.reject(new Error("attachSequence must be called prior to retrieving the view"));
|
|
923
|
-
}
|
|
924
|
-
// Attach custom deserializers if specified
|
|
925
|
-
if (onDeserialize) {
|
|
926
|
-
this.attachDeserializer(onDeserialize);
|
|
927
|
-
}
|
|
928
|
-
return this;
|
|
929
|
-
}
|
|
930
888
|
addInternal(serializedInterval, local, op) {
|
|
931
889
|
if (!this.attached) {
|
|
932
890
|
throw new Error("attachSequence must be called");
|