@fluidframework/sequence 0.53.0 → 0.54.2

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.
Files changed (43) hide show
  1. package/README.md +8 -25
  2. package/dist/packageVersion.d.ts +1 -1
  3. package/dist/packageVersion.js +1 -1
  4. package/dist/packageVersion.js.map +1 -1
  5. package/dist/sequence.d.ts.map +1 -1
  6. package/dist/sequence.js +1 -1
  7. package/dist/sequence.js.map +1 -1
  8. package/dist/sequenceFactory.d.ts +62 -0
  9. package/dist/sequenceFactory.d.ts.map +1 -1
  10. package/dist/sequenceFactory.js +62 -0
  11. package/dist/sequenceFactory.js.map +1 -1
  12. package/dist/sharedNumberSequence.d.ts +17 -0
  13. package/dist/sharedNumberSequence.d.ts.map +1 -1
  14. package/dist/sharedNumberSequence.js +17 -0
  15. package/dist/sharedNumberSequence.js.map +1 -1
  16. package/dist/sharedObjectSequence.d.ts +17 -0
  17. package/dist/sharedObjectSequence.d.ts.map +1 -1
  18. package/dist/sharedObjectSequence.js +17 -0
  19. package/dist/sharedObjectSequence.js.map +1 -1
  20. package/lib/packageVersion.d.ts +1 -1
  21. package/lib/packageVersion.js +1 -1
  22. package/lib/packageVersion.js.map +1 -1
  23. package/lib/sequence.d.ts.map +1 -1
  24. package/lib/sequence.js +1 -1
  25. package/lib/sequence.js.map +1 -1
  26. package/lib/sequenceFactory.d.ts +62 -0
  27. package/lib/sequenceFactory.d.ts.map +1 -1
  28. package/lib/sequenceFactory.js +62 -0
  29. package/lib/sequenceFactory.js.map +1 -1
  30. package/lib/sharedNumberSequence.d.ts +17 -0
  31. package/lib/sharedNumberSequence.d.ts.map +1 -1
  32. package/lib/sharedNumberSequence.js +17 -0
  33. package/lib/sharedNumberSequence.js.map +1 -1
  34. package/lib/sharedObjectSequence.d.ts +17 -0
  35. package/lib/sharedObjectSequence.d.ts.map +1 -1
  36. package/lib/sharedObjectSequence.js +17 -0
  37. package/lib/sharedObjectSequence.js.map +1 -1
  38. package/package.json +11 -11
  39. package/src/packageVersion.ts +1 -1
  40. package/src/sequence.ts +5 -2
  41. package/src/sequenceFactory.ts +62 -0
  42. package/src/sharedNumberSequence.ts +17 -0
  43. package/src/sharedObjectSequence.ts +17 -0
@@ -19,28 +19,90 @@ export declare class SharedStringFactory implements IChannelFactory {
19
19
  load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<SharedString>;
20
20
  create(document: IFluidDataStoreRuntime, id: string): SharedString;
21
21
  }
22
+ /**
23
+ * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
24
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
25
+ */
22
26
  export declare class SharedObjectSequenceFactory implements IChannelFactory {
27
+ /**
28
+ * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
29
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
30
+ */
23
31
  static Type: string;
32
+ /**
33
+ * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
34
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
35
+ */
24
36
  static readonly Attributes: IChannelAttributes;
37
+ /**
38
+ * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
39
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
40
+ */
25
41
  static segmentFromSpec(segSpec: IJSONSegment): SubSequence<object>;
42
+ /**
43
+ * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
44
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
45
+ */
26
46
  get type(): string;
47
+ /**
48
+ * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
49
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
50
+ */
27
51
  get attributes(): IChannelAttributes;
28
52
  /**
29
53
  * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}
54
+ *
55
+ * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
56
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
30
57
  */
31
58
  load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<ISharedObject>;
59
+ /**
60
+ * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
61
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
62
+ */
32
63
  create(document: IFluidDataStoreRuntime, id: string): ISharedObject;
33
64
  }
65
+ /**
66
+ * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
67
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
68
+ */
34
69
  export declare class SharedNumberSequenceFactory implements IChannelFactory {
70
+ /**
71
+ * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
72
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
73
+ */
35
74
  static Type: string;
75
+ /**
76
+ * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
77
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
78
+ */
36
79
  static readonly Attributes: IChannelAttributes;
80
+ /**
81
+ * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
82
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
83
+ */
37
84
  static segmentFromSpec(segSpec: IJSONSegment): SubSequence<number>;
85
+ /**
86
+ * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
87
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
88
+ */
38
89
  get type(): string;
90
+ /**
91
+ * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
92
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
93
+ */
39
94
  get attributes(): IChannelAttributes;
40
95
  /**
41
96
  * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}
97
+ *
98
+ * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
99
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
42
100
  */
43
101
  load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<ISharedObject>;
102
+ /**
103
+ * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
104
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
105
+ */
44
106
  create(document: IFluidDataStoreRuntime, id: string): ISharedObject;
45
107
  }
46
108
  //# sourceMappingURL=sequenceFactory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sequenceFactory.d.ts","sourceRoot":"","sources":["../src/sequenceFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,EAClB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACH,YAAY,EAGf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAInE,OAAO,EAAmB,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAEnE,qBAAa,mBAAoB,YAAW,eAAe;IAGvD,OAAc,IAAI,SAAiD;IAEnE,gBAAuB,UAAU,EAAE,kBAAkB,CAInD;WAEY,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB;IAQ7D,IAAW,IAAI,WAEd;IAED,IAAW,UAAU,uBAEpB;IAED;;OAEG;IACU,IAAI,CACb,OAAO,EAAE,sBAAsB,EAC/B,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,gBAAgB,EAC1B,UAAU,EA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IACH,gBAAuB,UAAU,EAAE,kBAAkB,CAInD;IAEF;;;OAGG;WACW,eAAe,CAAC,OAAO,EAAE,YAAY;IAWnD;;;OAGG;IACH,IAAW,IAAI,WAEd;IAED;;;OAGG;IACH,IAAW,UAAU,uBAEpB;IAED;;;;;OAKG;IACU,IAAI,CACb,OAAO,EAAE,sBAAsB,EAC/B,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,gBAAgB,EAC1B,UAAU,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC;IAM3D;;;OAGG;IACI,MAAM,CAAC,QAAQ,EAAE,sBAAsB,EAAE,EAAE,EAAE,MAAM,GAAG,aAAa;CAK7E"}
@@ -47,7 +47,15 @@ SharedStringFactory.Attributes = {
47
47
  snapshotFormatVersion: "0.1",
48
48
  packageVersion: pkgVersion,
49
49
  };
50
+ /**
51
+ * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
52
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
53
+ */
50
54
  export class SharedObjectSequenceFactory {
55
+ /**
56
+ * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
57
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
58
+ */
51
59
  static segmentFromSpec(segSpec) {
52
60
  // eslint-disable-next-line @typescript-eslint/ban-types
53
61
  const runSegment = segSpec;
@@ -60,14 +68,25 @@ export class SharedObjectSequenceFactory {
60
68
  return seg;
61
69
  }
62
70
  }
71
+ /**
72
+ * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
73
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
74
+ */
63
75
  get type() {
64
76
  return SharedObjectSequenceFactory.Type;
65
77
  }
78
+ /**
79
+ * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
80
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
81
+ */
66
82
  get attributes() {
67
83
  return SharedObjectSequenceFactory.Attributes;
68
84
  }
69
85
  /**
70
86
  * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}
87
+ *
88
+ * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
89
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
71
90
  */
72
91
  async load(runtime, id, services, attributes) {
73
92
  // eslint-disable-next-line @typescript-eslint/ban-types
@@ -75,19 +94,39 @@ export class SharedObjectSequenceFactory {
75
94
  await sharedSeq.load(services);
76
95
  return sharedSeq;
77
96
  }
97
+ /**
98
+ * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
99
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
100
+ */
78
101
  create(document, id) {
79
102
  const sharedString = new SharedObjectSequence(document, id, this.attributes);
80
103
  sharedString.initializeLocal();
81
104
  return sharedString;
82
105
  }
83
106
  }
107
+ /**
108
+ * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
109
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
110
+ */
84
111
  SharedObjectSequenceFactory.Type = "https://graph.microsoft.com/types/mergeTree/object-sequence";
112
+ /**
113
+ * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
114
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
115
+ */
85
116
  SharedObjectSequenceFactory.Attributes = {
86
117
  type: SharedObjectSequenceFactory.Type,
87
118
  snapshotFormatVersion: "0.1",
88
119
  packageVersion: pkgVersion,
89
120
  };
121
+ /**
122
+ * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
123
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
124
+ */
90
125
  export class SharedNumberSequenceFactory {
126
+ /**
127
+ * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
128
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
129
+ */
91
130
  static segmentFromSpec(segSpec) {
92
131
  const runSegment = segSpec;
93
132
  if (runSegment.items) {
@@ -98,27 +137,50 @@ export class SharedNumberSequenceFactory {
98
137
  return seg;
99
138
  }
100
139
  }
140
+ /**
141
+ * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
142
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
143
+ */
101
144
  get type() {
102
145
  return SharedNumberSequenceFactory.Type;
103
146
  }
147
+ /**
148
+ * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
149
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
150
+ */
104
151
  get attributes() {
105
152
  return SharedNumberSequenceFactory.Attributes;
106
153
  }
107
154
  /**
108
155
  * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}
156
+ *
157
+ * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
158
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
109
159
  */
110
160
  async load(runtime, id, services, attributes) {
111
161
  const sharedSeq = new SharedNumberSequence(runtime, id, attributes);
112
162
  await sharedSeq.load(services);
113
163
  return sharedSeq;
114
164
  }
165
+ /**
166
+ * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
167
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
168
+ */
115
169
  create(document, id) {
116
170
  const sharedString = new SharedNumberSequence(document, id, this.attributes);
117
171
  sharedString.initializeLocal();
118
172
  return sharedString;
119
173
  }
120
174
  }
175
+ /**
176
+ * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
177
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
178
+ */
121
179
  SharedNumberSequenceFactory.Type = "https://graph.microsoft.com/types/mergeTree/number-sequence";
180
+ /**
181
+ * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
182
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
183
+ */
122
184
  SharedNumberSequenceFactory.Attributes = {
123
185
  type: SharedNumberSequenceFactory.Type,
124
186
  snapshotFormatVersion: "0.1",
@@ -1 +1 @@
1
- {"version":3,"file":"sequenceFactory.js","sourceRoot":"","sources":["../src/sequenceFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,EAEH,MAAM,EACN,WAAW,GACd,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAmB,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAuB,MAAM,gBAAgB,CAAC;AAEnE,MAAM,OAAO,mBAAmB;IAWrB,MAAM,CAAC,eAAe,CAAC,IAAS;QACnC,MAAM,SAAS,GAAG,WAAW,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QACnD,IAAI,SAAS,EAAE;YAAE,OAAO,SAAS,CAAC;SAAE;QAEpC,MAAM,WAAW,GAAG,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAChD,IAAI,WAAW,EAAE;YAAE,OAAO,WAAW,CAAC;SAAE;IAC5C,CAAC;IAED,IAAW,IAAI;QACX,OAAO,mBAAmB,CAAC,IAAI,CAAC;IACpC,CAAC;IAED,IAAW,UAAU;QACjB,OAAO,mBAAmB,CAAC,UAAU,CAAC;IAC1C,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,IAAI,CACb,OAA+B,EAC/B,EAAU,EACV,QAA0B,EAC1B,UAA8B;QAC9B,MAAM,YAAY,GAAG,IAAI,YAAY,CAAC,OAAO,EAAE,EAAE,EAAE,UAAU,CAAC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U;QACtD,MAAM,YAAY,GAAG,IAAI,oBAAoB,CAAC,QAAQ,EAAE,EAAE,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QAC7E,YAAY,CAAC,eAAe,EAAE,CAAC;QAC/B,OAAO,YAAY,CAAC;IACxB,CAAC;;AA5Ca,gCAAI,GAAG,6DAA6D,CAAC;AAE5D,sCAAU,GAAuB;IACpD,IAAI,EAAE,2BAA2B,CAAC,IAAI;IACtC,qBAAqB,EAAE,KAAK;IAC5B,cAAc,EAAE,UAAU;CAC7B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n IChannelAttributes,\n IFluidDataStoreRuntime,\n IChannelServices,\n IChannelFactory,\n} from \"@fluidframework/datastore-definitions\";\nimport {\n IJSONSegment,\n Marker,\n TextSegment,\n} from \"@fluidframework/merge-tree\";\nimport { ISharedObject } from \"@fluidframework/shared-object-base\";\nimport { pkgVersion } from \"./packageVersion\";\nimport { SharedNumberSequence } from \"./sharedNumberSequence\";\nimport { SharedObjectSequence } from \"./sharedObjectSequence\";\nimport { IJSONRunSegment, SubSequence } from \"./sharedSequence\";\nimport { SharedString, SharedStringSegment } from \"./sharedString\";\n\nexport class SharedStringFactory implements IChannelFactory {\n // TODO rename back to https://graph.microsoft.com/types/mergeTree/string once paparazzi is able to dynamically\n // load code\n public static Type = \"https://graph.microsoft.com/types/mergeTree\";\n\n public static readonly Attributes: IChannelAttributes = {\n type: SharedStringFactory.Type,\n snapshotFormatVersion: \"0.1\",\n packageVersion: pkgVersion,\n };\n\n public static segmentFromSpec(spec: any): SharedStringSegment {\n const maybeText = TextSegment.fromJSONObject(spec);\n if (maybeText) { return maybeText; }\n\n const maybeMarker = Marker.fromJSONObject(spec);\n if (maybeMarker) { return maybeMarker; }\n }\n\n public get type() {\n return SharedStringFactory.Type;\n }\n\n public get attributes() {\n return SharedStringFactory.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<SharedString> {\n const sharedString = new SharedString(runtime, id, attributes);\n await sharedString.load(services);\n return sharedString;\n }\n\n public create(document: IFluidDataStoreRuntime, id: string): SharedString {\n const sharedString = new SharedString(document, id, this.attributes);\n sharedString.initializeLocal();\n return sharedString;\n }\n}\n\nexport class SharedObjectSequenceFactory implements IChannelFactory {\n public static Type = \"https://graph.microsoft.com/types/mergeTree/object-sequence\";\n\n public static readonly Attributes: IChannelAttributes = {\n type: SharedObjectSequenceFactory.Type,\n snapshotFormatVersion: \"0.1\",\n packageVersion: pkgVersion,\n };\n\n public static segmentFromSpec(segSpec: IJSONSegment) {\n // eslint-disable-next-line @typescript-eslint/ban-types\n const runSegment = segSpec as IJSONRunSegment<object>;\n if (runSegment.items) {\n // eslint-disable-next-line @typescript-eslint/ban-types\n const seg = new SubSequence<object>(runSegment.items);\n if (runSegment.props) {\n seg.addProperties(runSegment.props);\n }\n return seg;\n }\n }\n\n public get type() {\n return SharedObjectSequenceFactory.Type;\n }\n\n public get attributes() {\n return SharedObjectSequenceFactory.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<ISharedObject> {\n // eslint-disable-next-line @typescript-eslint/ban-types\n const sharedSeq = new SharedObjectSequence<object>(runtime, id, attributes);\n await sharedSeq.load(services);\n return sharedSeq;\n }\n\n public create(document: IFluidDataStoreRuntime, id: string): ISharedObject {\n const sharedString = new SharedObjectSequence(document, id, this.attributes);\n sharedString.initializeLocal();\n return sharedString;\n }\n}\n\nexport class SharedNumberSequenceFactory implements IChannelFactory {\n public static Type = \"https://graph.microsoft.com/types/mergeTree/number-sequence\";\n\n public static readonly Attributes: IChannelAttributes = {\n type: SharedNumberSequenceFactory.Type,\n snapshotFormatVersion: \"0.1\",\n packageVersion: pkgVersion,\n };\n\n public static segmentFromSpec(segSpec: IJSONSegment) {\n const runSegment = segSpec as IJSONRunSegment<number>;\n if (runSegment.items) {\n const seg = new SubSequence<number>(runSegment.items);\n if (runSegment.props) {\n seg.addProperties(runSegment.props);\n }\n return seg;\n }\n }\n\n public get type() {\n return SharedNumberSequenceFactory.Type;\n }\n\n public get attributes() {\n return SharedNumberSequenceFactory.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<ISharedObject> {\n const sharedSeq = new SharedNumberSequence(runtime, id, attributes);\n await sharedSeq.load(services);\n return sharedSeq;\n }\n\n public create(document: IFluidDataStoreRuntime, id: string): ISharedObject {\n const sharedString = new SharedNumberSequence(document, id, this.attributes);\n sharedString.initializeLocal();\n return sharedString;\n }\n}\n"]}
1
+ {"version":3,"file":"sequenceFactory.js","sourceRoot":"","sources":["../src/sequenceFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,EAEH,MAAM,EACN,WAAW,GACd,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAmB,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAuB,MAAM,gBAAgB,CAAC;AAEnE,MAAM,OAAO,mBAAmB;IAWrB,MAAM,CAAC,eAAe,CAAC,IAAS;QACnC,MAAM,SAAS,GAAG,WAAW,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QACnD,IAAI,SAAS,EAAE;YAAE,OAAO,SAAS,CAAC;SAAE;QAEpC,MAAM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AE;gBAClB,GAAG,CAAC,aAAa,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;aACvC;YACD,OAAO,GAAG,CAAC;SACd;IACL,CAAC;IAED;;;OAGG;IACH,IAAW,IAAI;QACX,OAAO,2BAA2B,CAAC,IAAI,CAAC;IAC5C,CAAC;IAED;;;OAGG;IACH,IAAW,UAAU;QACjB,OAAO,2BAA2B,CAAC,UAAU,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,IAAI,CACb,OAA+B,EAC/B,EAAU,EACV,QAA0B,EAC1B,UAA8B;QAC9B,MAAM,SAAS,GAAG,IAAI,oBAAoB,CAAC,OAAO,EAAE,EAAE,EAAE,UAAU,CAAC,CAAC;QACpE,MAAM,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC/B,OAAO,SAAS,CAAC;IACrB,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,QAAgC,EAAE,EAAU;QACtD,MAAM,YAAY,GAAG,IAAI,oBAAoB,CAAC,QAAQ,EAAE,EAAE,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QAC7E,YAAY,CAAC,eAAe,EAAE,CAAC;QAC/B,OAAO,YAAY,CAAC;IACxB,CAAC;;AAvED;;;GAGG;AACW,gCAAI,GAAG,6DAA6D,CAAC;AAEnF;;;GAGG;AACoB,sCAAU,GAAuB;IACpD,IAAI,EAAE,2BAA2B,CAAC,IAAI;IACtC,qBAAqB,EAAE,KAAK;IAC5B,cAAc,EAAE,UAAU;CAC7B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n IChannelAttributes,\n IFluidDataStoreRuntime,\n IChannelServices,\n IChannelFactory,\n} from \"@fluidframework/datastore-definitions\";\nimport {\n IJSONSegment,\n Marker,\n TextSegment,\n} from \"@fluidframework/merge-tree\";\nimport { ISharedObject } from \"@fluidframework/shared-object-base\";\nimport { pkgVersion } from \"./packageVersion\";\nimport { SharedNumberSequence } from \"./sharedNumberSequence\";\nimport { SharedObjectSequence } from \"./sharedObjectSequence\";\nimport { IJSONRunSegment, SubSequence } from \"./sharedSequence\";\nimport { SharedString, SharedStringSegment } from \"./sharedString\";\n\nexport class SharedStringFactory implements IChannelFactory {\n // TODO rename back to https://graph.microsoft.com/types/mergeTree/string once paparazzi is able to dynamically\n // load code\n public static Type = \"https://graph.microsoft.com/types/mergeTree\";\n\n public static readonly Attributes: IChannelAttributes = {\n type: SharedStringFactory.Type,\n snapshotFormatVersion: \"0.1\",\n packageVersion: pkgVersion,\n };\n\n public static segmentFromSpec(spec: any): SharedStringSegment {\n const maybeText = TextSegment.fromJSONObject(spec);\n if (maybeText) { return maybeText; }\n\n const maybeMarker = Marker.fromJSONObject(spec);\n if (maybeMarker) { return maybeMarker; }\n }\n\n public get type() {\n return SharedStringFactory.Type;\n }\n\n public get attributes() {\n return SharedStringFactory.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<SharedString> {\n const sharedString = new SharedString(runtime, id, attributes);\n await sharedString.load(services);\n return sharedString;\n }\n\n public create(document: IFluidDataStoreRuntime, id: string): SharedString {\n const sharedString = new SharedString(document, id, this.attributes);\n sharedString.initializeLocal();\n return sharedString;\n }\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 */\nexport class SharedObjectSequenceFactory implements IChannelFactory {\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 Type = \"https://graph.microsoft.com/types/mergeTree/object-sequence\";\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 static readonly Attributes: IChannelAttributes = {\n type: SharedObjectSequenceFactory.Type,\n snapshotFormatVersion: \"0.1\",\n packageVersion: pkgVersion,\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 static segmentFromSpec(segSpec: IJSONSegment) {\n // eslint-disable-next-line @typescript-eslint/ban-types\n const runSegment = segSpec as IJSONRunSegment<object>;\n if (runSegment.items) {\n // eslint-disable-next-line @typescript-eslint/ban-types\n const seg = new SubSequence<object>(runSegment.items);\n if (runSegment.props) {\n seg.addProperties(runSegment.props);\n }\n return seg;\n }\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 get type() {\n return SharedObjectSequenceFactory.Type;\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 get attributes() {\n return SharedObjectSequenceFactory.Attributes;\n }\n\n /**\n * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}\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 async load(\n runtime: IFluidDataStoreRuntime,\n id: string,\n services: IChannelServices,\n attributes: IChannelAttributes): Promise<ISharedObject> {\n // eslint-disable-next-line @typescript-eslint/ban-types\n const sharedSeq = new SharedObjectSequence<object>(runtime, id, attributes);\n await sharedSeq.load(services);\n return sharedSeq;\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 create(document: IFluidDataStoreRuntime, id: string): ISharedObject {\n const sharedString = new SharedObjectSequence(document, id, this.attributes);\n sharedString.initializeLocal();\n return sharedString;\n }\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 */\nexport class SharedNumberSequenceFactory implements IChannelFactory {\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 Type = \"https://graph.microsoft.com/types/mergeTree/number-sequence\";\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 static readonly Attributes: IChannelAttributes = {\n type: SharedNumberSequenceFactory.Type,\n snapshotFormatVersion: \"0.1\",\n packageVersion: pkgVersion,\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 static segmentFromSpec(segSpec: IJSONSegment) {\n const runSegment = segSpec as IJSONRunSegment<number>;\n if (runSegment.items) {\n const seg = new SubSequence<number>(runSegment.items);\n if (runSegment.props) {\n seg.addProperties(runSegment.props);\n }\n return seg;\n }\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 get type() {\n return SharedNumberSequenceFactory.Type;\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 get attributes() {\n return SharedNumberSequenceFactory.Attributes;\n }\n\n /**\n * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}\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 async load(\n runtime: IFluidDataStoreRuntime,\n id: string,\n services: IChannelServices,\n attributes: IChannelAttributes): Promise<ISharedObject> {\n const sharedSeq = new SharedNumberSequence(runtime, id, attributes);\n await sharedSeq.load(services);\n return sharedSeq;\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 create(document: IFluidDataStoreRuntime, id: string): ISharedObject {\n const sharedString = new SharedNumberSequence(document, id, this.attributes);\n sharedString.initializeLocal();\n return sharedString;\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 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;;;;;GAKG;AACH,qBAAa,oBAAqB,SAAQ,cAAc,CAAC,MAAM,CAAC;IAsBP,EAAE,EAAE,MAAM;IArB/D;;;;;;OAMG;WACW,MAAM,CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,CAAC,EAAE,MAAM;IAKjE;;;;OAIG;WACW,UAAU;gBAIZ,QAAQ,EAAE,sBAAsB,EAAS,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,kBAAkB;IAIxF,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM;CAG9C"}
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"}
@@ -9,8 +9,15 @@ import { SharedSequence } from "./sharedSequence";
9
9
  * at a position within the sequence. See the
10
10
  * {@link https://fluidframework.com/docs/data-structures/sequences/ | sequence documentation}
11
11
  * for details on working with sequences.
12
+ *
13
+ * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
14
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
12
15
  */
13
16
  export class SharedNumberSequence extends SharedSequence {
17
+ /**
18
+ * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
19
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
20
+ */
14
21
  constructor(document, id, attributes) {
15
22
  super(document, id, attributes, SharedNumberSequenceFactory.segmentFromSpec);
16
23
  this.id = id;
@@ -21,6 +28,9 @@ export class SharedNumberSequence extends SharedSequence {
21
28
  * @param runtime - data store runtime the new shared number sequence belongs to
22
29
  * @param id - optional name of the shared number sequence
23
30
  * @returns newly create shared number sequence (but not attached yet)
31
+ *
32
+ * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
33
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
24
34
  */
25
35
  static create(runtime, id) {
26
36
  return runtime.createChannel(id, SharedNumberSequenceFactory.Type);
@@ -29,10 +39,17 @@ export class SharedNumberSequence extends SharedSequence {
29
39
  * Get a factory for SharedNumberSequence to register with the data store.
30
40
  *
31
41
  * @returns a factory that creates and load SharedNumberSequence
42
+ *
43
+ * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
44
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
32
45
  */
33
46
  static getFactory() {
34
47
  return new SharedNumberSequenceFactory();
35
48
  }
49
+ /**
50
+ * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
51
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
52
+ */
36
53
  getRange(start, end) {
37
54
  return this.getItems(start, end);
38
55
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sharedNumberSequence.js","sourceRoot":"","sources":["../src/sharedNumberSequence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;GAKG;AACH,MAAM,OAAO,oBAAqB,SAAQ,cAAsB;IAsB5D,YAAY,QAAgC,EAAS,EAAU,EAAE,UAA8B;QAC3F,KAAK,CAAC,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,2BAA2B,CAAC,eAAe,CAAC,CAAC;QAD5B,OAAE,GAAF,EAAE,CAAQ;IAE/D,CAAC;IAvBD;;;;;;OAMG;IACI,MAAM,CAAC,MAAM,CAAC,OAA+B,EAAE,EAAW;QAC7D,OAAO,OAAO,CAAC,aAAa,CAAC,EAAE,EAC3B,2BAA2B,CAAC,IAAI,CAAyB,CAAC;IAClE,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,UAAU;QACpB,OAAO,IAAI,2BAA2B,EAAE,CAAC;IAC7C,CAAC;IAMM,QAAQ,CAAC,KAAa,EAAE,GAAY;QACvC,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACrC,CAAC;CACJ","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 */\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 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 public static getFactory() {\n return new SharedNumberSequenceFactory();\n }\n\n constructor(document: IFluidDataStoreRuntime, public id: string, attributes: IChannelAttributes) {\n super(document, id, attributes, SharedNumberSequenceFactory.segmentFromSpec);\n }\n\n public getRange(start: number, end?: number) {\n return this.getItems(start, end);\n }\n}\n"]}
1
+ {"version":3,"file":"sharedNumberSequence.js","sourceRoot":"","sources":["../src/sharedNumberSequence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;;;GAQG;AACH,MAAM,OAAO,oBAAqB,SAAQ,cAAsB;IA4B5D;;;OAGG;IACH,YAAY,QAAgC,EAAS,EAAU,EAAE,UAA8B;QAC3F,KAAK,CAAC,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,2BAA2B,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,2BAA2B,CAAC,IAAI,CAAyB,CAAC;IAClE,CAAC;IAED;;;;;;;OAOG;IACI,MAAM,CAAC,UAAU;QACpB,OAAO,IAAI,2BAA2B,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","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;;;;;GAKG;AACH,qBAAa,oBAAoB,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;IAsBL,EAAE,EAAE,MAAM;IArB/D;;;;;;OAMG;WAEW,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,sBAAsB,EAAE,EAAE,CAAC,EAAE,MAAM;IAIpE;;;;OAIG;WACW,UAAU;gBAIZ,QAAQ,EAAE,sBAAsB,EAAS,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,kBAAkB;IAIxF,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC,CAAC,CAAC,EAAE;CAGlE"}
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"}
@@ -9,8 +9,15 @@ import { SharedSequence } from "./sharedSequence";
9
9
  * at a position within the sequence. See the
10
10
  * {@link https://fluidframework.com/docs/data-structures/sequences/ | sequence documentation}
11
11
  * for details on working with sequences.
12
+ *
13
+ * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
14
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
12
15
  */
13
16
  export class SharedObjectSequence extends SharedSequence {
17
+ /**
18
+ * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
19
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
20
+ */
14
21
  constructor(document, id, attributes) {
15
22
  super(document, id, attributes, SharedObjectSequenceFactory.segmentFromSpec);
16
23
  this.id = id;
@@ -21,6 +28,9 @@ export class SharedObjectSequence extends SharedSequence {
21
28
  * @param runtime - data store runtime the new shared object sequence belongs to
22
29
  * @param id - optional name of the shared object sequence
23
30
  * @returns newly create shared object sequence (but not attached yet)
31
+ *
32
+ * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
33
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
24
34
  */
25
35
  // eslint-disable-next-line @typescript-eslint/no-shadow
26
36
  static create(runtime, id) {
@@ -30,10 +40,17 @@ export class SharedObjectSequence extends SharedSequence {
30
40
  * Get a factory for SharedObjectSequence to register with the data store.
31
41
  *
32
42
  * @returns a factory that creates and load SharedObjectSequence
43
+ *
44
+ * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
45
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
33
46
  */
34
47
  static getFactory() {
35
48
  return new SharedObjectSequenceFactory();
36
49
  }
50
+ /**
51
+ * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
52
+ * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
53
+ */
37
54
  getRange(start, end) {
38
55
  return this.getItems(start, end);
39
56
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sharedObjectSequence.js","sourceRoot":"","sources":["../src/sharedObjectSequence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;GAKG;AACH,MAAM,OAAO,oBAAwB,SAAQ,cAAiB;IAsB1D,YAAY,QAAgC,EAAS,EAAU,EAAE,UAA8B;QAC3F,KAAK,CAAC,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,2BAA2B,CAAC,eAAe,CAAC,CAAC;QAD5B,OAAE,GAAF,EAAE,CAAQ;IAE/D,CAAC;IAvBD;;;;;;OAMG;IACH,wDAAwD;IACjD,MAAM,CAAC,MAAM,CAAI,OAA+B,EAAE,EAAW;QAChE,OAAO,OAAO,CAAC,aAAa,CAAC,EAAE,EAAE,2BAA2B,CAAC,IAAI,CAA4B,CAAC;IAClG,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,UAAU;QACpB,OAAO,IAAI,2BAA2B,EAAE,CAAC;IAC7C,CAAC;IAMM,QAAQ,CAAC,KAAa,EAAE,GAAY;QACvC,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACrC,CAAC;CACJ","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 */\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 // 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 public static getFactory() {\n return new SharedObjectSequenceFactory();\n }\n\n constructor(document: IFluidDataStoreRuntime, public id: string, attributes: IChannelAttributes) {\n super(document, id, attributes, SharedObjectSequenceFactory.segmentFromSpec);\n }\n\n public getRange(start: number, end?: number): Serializable<T>[] {\n return this.getItems(start, end);\n }\n}\n"]}
1
+ {"version":3,"file":"sharedObjectSequence.js","sourceRoot":"","sources":["../src/sharedObjectSequence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;;;GAQG;AACH,MAAM,OAAO,oBAAwB,SAAQ,cAAiB;IA4B1D;;;OAGG;IACH,YAAY,QAAgC,EAAS,EAAU,EAAE,UAA8B;QAC3F,KAAK,CAAC,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,2BAA2B,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,2BAA2B,CAAC,IAAI,CAA4B,CAAC;IAClG,CAAC;IAED;;;;;;;OAOG;IACI,MAAM,CAAC,UAAU;QACpB,OAAO,IAAI,2BAA2B,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","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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/sequence",
3
- "version": "0.53.0",
3
+ "version": "0.54.2",
4
4
  "description": "Distributed sequence",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": "https://github.com/microsoft/FluidFramework",
@@ -60,27 +60,27 @@
60
60
  "@fluidframework/common-definitions": "^0.20.1",
61
61
  "@fluidframework/common-utils": "^0.32.1",
62
62
  "@fluidframework/core-interfaces": "^0.41.0",
63
- "@fluidframework/datastore-definitions": "^0.53.0",
64
- "@fluidframework/merge-tree": "^0.53.0",
63
+ "@fluidframework/datastore-definitions": "^0.54.2",
64
+ "@fluidframework/merge-tree": "^0.54.2",
65
65
  "@fluidframework/protocol-definitions": "^0.1026.0",
66
- "@fluidframework/runtime-definitions": "^0.53.0",
67
- "@fluidframework/runtime-utils": "^0.53.0",
68
- "@fluidframework/shared-object-base": "^0.53.0",
69
- "@fluidframework/telemetry-utils": "^0.53.0",
66
+ "@fluidframework/runtime-definitions": "^0.54.2",
67
+ "@fluidframework/runtime-utils": "^0.54.2",
68
+ "@fluidframework/shared-object-base": "^0.54.2",
69
+ "@fluidframework/telemetry-utils": "^0.54.2",
70
70
  "uuid": "^8.3.1"
71
71
  },
72
72
  "devDependencies": {
73
- "@fluid-internal/test-dds-utils": "^0.53.0",
73
+ "@fluid-internal/test-dds-utils": "^0.54.2",
74
74
  "@fluidframework/build-common": "^0.23.0",
75
75
  "@fluidframework/eslint-config-fluid": "^0.24.0",
76
76
  "@fluidframework/gitresources": "^0.1034.0",
77
- "@fluidframework/mocha-test-setup": "^0.53.0",
77
+ "@fluidframework/mocha-test-setup": "^0.54.2",
78
78
  "@fluidframework/server-services-client": "^0.1034.0",
79
- "@fluidframework/test-runtime-utils": "^0.53.0",
79
+ "@fluidframework/test-runtime-utils": "^0.54.2",
80
80
  "@microsoft/api-extractor": "^7.16.1",
81
81
  "@types/diff": "^3.5.1",
82
82
  "@types/mocha": "^8.2.2",
83
- "@types/node": "^12.19.0",
83
+ "@types/node": "^14.18.0",
84
84
  "@types/random-js": "^1.0.31",
85
85
  "@typescript-eslint/eslint-plugin": "~4.14.0",
86
86
  "@typescript-eslint/parser": "~4.14.0",
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/sequence";
9
- export const pkgVersion = "0.53.0";
9
+ export const pkgVersion = "0.54.2";
package/src/sequence.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  import { Deferred, bufferToString, assert } from "@fluidframework/common-utils";
6
- import { IFluidSerializer } from "@fluidframework/core-interfaces";
6
+ import { IFluidHandle, IFluidSerializer } from "@fluidframework/core-interfaces";
7
7
  import { ChildLogger } from "@fluidframework/telemetry-utils";
8
8
  import {
9
9
  FileMode,
@@ -461,7 +461,10 @@ export abstract class SharedSegmentSequence<T extends ISegment>
461
461
  protected getGCDataCore(): IGarbageCollectionData {
462
462
  // Create a SummarySerializer and use it to serialize all the cells. It keeps track of all IFluidHandles that it
463
463
  // serializes.
464
- const serializer = new SummarySerializer(this.runtime.channelsRoutingContext);
464
+ const serializer = new SummarySerializer(
465
+ this.runtime.channelsRoutingContext,
466
+ (handle: IFluidHandle) => this.handleDecoded(handle),
467
+ );
465
468
 
466
469
  if (this.intervalMapKernel.size > 0) {
467
470
  this.intervalMapKernel.serialize(serializer);