@fluid-experimental/sequence-deprecated 2.0.0-rc.3.0.2 → 2.0.0-rc.4.0.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.
Files changed (56) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/api-report/sequence-deprecated.api.md +27 -16
  3. package/dist/index.d.ts +4 -4
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +6 -3
  6. package/dist/index.js.map +1 -1
  7. package/dist/packageVersion.d.ts +1 -1
  8. package/dist/packageVersion.js +1 -1
  9. package/dist/packageVersion.js.map +1 -1
  10. package/dist/sequenceFactory.d.ts +22 -0
  11. package/dist/sequenceFactory.d.ts.map +1 -1
  12. package/dist/sequenceFactory.js +16 -5
  13. package/dist/sequenceFactory.js.map +1 -1
  14. package/dist/sharedNumberSequence.d.ts +1 -22
  15. package/dist/sharedNumberSequence.d.ts.map +1 -1
  16. package/dist/sharedNumberSequence.js +3 -27
  17. package/dist/sharedNumberSequence.js.map +1 -1
  18. package/dist/sharedObjectSequence.d.ts +1 -22
  19. package/dist/sharedObjectSequence.d.ts.map +1 -1
  20. package/dist/sharedObjectSequence.js +3 -27
  21. package/dist/sharedObjectSequence.js.map +1 -1
  22. package/dist/sparsematrix.d.ts +17 -22
  23. package/dist/sparsematrix.d.ts.map +1 -1
  24. package/dist/sparsematrix.js +14 -26
  25. package/dist/sparsematrix.js.map +1 -1
  26. package/lib/index.d.ts +4 -4
  27. package/lib/index.d.ts.map +1 -1
  28. package/lib/index.js +4 -4
  29. package/lib/index.js.map +1 -1
  30. package/lib/packageVersion.d.ts +1 -1
  31. package/lib/packageVersion.js +1 -1
  32. package/lib/packageVersion.js.map +1 -1
  33. package/lib/sequenceFactory.d.ts +22 -0
  34. package/lib/sequenceFactory.d.ts.map +1 -1
  35. package/lib/sequenceFactory.js +17 -6
  36. package/lib/sequenceFactory.js.map +1 -1
  37. package/lib/sharedNumberSequence.d.ts +1 -22
  38. package/lib/sharedNumberSequence.d.ts.map +1 -1
  39. package/lib/sharedNumberSequence.js +1 -25
  40. package/lib/sharedNumberSequence.js.map +1 -1
  41. package/lib/sharedObjectSequence.d.ts +1 -22
  42. package/lib/sharedObjectSequence.d.ts.map +1 -1
  43. package/lib/sharedObjectSequence.js +1 -25
  44. package/lib/sharedObjectSequence.js.map +1 -1
  45. package/lib/sparsematrix.d.ts +17 -22
  46. package/lib/sparsematrix.d.ts.map +1 -1
  47. package/lib/sparsematrix.js +12 -24
  48. package/lib/sparsematrix.js.map +1 -1
  49. package/lib/tsdoc-metadata.json +1 -1
  50. package/package.json +14 -14
  51. package/src/index.ts +9 -3
  52. package/src/packageVersion.ts +1 -1
  53. package/src/sequenceFactory.ts +29 -6
  54. package/src/sharedNumberSequence.ts +1 -27
  55. package/src/sharedObjectSequence.ts +1 -31
  56. package/src/sparsematrix.ts +21 -30
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @fluid-experimental/sequence-deprecated
2
2
 
3
+ ## 2.0.0-rc.4.0.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Deprecated members of IFluidHandle are split off into new IFluidHandleInternal interface [96872186d0](https://github.com/microsoft/FluidFramework/commit/96872186d0d0f245c1fece7d19b3743e501679b6)
8
+
9
+ Split IFluidHandle into two interfaces, `IFluidHandle` and `IFluidHandleInternal`.
10
+ Code depending on the previously deprecated members of IFluidHandle can access them by using `toFluidHandleInternal` from `@fluidframework/runtime-utils/legacy`.
11
+
12
+ External implementation of the `IFluidHandle` interface are not supported: this change makes the typing better convey this using the `ErasedType` pattern.
13
+ Any existing and previously working, and now broken, external implementations of `IFluidHandle` should still work at runtime, but will need some unsafe type casts to compile.
14
+ Such handle implementation may break in the future and thus should be replaced with use of handles produced by the Fluid Framework client packages.
15
+
3
16
  ## 2.0.0-rc.3.0.0
4
17
 
5
18
  ### Major Changes
@@ -14,6 +14,9 @@ import { IJSONRunSegment } from '@fluidframework/sequence/internal';
14
14
  import { IJSONSegment } from '@fluidframework/merge-tree/internal';
15
15
  import { ISegment } from '@fluidframework/merge-tree/internal';
16
16
  import { ISharedObject } from '@fluidframework/shared-object-base';
17
+ import { ISharedObjectEvents } from '@fluidframework/shared-object-base';
18
+ import { ISharedObjectKind } from '@fluidframework/shared-object-base/internal';
19
+ import { ISharedObjectKind as ISharedObjectKind_2 } from '@fluidframework/shared-object-base';
17
20
  import { Jsonable } from '@fluidframework/datastore-definitions/internal';
18
21
  import { PropertySet } from '@fluidframework/merge-tree/internal';
19
22
  import { Serializable } from '@fluidframework/datastore-definitions/internal';
@@ -107,14 +110,16 @@ export class RunSegment extends SubSequence<SparseMatrixItem> {
107
110
  static readonly typeString = "RunSegment";
108
111
  }
109
112
 
113
+ // @internal
114
+ export const SharedNumberSequence: ISharedObjectKind_2<ISharedObject<ISharedObjectEvents>>;
115
+
116
+ // @internal
117
+ export type SharedNumberSequence = SharedNumberSequenceClass;
118
+
110
119
  // @internal @deprecated
111
- export class SharedNumberSequence extends SharedSequence<number> {
120
+ export class SharedNumberSequenceClass extends SharedSequence<number> {
112
121
  // @deprecated
113
122
  constructor(document: IFluidDataStoreRuntime, id: string, attributes: IChannelAttributes);
114
- // @deprecated
115
- static create(runtime: IFluidDataStoreRuntime, id?: string): SharedNumberSequence;
116
- // @deprecated
117
- static getFactory(): SharedNumberSequenceFactory;
118
123
  // @deprecated (undocumented)
119
124
  getRange(start: number, end?: number): number[];
120
125
  // (undocumented)
@@ -139,14 +144,16 @@ export class SharedNumberSequenceFactory implements IChannelFactory {
139
144
  get type(): string;
140
145
  }
141
146
 
147
+ // @internal
148
+ export const SharedObjectSequence: ISharedObjectKind_2<ISharedObject<ISharedObjectEvents>>;
149
+
150
+ // @internal
151
+ export type SharedObjectSequence<T> = SharedObjectSequenceClass<T>;
152
+
142
153
  // @internal @deprecated
143
- export class SharedObjectSequence<T> extends SharedSequence<T> {
154
+ export class SharedObjectSequenceClass<T> extends SharedSequence<T> {
144
155
  // @deprecated
145
156
  constructor(document: IFluidDataStoreRuntime, id: string, attributes: IChannelAttributes);
146
- // @deprecated
147
- static create<T>(runtime: IFluidDataStoreRuntime, id?: string): SharedObjectSequence<T>;
148
- // @deprecated
149
- static getFactory(): SharedObjectSequenceFactory;
150
157
  // @deprecated (undocumented)
151
158
  getRange(start: number, end?: number): Serializable<T>[];
152
159
  // (undocumented)
@@ -174,12 +181,16 @@ export class SharedObjectSequenceFactory implements IChannelFactory {
174
181
  export { SharedSequence }
175
182
 
176
183
  // @internal @deprecated (undocumented)
177
- export class SparseMatrix extends SharedSegmentSequence<MatrixSegment> {
184
+ export const SparseMatrix: ISharedObjectKind<SparseMatrixClass>;
185
+
186
+ // @internal (undocumented)
187
+ export type SparseMatrix = SparseMatrixClass;
188
+
189
+ // @internal (undocumented)
190
+ export class SparseMatrixClass extends SharedSegmentSequence<MatrixSegment> {
178
191
  constructor(document: IFluidDataStoreRuntime, id: string, attributes: IChannelAttributes);
179
192
  // (undocumented)
180
193
  annotatePosition(row: number, col: number, props: PropertySet): void;
181
- static create(runtime: IFluidDataStoreRuntime, id?: string): SparseMatrix;
182
- static getFactory(): IChannelFactory;
183
194
  // (undocumented)
184
195
  getItem(row: number, col: number): // The return type is defined explicitly here to prevent TypeScript from generating dynamic imports
185
196
  Jsonable<string | number | boolean | IFluidHandle> | undefined;
@@ -206,14 +217,14 @@ export class SparseMatrix extends SharedSegmentSequence<MatrixSegment> {
206
217
  }
207
218
 
208
219
  // @internal @deprecated (undocumented)
209
- export class SparseMatrixFactory implements IChannelFactory {
220
+ export class SparseMatrixFactory implements IChannelFactory<SparseMatrix> {
210
221
  // (undocumented)
211
222
  static Attributes: IChannelAttributes;
212
223
  // (undocumented)
213
224
  get attributes(): IChannelAttributes;
214
225
  // (undocumented)
215
- create(document: IFluidDataStoreRuntime, id: string): ISharedObject;
216
- load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<ISharedObject>;
226
+ create(document: IFluidDataStoreRuntime, id: string): SparseMatrix;
227
+ load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<SparseMatrix>;
217
228
  // (undocumented)
218
229
  static segmentFromSpec(spec: IJSONSegment): ISegment;
219
230
  // (undocumented)
package/dist/index.d.ts CHANGED
@@ -2,9 +2,9 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- export { SharedNumberSequence } from "./sharedNumberSequence.js";
6
- export { SharedObjectSequence } from "./sharedObjectSequence.js";
7
- export { MatrixSegment, maxCellPosition, maxCol, maxCols, maxRow, maxRows, PaddingSegment, positionToRowCol, rowColToPosition, RunSegment, SparseMatrix, SparseMatrixFactory, SparseMatrixItem, } from "./sparsematrix.js";
5
+ export { SharedNumberSequenceClass } from "./sharedNumberSequence.js";
6
+ export { SharedObjectSequenceClass } from "./sharedObjectSequence.js";
7
+ export { MatrixSegment, maxCellPosition, maxCol, maxCols, maxRow, maxRows, PaddingSegment, positionToRowCol, rowColToPosition, RunSegment, SparseMatrix, SparseMatrixFactory, SparseMatrixItem, SparseMatrixClass, } from "./sparsematrix.js";
8
8
  export { IJSONRunSegment, SubSequence, SharedSequence } from "./sharedSequence.js";
9
- export { SharedNumberSequenceFactory, SharedObjectSequenceFactory } from "./sequenceFactory.js";
9
+ export { SharedNumberSequenceFactory, SharedObjectSequenceFactory, SharedNumberSequence, SharedObjectSequence, } from "./sequenceFactory.js";
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EACN,aAAa,EACb,eAAe,EACf,MAAM,EACN,OAAO,EACP,MAAM,EACN,OAAO,EACP,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,GAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EACN,aAAa,EACb,eAAe,EACf,MAAM,EACN,OAAO,EACP,MAAM,EACN,OAAO,EACP,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,GACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,EACN,2BAA2B,EAC3B,2BAA2B,EAC3B,oBAAoB,EACpB,oBAAoB,GACpB,MAAM,sBAAsB,CAAC"}
package/dist/index.js CHANGED
@@ -4,11 +4,11 @@
4
4
  * Licensed under the MIT License.
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.SharedObjectSequenceFactory = exports.SharedNumberSequenceFactory = exports.SharedSequence = exports.SubSequence = exports.SparseMatrixFactory = exports.SparseMatrix = exports.RunSegment = exports.rowColToPosition = exports.positionToRowCol = exports.PaddingSegment = exports.maxRows = exports.maxRow = exports.maxCols = exports.maxCol = exports.maxCellPosition = exports.SharedObjectSequence = exports.SharedNumberSequence = void 0;
7
+ exports.SharedObjectSequence = exports.SharedNumberSequence = exports.SharedObjectSequenceFactory = exports.SharedNumberSequenceFactory = exports.SharedSequence = exports.SubSequence = exports.SparseMatrixClass = exports.SparseMatrixFactory = exports.SparseMatrix = exports.RunSegment = exports.rowColToPosition = exports.positionToRowCol = exports.PaddingSegment = exports.maxRows = exports.maxRow = exports.maxCols = exports.maxCol = exports.maxCellPosition = exports.SharedObjectSequenceClass = exports.SharedNumberSequenceClass = void 0;
8
8
  var sharedNumberSequence_js_1 = require("./sharedNumberSequence.js");
9
- Object.defineProperty(exports, "SharedNumberSequence", { enumerable: true, get: function () { return sharedNumberSequence_js_1.SharedNumberSequence; } });
9
+ Object.defineProperty(exports, "SharedNumberSequenceClass", { enumerable: true, get: function () { return sharedNumberSequence_js_1.SharedNumberSequenceClass; } });
10
10
  var sharedObjectSequence_js_1 = require("./sharedObjectSequence.js");
11
- Object.defineProperty(exports, "SharedObjectSequence", { enumerable: true, get: function () { return sharedObjectSequence_js_1.SharedObjectSequence; } });
11
+ Object.defineProperty(exports, "SharedObjectSequenceClass", { enumerable: true, get: function () { return sharedObjectSequence_js_1.SharedObjectSequenceClass; } });
12
12
  var sparsematrix_js_1 = require("./sparsematrix.js");
13
13
  Object.defineProperty(exports, "maxCellPosition", { enumerable: true, get: function () { return sparsematrix_js_1.maxCellPosition; } });
14
14
  Object.defineProperty(exports, "maxCol", { enumerable: true, get: function () { return sparsematrix_js_1.maxCol; } });
@@ -21,10 +21,13 @@ Object.defineProperty(exports, "rowColToPosition", { enumerable: true, get: func
21
21
  Object.defineProperty(exports, "RunSegment", { enumerable: true, get: function () { return sparsematrix_js_1.RunSegment; } });
22
22
  Object.defineProperty(exports, "SparseMatrix", { enumerable: true, get: function () { return sparsematrix_js_1.SparseMatrix; } });
23
23
  Object.defineProperty(exports, "SparseMatrixFactory", { enumerable: true, get: function () { return sparsematrix_js_1.SparseMatrixFactory; } });
24
+ Object.defineProperty(exports, "SparseMatrixClass", { enumerable: true, get: function () { return sparsematrix_js_1.SparseMatrixClass; } });
24
25
  var sharedSequence_js_1 = require("./sharedSequence.js");
25
26
  Object.defineProperty(exports, "SubSequence", { enumerable: true, get: function () { return sharedSequence_js_1.SubSequence; } });
26
27
  Object.defineProperty(exports, "SharedSequence", { enumerable: true, get: function () { return sharedSequence_js_1.SharedSequence; } });
27
28
  var sequenceFactory_js_1 = require("./sequenceFactory.js");
28
29
  Object.defineProperty(exports, "SharedNumberSequenceFactory", { enumerable: true, get: function () { return sequenceFactory_js_1.SharedNumberSequenceFactory; } });
29
30
  Object.defineProperty(exports, "SharedObjectSequenceFactory", { enumerable: true, get: function () { return sequenceFactory_js_1.SharedObjectSequenceFactory; } });
31
+ Object.defineProperty(exports, "SharedNumberSequence", { enumerable: true, get: function () { return sequenceFactory_js_1.SharedNumberSequence; } });
32
+ Object.defineProperty(exports, "SharedObjectSequence", { enumerable: true, get: function () { return sequenceFactory_js_1.SharedObjectSequence; } });
30
33
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,qEAAiE;AAAxD,+HAAA,oBAAoB,OAAA;AAC7B,qEAAiE;AAAxD,+HAAA,oBAAoB,OAAA;AAC7B,qDAc2B;AAZ1B,kHAAA,eAAe,OAAA;AACf,yGAAA,MAAM,OAAA;AACN,0GAAA,OAAO,OAAA;AACP,yGAAA,MAAM,OAAA;AACN,0GAAA,OAAO,OAAA;AACP,iHAAA,cAAc,OAAA;AACd,mHAAA,gBAAgB,OAAA;AAChB,mHAAA,gBAAgB,OAAA;AAChB,6GAAA,UAAU,OAAA;AACV,+GAAA,YAAY,OAAA;AACZ,sHAAA,mBAAmB,OAAA;AAGpB,yDAAmF;AAAzD,gHAAA,WAAW,OAAA;AAAE,mHAAA,cAAc,OAAA;AACrD,2DAAgG;AAAvF,iIAAA,2BAA2B,OAAA;AAAE,iIAAA,2BAA2B,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport { SharedNumberSequence } from \"./sharedNumberSequence.js\";\nexport { SharedObjectSequence } from \"./sharedObjectSequence.js\";\nexport {\n\tMatrixSegment,\n\tmaxCellPosition,\n\tmaxCol,\n\tmaxCols,\n\tmaxRow,\n\tmaxRows,\n\tPaddingSegment,\n\tpositionToRowCol,\n\trowColToPosition,\n\tRunSegment,\n\tSparseMatrix,\n\tSparseMatrixFactory,\n\tSparseMatrixItem,\n} from \"./sparsematrix.js\";\nexport { IJSONRunSegment, SubSequence, SharedSequence } from \"./sharedSequence.js\";\nexport { SharedNumberSequenceFactory, SharedObjectSequenceFactory } from \"./sequenceFactory.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,qEAAsE;AAA7D,oIAAA,yBAAyB,OAAA;AAClC,qEAAsE;AAA7D,oIAAA,yBAAyB,OAAA;AAClC,qDAe2B;AAb1B,kHAAA,eAAe,OAAA;AACf,yGAAA,MAAM,OAAA;AACN,0GAAA,OAAO,OAAA;AACP,yGAAA,MAAM,OAAA;AACN,0GAAA,OAAO,OAAA;AACP,iHAAA,cAAc,OAAA;AACd,mHAAA,gBAAgB,OAAA;AAChB,mHAAA,gBAAgB,OAAA;AAChB,6GAAA,UAAU,OAAA;AACV,+GAAA,YAAY,OAAA;AACZ,sHAAA,mBAAmB,OAAA;AAEnB,oHAAA,iBAAiB,OAAA;AAElB,yDAAmF;AAAzD,gHAAA,WAAW,OAAA;AAAE,mHAAA,cAAc,OAAA;AACrD,2DAK8B;AAJ7B,iIAAA,2BAA2B,OAAA;AAC3B,iIAAA,2BAA2B,OAAA;AAC3B,0HAAA,oBAAoB,OAAA;AACpB,0HAAA,oBAAoB,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport { SharedNumberSequenceClass } from \"./sharedNumberSequence.js\";\nexport { SharedObjectSequenceClass } from \"./sharedObjectSequence.js\";\nexport {\n\tMatrixSegment,\n\tmaxCellPosition,\n\tmaxCol,\n\tmaxCols,\n\tmaxRow,\n\tmaxRows,\n\tPaddingSegment,\n\tpositionToRowCol,\n\trowColToPosition,\n\tRunSegment,\n\tSparseMatrix,\n\tSparseMatrixFactory,\n\tSparseMatrixItem,\n\tSparseMatrixClass,\n} from \"./sparsematrix.js\";\nexport { IJSONRunSegment, SubSequence, SharedSequence } from \"./sharedSequence.js\";\nexport {\n\tSharedNumberSequenceFactory,\n\tSharedObjectSequenceFactory,\n\tSharedNumberSequence,\n\tSharedObjectSequence,\n} from \"./sequenceFactory.js\";\n"]}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluid-experimental/sequence-deprecated";
8
- export declare const pkgVersion = "2.0.0-rc.3.0.2";
8
+ export declare const pkgVersion = "2.0.0-rc.4.0.0";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -8,5 +8,5 @@
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.pkgVersion = exports.pkgName = void 0;
10
10
  exports.pkgName = "@fluid-experimental/sequence-deprecated";
11
- exports.pkgVersion = "2.0.0-rc.3.0.2";
11
+ exports.pkgVersion = "2.0.0-rc.4.0.0";
12
12
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,yCAAyC,CAAC;AACpD,QAAA,UAAU,GAAG,gBAAgB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluid-experimental/sequence-deprecated\";\nexport const pkgVersion = \"2.0.0-rc.3.0.2\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,yCAAyC,CAAC;AACpD,QAAA,UAAU,GAAG,gBAAgB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluid-experimental/sequence-deprecated\";\nexport const pkgVersion = \"2.0.0-rc.4.0.0\";\n"]}
@@ -6,6 +6,8 @@ import { IChannelAttributes, IChannelFactory, IChannelServices, IFluidDataStoreR
6
6
  import { IJSONSegment } from "@fluidframework/merge-tree/internal";
7
7
  import { SubSequence } from "@fluidframework/sequence/internal";
8
8
  import { ISharedObject } from "@fluidframework/shared-object-base";
9
+ import { SharedNumberSequenceClass } from "./sharedNumberSequence.js";
10
+ import { SharedObjectSequenceClass } from "./sharedObjectSequence.js";
9
11
  /**
10
12
  * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
11
13
  * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
@@ -94,4 +96,24 @@ export declare class SharedNumberSequenceFactory implements IChannelFactory {
94
96
  */
95
97
  create(document: IFluidDataStoreRuntime, id: string): ISharedObject;
96
98
  }
99
+ /**
100
+ * {@inheritDoc SharedNumberSequenceClass}
101
+ * @internal
102
+ */
103
+ export declare const SharedNumberSequence: import("@fluidframework/shared-object-base").ISharedObjectKind<ISharedObject<import("@fluidframework/shared-object-base").ISharedObjectEvents>>;
104
+ /**
105
+ * {@inheritDoc SharedNumberSequenceClass}
106
+ * @internal
107
+ */
108
+ export type SharedNumberSequence = SharedNumberSequenceClass;
109
+ /**
110
+ * {@inheritDoc SharedObjectSequenceClass}
111
+ * @internal
112
+ */
113
+ export declare const SharedObjectSequence: import("@fluidframework/shared-object-base").ISharedObjectKind<ISharedObject<import("@fluidframework/shared-object-base").ISharedObjectEvents>>;
114
+ /**
115
+ * {@inheritDoc SharedObjectSequenceClass}
116
+ * @internal
117
+ */
118
+ export type SharedObjectSequence<T> = SharedObjectSequenceClass<T>;
97
119
  //# 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,EACN,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAmB,WAAW,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAMnE;;;;GAIG;AACH,qBAAa,2BAA4B,YAAW,eAAe;IAClE;;;OAGG;IACH,OAAc,IAAI,SAAiE;IAEnF;;;OAGG;IACH,gBAAuB,UAAU,EAAE,kBAAkB,CAInD;IAEF;;;OAGG;WACW,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,WAAW,CAAC,MAAM,CAAC;IAazE;;;OAGG;IACH,IAAW,IAAI,WAEd;IAED;;;OAGG;IACH,IAAW,UAAU,uBAEpB;IAED;;;;;OAKG;IACU,IAAI,CAChB,OAAO,EAAE,sBAAsB,EAC/B,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,gBAAgB,EAC1B,UAAU,EAAE,kBAAkB,GAC5B,OAAO,CAAC,aAAa,CAAC;IAMzB;;;OAGG;IACI,MAAM,CAAC,QAAQ,EAAE,sBAAsB,EAAE,EAAE,EAAE,MAAM,GAAG,aAAa;CAK1E;AAED;;;;GAIG;AACH,qBAAa,2BAA4B,YAAW,eAAe;IAClE;;;OAGG;IACH,OAAc,IAAI,SAAiE;IAEnF;;;OAGG;IACH,gBAAuB,UAAU,EAAE,kBAAkB,CAInD;IAEF;;;OAGG;WACW,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,WAAW,CAAC,MAAM,CAAC;IAazE;;;OAGG;IACH,IAAW,IAAI,WAEd;IAED;;;OAGG;IACH,IAAW,UAAU,uBAEpB;IAED;;;;;OAKG;IACU,IAAI,CAChB,OAAO,EAAE,sBAAsB,EAC/B,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,gBAAgB,EAC1B,UAAU,EAAE,kBAAkB,GAC5B,OAAO,CAAC,aAAa,CAAC;IAMzB;;;OAGG;IACI,MAAM,CAAC,QAAQ,EAAE,sBAAsB,EAAE,EAAE,EAAE,MAAM,GAAG,aAAa;CAK1E"}
1
+ {"version":3,"file":"sequenceFactory.d.ts","sourceRoot":"","sources":["../src/sequenceFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAmB,WAAW,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAInE,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAEtE;;;;GAIG;AACH,qBAAa,2BAA4B,YAAW,eAAe;IAClE;;;OAGG;IACH,OAAc,IAAI,SAAiE;IAEnF;;;OAGG;IACH,gBAAuB,UAAU,EAAE,kBAAkB,CAInD;IAEF;;;OAGG;WACW,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,WAAW,CAAC,MAAM,CAAC;IAazE;;;OAGG;IACH,IAAW,IAAI,WAEd;IAED;;;OAGG;IACH,IAAW,UAAU,uBAEpB;IAED;;;;;OAKG;IACU,IAAI,CAChB,OAAO,EAAE,sBAAsB,EAC/B,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,gBAAgB,EAC1B,UAAU,EAAE,kBAAkB,GAC5B,OAAO,CAAC,aAAa,CAAC;IAMzB;;;OAGG;IACI,MAAM,CAAC,QAAQ,EAAE,sBAAsB,EAAE,EAAE,EAAE,MAAM,GAAG,aAAa;CAK1E;AAED;;;;GAIG;AACH,qBAAa,2BAA4B,YAAW,eAAe;IAClE;;;OAGG;IACH,OAAc,IAAI,SAAiE;IAEnF;;;OAGG;IACH,gBAAuB,UAAU,EAAE,kBAAkB,CAInD;IAEF;;;OAGG;WACW,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,WAAW,CAAC,MAAM,CAAC;IAazE;;;OAGG;IACH,IAAW,IAAI,WAEd;IAED;;;OAGG;IACH,IAAW,UAAU,uBAEpB;IAED;;;;;OAKG;IACU,IAAI,CAChB,OAAO,EAAE,sBAAsB,EAC/B,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,gBAAgB,EAC1B,UAAU,EAAE,kBAAkB,GAC5B,OAAO,CAAC,aAAa,CAAC;IAMzB;;;OAGG;IACI,MAAM,CAAC,QAAQ,EAAE,sBAAsB,EAAE,EAAE,EAAE,MAAM,GAAG,aAAa;CAK1E;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,iJAAsD,CAAC;AACxF;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,yBAAyB,CAAC;AAE7D;;;GAGG;AACH,eAAO,MAAM,oBAAoB,iJAAsD,CAAC;AACxF;;;GAGG;AACH,MAAM,MAAM,oBAAoB,CAAC,CAAC,IAAI,yBAAyB,CAAC,CAAC,CAAC,CAAC"}
@@ -4,8 +4,9 @@
4
4
  * Licensed under the MIT License.
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.SharedNumberSequenceFactory = exports.SharedObjectSequenceFactory = void 0;
7
+ exports.SharedObjectSequence = exports.SharedNumberSequence = exports.SharedNumberSequenceFactory = exports.SharedObjectSequenceFactory = void 0;
8
8
  const internal_1 = require("@fluidframework/sequence/internal");
9
+ const internal_2 = require("@fluidframework/shared-object-base/internal");
9
10
  const packageVersion_js_1 = require("./packageVersion.js");
10
11
  const sharedNumberSequence_js_1 = require("./sharedNumberSequence.js");
11
12
  const sharedObjectSequence_js_1 = require("./sharedObjectSequence.js");
@@ -51,7 +52,7 @@ class SharedObjectSequenceFactory {
51
52
  * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
52
53
  */
53
54
  async load(runtime, id, services, attributes) {
54
- const sharedSeq = new sharedObjectSequence_js_1.SharedObjectSequence(runtime, id, attributes);
55
+ const sharedSeq = new sharedObjectSequence_js_1.SharedObjectSequenceClass(runtime, id, attributes);
55
56
  await sharedSeq.load(services);
56
57
  return sharedSeq;
57
58
  }
@@ -60,7 +61,7 @@ class SharedObjectSequenceFactory {
60
61
  * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
61
62
  */
62
63
  create(document, id) {
63
- const sharedString = new sharedObjectSequence_js_1.SharedObjectSequence(document, id, this.attributes);
64
+ const sharedString = new sharedObjectSequence_js_1.SharedObjectSequenceClass(document, id, this.attributes);
64
65
  sharedString.initializeLocal();
65
66
  return sharedString;
66
67
  }
@@ -122,7 +123,7 @@ class SharedNumberSequenceFactory {
122
123
  * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
123
124
  */
124
125
  async load(runtime, id, services, attributes) {
125
- const sharedSeq = new sharedNumberSequence_js_1.SharedNumberSequence(runtime, id, attributes);
126
+ const sharedSeq = new sharedNumberSequence_js_1.SharedNumberSequenceClass(runtime, id, attributes);
126
127
  await sharedSeq.load(services);
127
128
  return sharedSeq;
128
129
  }
@@ -131,7 +132,7 @@ class SharedNumberSequenceFactory {
131
132
  * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
132
133
  */
133
134
  create(document, id) {
134
- const sharedString = new sharedNumberSequence_js_1.SharedNumberSequence(document, id, this.attributes);
135
+ const sharedString = new sharedNumberSequence_js_1.SharedNumberSequenceClass(document, id, this.attributes);
135
136
  sharedString.initializeLocal();
136
137
  return sharedString;
137
138
  }
@@ -151,4 +152,14 @@ SharedNumberSequenceFactory.Attributes = {
151
152
  snapshotFormatVersion: "0.1",
152
153
  packageVersion: packageVersion_js_1.pkgVersion,
153
154
  };
155
+ /**
156
+ * {@inheritDoc SharedNumberSequenceClass}
157
+ * @internal
158
+ */
159
+ exports.SharedNumberSequence = (0, internal_2.createSharedObjectKind)(SharedNumberSequenceFactory);
160
+ /**
161
+ * {@inheritDoc SharedObjectSequenceClass}
162
+ * @internal
163
+ */
164
+ exports.SharedObjectSequence = (0, internal_2.createSharedObjectKind)(SharedObjectSequenceFactory);
154
165
  //# sourceMappingURL=sequenceFactory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sequenceFactory.js","sourceRoot":"","sources":["../src/sequenceFactory.ts"],"names":[],"mappings":"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","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIChannelAttributes,\n\tIChannelFactory,\n\tIChannelServices,\n\tIFluidDataStoreRuntime,\n} from \"@fluidframework/datastore-definitions\";\nimport { IJSONSegment } from \"@fluidframework/merge-tree/internal\";\nimport { IJSONRunSegment, SubSequence } from \"@fluidframework/sequence/internal\";\nimport { ISharedObject } from \"@fluidframework/shared-object-base\";\n\nimport { pkgVersion } from \"./packageVersion.js\";\nimport { SharedNumberSequence } from \"./sharedNumberSequence.js\";\nimport { SharedObjectSequence } from \"./sharedObjectSequence.js\";\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 * @internal\n */\nexport class SharedObjectSequenceFactory implements IChannelFactory {\n\t/**\n\t * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic static Type = \"https://graph.microsoft.com/types/mergeTree/object-sequence\";\n\n\t/**\n\t * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic static readonly Attributes: IChannelAttributes = {\n\t\ttype: SharedObjectSequenceFactory.Type,\n\t\tsnapshotFormatVersion: \"0.1\",\n\t\tpackageVersion: pkgVersion,\n\t};\n\n\t/**\n\t * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic static segmentFromSpec(segSpec: IJSONSegment): SubSequence<object> {\n\t\tconst runSegment = segSpec as IJSONRunSegment<object>;\n\t\tif (runSegment.items) {\n\t\t\tconst seg = new SubSequence<object>(runSegment.items);\n\t\t\tif (runSegment.props) {\n\t\t\t\tseg.addProperties(runSegment.props);\n\t\t\t}\n\t\t\treturn seg;\n\t\t}\n\n\t\tthrow new Error(`Unrecognized IJSONObject`);\n\t}\n\n\t/**\n\t * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic get type() {\n\t\treturn SharedObjectSequenceFactory.Type;\n\t}\n\n\t/**\n\t * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic get attributes() {\n\t\treturn SharedObjectSequenceFactory.Attributes;\n\t}\n\n\t/**\n\t * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}\n\t *\n\t * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic async load(\n\t\truntime: IFluidDataStoreRuntime,\n\t\tid: string,\n\t\tservices: IChannelServices,\n\t\tattributes: IChannelAttributes,\n\t): Promise<ISharedObject> {\n\t\tconst sharedSeq = new SharedObjectSequence<object>(runtime, id, attributes);\n\t\tawait sharedSeq.load(services);\n\t\treturn sharedSeq;\n\t}\n\n\t/**\n\t * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic create(document: IFluidDataStoreRuntime, id: string): ISharedObject {\n\t\tconst sharedString = new SharedObjectSequence(document, id, this.attributes);\n\t\tsharedString.initializeLocal();\n\t\treturn sharedString;\n\t}\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 * @internal\n */\nexport class SharedNumberSequenceFactory implements IChannelFactory {\n\t/**\n\t * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic static Type = \"https://graph.microsoft.com/types/mergeTree/number-sequence\";\n\n\t/**\n\t * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic static readonly Attributes: IChannelAttributes = {\n\t\ttype: SharedNumberSequenceFactory.Type,\n\t\tsnapshotFormatVersion: \"0.1\",\n\t\tpackageVersion: pkgVersion,\n\t};\n\n\t/**\n\t * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic static segmentFromSpec(segSpec: IJSONSegment): SubSequence<number> {\n\t\tconst runSegment = segSpec as IJSONRunSegment<number>;\n\t\tif (runSegment.items) {\n\t\t\tconst seg = new SubSequence<number>(runSegment.items);\n\t\t\tif (runSegment.props) {\n\t\t\t\tseg.addProperties(runSegment.props);\n\t\t\t}\n\t\t\treturn seg;\n\t\t}\n\n\t\tthrow new Error(`Unrecognized IJSONObject`);\n\t}\n\n\t/**\n\t * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic get type() {\n\t\treturn SharedNumberSequenceFactory.Type;\n\t}\n\n\t/**\n\t * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic get attributes() {\n\t\treturn SharedNumberSequenceFactory.Attributes;\n\t}\n\n\t/**\n\t * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}\n\t *\n\t * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic async load(\n\t\truntime: IFluidDataStoreRuntime,\n\t\tid: string,\n\t\tservices: IChannelServices,\n\t\tattributes: IChannelAttributes,\n\t): Promise<ISharedObject> {\n\t\tconst sharedSeq = new SharedNumberSequence(runtime, id, attributes);\n\t\tawait sharedSeq.load(services);\n\t\treturn sharedSeq;\n\t}\n\n\t/**\n\t * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic create(document: IFluidDataStoreRuntime, id: string): ISharedObject {\n\t\tconst sharedString = new SharedNumberSequence(document, id, this.attributes);\n\t\tsharedString.initializeLocal();\n\t\treturn sharedString;\n\t}\n}\n"]}
1
+ {"version":3,"file":"sequenceFactory.js","sourceRoot":"","sources":["../src/sequenceFactory.ts"],"names":[],"mappings":"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","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIChannelAttributes,\n\tIChannelFactory,\n\tIChannelServices,\n\tIFluidDataStoreRuntime,\n} from \"@fluidframework/datastore-definitions\";\nimport { IJSONSegment } from \"@fluidframework/merge-tree/internal\";\nimport { IJSONRunSegment, SubSequence } from \"@fluidframework/sequence/internal\";\nimport { ISharedObject } from \"@fluidframework/shared-object-base\";\nimport { createSharedObjectKind } from \"@fluidframework/shared-object-base/internal\";\n\nimport { pkgVersion } from \"./packageVersion.js\";\nimport { SharedNumberSequenceClass } from \"./sharedNumberSequence.js\";\nimport { SharedObjectSequenceClass } from \"./sharedObjectSequence.js\";\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 * @internal\n */\nexport class SharedObjectSequenceFactory implements IChannelFactory {\n\t/**\n\t * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic static Type = \"https://graph.microsoft.com/types/mergeTree/object-sequence\";\n\n\t/**\n\t * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic static readonly Attributes: IChannelAttributes = {\n\t\ttype: SharedObjectSequenceFactory.Type,\n\t\tsnapshotFormatVersion: \"0.1\",\n\t\tpackageVersion: pkgVersion,\n\t};\n\n\t/**\n\t * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic static segmentFromSpec(segSpec: IJSONSegment): SubSequence<object> {\n\t\tconst runSegment = segSpec as IJSONRunSegment<object>;\n\t\tif (runSegment.items) {\n\t\t\tconst seg = new SubSequence<object>(runSegment.items);\n\t\t\tif (runSegment.props) {\n\t\t\t\tseg.addProperties(runSegment.props);\n\t\t\t}\n\t\t\treturn seg;\n\t\t}\n\n\t\tthrow new Error(`Unrecognized IJSONObject`);\n\t}\n\n\t/**\n\t * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic get type() {\n\t\treturn SharedObjectSequenceFactory.Type;\n\t}\n\n\t/**\n\t * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic get attributes() {\n\t\treturn SharedObjectSequenceFactory.Attributes;\n\t}\n\n\t/**\n\t * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}\n\t *\n\t * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic async load(\n\t\truntime: IFluidDataStoreRuntime,\n\t\tid: string,\n\t\tservices: IChannelServices,\n\t\tattributes: IChannelAttributes,\n\t): Promise<ISharedObject> {\n\t\tconst sharedSeq = new SharedObjectSequenceClass<object>(runtime, id, attributes);\n\t\tawait sharedSeq.load(services);\n\t\treturn sharedSeq;\n\t}\n\n\t/**\n\t * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic create(document: IFluidDataStoreRuntime, id: string): ISharedObject {\n\t\tconst sharedString = new SharedObjectSequenceClass(document, id, this.attributes);\n\t\tsharedString.initializeLocal();\n\t\treturn sharedString;\n\t}\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 * @internal\n */\nexport class SharedNumberSequenceFactory implements IChannelFactory {\n\t/**\n\t * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic static Type = \"https://graph.microsoft.com/types/mergeTree/number-sequence\";\n\n\t/**\n\t * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic static readonly Attributes: IChannelAttributes = {\n\t\ttype: SharedNumberSequenceFactory.Type,\n\t\tsnapshotFormatVersion: \"0.1\",\n\t\tpackageVersion: pkgVersion,\n\t};\n\n\t/**\n\t * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic static segmentFromSpec(segSpec: IJSONSegment): SubSequence<number> {\n\t\tconst runSegment = segSpec as IJSONRunSegment<number>;\n\t\tif (runSegment.items) {\n\t\t\tconst seg = new SubSequence<number>(runSegment.items);\n\t\t\tif (runSegment.props) {\n\t\t\t\tseg.addProperties(runSegment.props);\n\t\t\t}\n\t\t\treturn seg;\n\t\t}\n\n\t\tthrow new Error(`Unrecognized IJSONObject`);\n\t}\n\n\t/**\n\t * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic get type() {\n\t\treturn SharedNumberSequenceFactory.Type;\n\t}\n\n\t/**\n\t * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic get attributes() {\n\t\treturn SharedNumberSequenceFactory.Attributes;\n\t}\n\n\t/**\n\t * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}\n\t *\n\t * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic async load(\n\t\truntime: IFluidDataStoreRuntime,\n\t\tid: string,\n\t\tservices: IChannelServices,\n\t\tattributes: IChannelAttributes,\n\t): Promise<ISharedObject> {\n\t\tconst sharedSeq = new SharedNumberSequenceClass(runtime, id, attributes);\n\t\tawait sharedSeq.load(services);\n\t\treturn sharedSeq;\n\t}\n\n\t/**\n\t * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n\t */\n\tpublic create(document: IFluidDataStoreRuntime, id: string): ISharedObject {\n\t\tconst sharedString = new SharedNumberSequenceClass(document, id, this.attributes);\n\t\tsharedString.initializeLocal();\n\t\treturn sharedString;\n\t}\n}\n\n/**\n * {@inheritDoc SharedNumberSequenceClass}\n * @internal\n */\nexport const SharedNumberSequence = createSharedObjectKind(SharedNumberSequenceFactory);\n/**\n * {@inheritDoc SharedNumberSequenceClass}\n * @internal\n */\nexport type SharedNumberSequence = SharedNumberSequenceClass;\n\n/**\n * {@inheritDoc SharedObjectSequenceClass}\n * @internal\n */\nexport const SharedObjectSequence = createSharedObjectKind(SharedObjectSequenceFactory);\n/**\n * {@inheritDoc SharedObjectSequenceClass}\n * @internal\n */\nexport type SharedObjectSequence<T> = SharedObjectSequenceClass<T>;\n"]}
@@ -3,7 +3,6 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  import { IChannelAttributes, IFluidDataStoreRuntime } from "@fluidframework/datastore-definitions";
6
- import { SharedNumberSequenceFactory } from "./sequenceFactory.js";
7
6
  import { SharedSequence } from "./sharedSequence.js";
8
7
  /**
9
8
  * The SharedNumberSequence holds a sequence of numbers. Each number will be stored
@@ -15,28 +14,8 @@ import { SharedSequence } from "./sharedSequence.js";
15
14
  * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.
16
15
  * @internal
17
16
  */
18
- export declare class SharedNumberSequence extends SharedSequence<number> {
17
+ export declare class SharedNumberSequenceClass extends SharedSequence<number> {
19
18
  id: string;
20
- /**
21
- * Create a new shared number sequence
22
- *
23
- * @param runtime - data store runtime the new shared number sequence belongs to
24
- * @param id - optional name of the shared number sequence
25
- * @returns newly create shared number sequence (but not attached yet)
26
- *
27
- * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
28
- * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.
29
- */
30
- static create(runtime: IFluidDataStoreRuntime, id?: string): SharedNumberSequence;
31
- /**
32
- * Get a factory for SharedNumberSequence to register with the data store.
33
- *
34
- * @returns a factory that creates and load SharedNumberSequence
35
- *
36
- * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
37
- * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.
38
- */
39
- static getFactory(): SharedNumberSequenceFactory;
40
19
  /**
41
20
  * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
42
21
  * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.
@@ -1 +1 @@
1
- {"version":3,"file":"sharedNumberSequence.d.ts","sourceRoot":"","sources":["../src/sharedNumberSequence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAEnG,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;;;;;;;;GASG;AACH,qBAAa,oBAAqB,SAAQ,cAAc,CAAC,MAAM,CAAC;IAiCvD,EAAE,EAAE,MAAM;IAhClB;;;;;;;;;OASG;WACW,MAAM,CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,CAAC,EAAE,MAAM;IAIjE;;;;;;;OAOG;WACW,UAAU;IAIxB;;;OAGG;gBAEF,QAAQ,EAAE,sBAAsB,EACzB,EAAE,EAAE,MAAM,EACjB,UAAU,EAAE,kBAAkB;IAW/B;;;OAGG;IACI,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM;CAG3C"}
1
+ {"version":3,"file":"sharedNumberSequence.d.ts","sourceRoot":"","sources":["../src/sharedNumberSequence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAGnG,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;;;;;;;;GASG;AACH,qBAAa,yBAA0B,SAAQ,cAAc,CAAC,MAAM,CAAC;IAO5D,EAAE,EAAE,MAAM;IANlB;;;OAGG;gBAEF,QAAQ,EAAE,sBAAsB,EACzB,EAAE,EAAE,MAAM,EACjB,UAAU,EAAE,kBAAkB;IAW/B;;;OAGG;IACI,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM;CAG3C"}
@@ -4,7 +4,7 @@
4
4
  * Licensed under the MIT License.
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.SharedNumberSequence = void 0;
7
+ exports.SharedNumberSequenceClass = void 0;
8
8
  const sequenceFactory_js_1 = require("./sequenceFactory.js");
9
9
  const sharedSequence_js_1 = require("./sharedSequence.js");
10
10
  /**
@@ -17,31 +17,7 @@ const sharedSequence_js_1 = require("./sharedSequence.js");
17
17
  * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.
18
18
  * @internal
19
19
  */
20
- class SharedNumberSequence extends sharedSequence_js_1.SharedSequence {
21
- /**
22
- * Create a new shared number sequence
23
- *
24
- * @param runtime - data store runtime the new shared number sequence belongs to
25
- * @param id - optional name of the shared number sequence
26
- * @returns newly create shared number sequence (but not attached yet)
27
- *
28
- * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
29
- * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.
30
- */
31
- static create(runtime, id) {
32
- return runtime.createChannel(id, sequenceFactory_js_1.SharedNumberSequenceFactory.Type);
33
- }
34
- /**
35
- * Get a factory for SharedNumberSequence to register with the data store.
36
- *
37
- * @returns a factory that creates and load SharedNumberSequence
38
- *
39
- * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
40
- * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.
41
- */
42
- static getFactory() {
43
- return new sequenceFactory_js_1.SharedNumberSequenceFactory();
44
- }
20
+ class SharedNumberSequenceClass extends sharedSequence_js_1.SharedSequence {
45
21
  /**
46
22
  * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
47
23
  * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.
@@ -64,5 +40,5 @@ class SharedNumberSequence extends sharedSequence_js_1.SharedSequence {
64
40
  return this.getItems(start, end);
65
41
  }
66
42
  }
67
- exports.SharedNumberSequence = SharedNumberSequence;
43
+ exports.SharedNumberSequenceClass = SharedNumberSequenceClass;
68
44
  //# sourceMappingURL=sharedNumberSequence.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sharedNumberSequence.js","sourceRoot":"","sources":["../src/sharedNumberSequence.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH,6DAAmE;AACnE,2DAAqD;AAErD;;;;;;;;;GASG;AACH,MAAa,oBAAqB,SAAQ,kCAAsB;IAC/D;;;;;;;;;OASG;IACI,MAAM,CAAC,MAAM,CAAC,OAA+B,EAAE,EAAW;QAChE,OAAO,OAAO,CAAC,aAAa,CAAC,EAAE,EAAE,gDAA2B,CAAC,IAAI,CAAyB,CAAC;IAC5F,CAAC;IAED;;;;;;;OAOG;IACI,MAAM,CAAC,UAAU;QACvB,OAAO,IAAI,gDAA2B,EAAE,CAAC;IAC1C,CAAC;IAED;;;OAGG;IACH,YACC,QAAgC,EACzB,EAAU,EACjB,UAA8B;QAE9B,KAAK,CAAC,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC,IAAI,EAAE,EAAE;YACxC,MAAM,OAAO,GAAG,gDAA2B,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;YAClE,IAAI,CAAC,OAAO,EAAE;gBACb,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC1D;YACD,OAAO,OAAO,CAAC;QAChB,CAAC,CAAC,CAAC;QATI,OAAE,GAAF,EAAE,CAAQ;IAUlB,CAAC;IAED;;;OAGG;IACI,QAAQ,CAAC,KAAa,EAAE,GAAY;QAC1C,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAClC,CAAC;CACD;AApDD,oDAoDC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IChannelAttributes, IFluidDataStoreRuntime } from \"@fluidframework/datastore-definitions\";\n\nimport { SharedNumberSequenceFactory } from \"./sequenceFactory.js\";\nimport { SharedSequence } from \"./sharedSequence.js\";\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 {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.\n * @internal\n */\nexport class SharedNumberSequence extends SharedSequence<number> {\n\t/**\n\t * Create a new shared number sequence\n\t *\n\t * @param runtime - data store runtime the new shared number sequence belongs to\n\t * @param id - optional name of the shared number sequence\n\t * @returns newly create shared number sequence (but not attached yet)\n\t *\n\t * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.\n\t */\n\tpublic static create(runtime: IFluidDataStoreRuntime, id?: string) {\n\t\treturn runtime.createChannel(id, SharedNumberSequenceFactory.Type) as SharedNumberSequence;\n\t}\n\n\t/**\n\t * Get a factory for SharedNumberSequence to register with the data store.\n\t *\n\t * @returns a factory that creates and load SharedNumberSequence\n\t *\n\t * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.\n\t */\n\tpublic static getFactory() {\n\t\treturn new SharedNumberSequenceFactory();\n\t}\n\n\t/**\n\t * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.\n\t */\n\tconstructor(\n\t\tdocument: IFluidDataStoreRuntime,\n\t\tpublic id: string,\n\t\tattributes: IChannelAttributes,\n\t) {\n\t\tsuper(document, id, attributes, (spec) => {\n\t\t\tconst segment = SharedNumberSequenceFactory.segmentFromSpec(spec);\n\t\t\tif (!segment) {\n\t\t\t\tthrow new Error(\"expected `spec` to be valid `ISegment`\");\n\t\t\t}\n\t\t\treturn segment;\n\t\t});\n\t}\n\n\t/**\n\t * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.\n\t */\n\tpublic getRange(start: number, end?: number) {\n\t\treturn this.getItems(start, end);\n\t}\n}\n"]}
1
+ {"version":3,"file":"sharedNumberSequence.js","sourceRoot":"","sources":["../src/sharedNumberSequence.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH,6DAAmE;AACnE,2DAAqD;AAErD;;;;;;;;;GASG;AACH,MAAa,yBAA0B,SAAQ,kCAAsB;IACpE;;;OAGG;IACH,YACC,QAAgC,EACzB,EAAU,EACjB,UAA8B;QAE9B,KAAK,CAAC,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC,IAAI,EAAE,EAAE;YACxC,MAAM,OAAO,GAAG,gDAA2B,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;YAClE,IAAI,CAAC,OAAO,EAAE;gBACb,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC1D;YACD,OAAO,OAAO,CAAC;QAChB,CAAC,CAAC,CAAC;QATI,OAAE,GAAF,EAAE,CAAQ;IAUlB,CAAC;IAED;;;OAGG;IACI,QAAQ,CAAC,KAAa,EAAE,GAAY;QAC1C,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAClC,CAAC;CACD;AA1BD,8DA0BC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IChannelAttributes, IFluidDataStoreRuntime } from \"@fluidframework/datastore-definitions\";\n\nimport { SharedNumberSequenceFactory } from \"./sequenceFactory.js\";\nimport { SharedSequence } from \"./sharedSequence.js\";\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 {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.\n * @internal\n */\nexport class SharedNumberSequenceClass extends SharedSequence<number> {\n\t/**\n\t * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.\n\t */\n\tconstructor(\n\t\tdocument: IFluidDataStoreRuntime,\n\t\tpublic id: string,\n\t\tattributes: IChannelAttributes,\n\t) {\n\t\tsuper(document, id, attributes, (spec) => {\n\t\t\tconst segment = SharedNumberSequenceFactory.segmentFromSpec(spec);\n\t\t\tif (!segment) {\n\t\t\t\tthrow new Error(\"expected `spec` to be valid `ISegment`\");\n\t\t\t}\n\t\t\treturn segment;\n\t\t});\n\t}\n\n\t/**\n\t * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.\n\t */\n\tpublic getRange(start: number, end?: number) {\n\t\treturn this.getItems(start, end);\n\t}\n}\n"]}
@@ -4,7 +4,6 @@
4
4
  */
5
5
  import { IChannelAttributes, IFluidDataStoreRuntime } from "@fluidframework/datastore-definitions";
6
6
  import { Serializable } from "@fluidframework/datastore-definitions/internal";
7
- import { SharedObjectSequenceFactory } from "./sequenceFactory.js";
8
7
  import { SharedSequence } from "./sharedSequence.js";
9
8
  /**
10
9
  * The SharedObjectSequence holds a sequence of serializable objects. Each object will be stored
@@ -16,28 +15,8 @@ import { SharedSequence } from "./sharedSequence.js";
16
15
  * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.
17
16
  * @internal
18
17
  */
19
- export declare class SharedObjectSequence<T> extends SharedSequence<T> {
18
+ export declare class SharedObjectSequenceClass<T> extends SharedSequence<T> {
20
19
  id: string;
21
- /**
22
- * Create a new shared object sequence
23
- *
24
- * @param runtime - data store runtime the new shared object sequence belongs to
25
- * @param id - optional name of the shared object sequence
26
- * @returns newly create shared object sequence (but not attached yet)
27
- *
28
- * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
29
- * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.
30
- */
31
- static create<T>(runtime: IFluidDataStoreRuntime, id?: string): SharedObjectSequence<T>;
32
- /**
33
- * Get a factory for SharedObjectSequence to register with the data store.
34
- *
35
- * @returns a factory that creates and load SharedObjectSequence
36
- *
37
- * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
38
- * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.
39
- */
40
- static getFactory(): SharedObjectSequenceFactory;
41
20
  /**
42
21
  * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
43
22
  * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.
@@ -1 +1 @@
1
- {"version":3,"file":"sharedObjectSequence.d.ts","sourceRoot":"","sources":["../src/sharedObjectSequence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAE9E,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;;;;;;;;GASG;AACH,qBAAa,oBAAoB,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;IAqCrD,EAAE,EAAE,MAAM;IApClB;;;;;;;;;OASG;WAEW,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,sBAAsB,EAAE,EAAE,CAAC,EAAE,MAAM;IAOpE;;;;;;;OAOG;WACW,UAAU;IAIxB;;;OAGG;gBAEF,QAAQ,EAAE,sBAAsB,EACzB,EAAE,EAAE,MAAM,EACjB,UAAU,EAAE,kBAAkB;IAK/B;;;OAGG;IACI,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC,CAAC,CAAC,EAAE;CAG/D"}
1
+ {"version":3,"file":"sharedObjectSequence.d.ts","sourceRoot":"","sources":["../src/sharedObjectSequence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAG9E,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;;;;;;;;GASG;AACH,qBAAa,yBAAyB,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;IAO1D,EAAE,EAAE,MAAM;IANlB;;;OAGG;gBAEF,QAAQ,EAAE,sBAAsB,EACzB,EAAE,EAAE,MAAM,EACjB,UAAU,EAAE,kBAAkB;IAK/B;;;OAGG;IACI,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC,CAAC,CAAC,EAAE;CAG/D"}
@@ -4,7 +4,7 @@
4
4
  * Licensed under the MIT License.
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.SharedObjectSequence = void 0;
7
+ exports.SharedObjectSequenceClass = void 0;
8
8
  const sequenceFactory_js_1 = require("./sequenceFactory.js");
9
9
  const sharedSequence_js_1 = require("./sharedSequence.js");
10
10
  /**
@@ -17,31 +17,7 @@ const sharedSequence_js_1 = require("./sharedSequence.js");
17
17
  * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.
18
18
  * @internal
19
19
  */
20
- class SharedObjectSequence extends sharedSequence_js_1.SharedSequence {
21
- /**
22
- * Create a new shared object sequence
23
- *
24
- * @param runtime - data store runtime the new shared object sequence belongs to
25
- * @param id - optional name of the shared object sequence
26
- * @returns newly create shared object sequence (but not attached yet)
27
- *
28
- * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
29
- * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.
30
- */
31
- static create(runtime, id) {
32
- return runtime.createChannel(id, sequenceFactory_js_1.SharedObjectSequenceFactory.Type);
33
- }
34
- /**
35
- * Get a factory for SharedObjectSequence to register with the data store.
36
- *
37
- * @returns a factory that creates and load SharedObjectSequence
38
- *
39
- * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
40
- * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.
41
- */
42
- static getFactory() {
43
- return new sequenceFactory_js_1.SharedObjectSequenceFactory();
44
- }
20
+ class SharedObjectSequenceClass extends sharedSequence_js_1.SharedSequence {
45
21
  /**
46
22
  * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
47
23
  * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.
@@ -58,5 +34,5 @@ class SharedObjectSequence extends sharedSequence_js_1.SharedSequence {
58
34
  return this.getItems(start, end);
59
35
  }
60
36
  }
61
- exports.SharedObjectSequence = SharedObjectSequence;
37
+ exports.SharedObjectSequenceClass = SharedObjectSequenceClass;
62
38
  //# sourceMappingURL=sharedObjectSequence.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sharedObjectSequence.js","sourceRoot":"","sources":["../src/sharedObjectSequence.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAKH,6DAAmE;AACnE,2DAAqD;AAErD;;;;;;;;;GASG;AACH,MAAa,oBAAwB,SAAQ,kCAAiB;IAC7D;;;;;;;;;OASG;IAEI,MAAM,CAAC,MAAM,CAAI,OAA+B,EAAE,EAAW;QACnE,OAAO,OAAO,CAAC,aAAa,CAC3B,EAAE,EACF,gDAA2B,CAAC,IAAI,CACL,CAAC;IAC9B,CAAC;IAED;;;;;;;OAOG;IACI,MAAM,CAAC,UAAU;QACvB,OAAO,IAAI,gDAA2B,EAAE,CAAC;IAC1C,CAAC;IAED;;;OAGG;IACH,YACC,QAAgC,EACzB,EAAU,EACjB,UAA8B;QAE9B,KAAK,CAAC,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,gDAA2B,CAAC,eAAsB,CAAC,CAAC;QAH7E,OAAE,GAAF,EAAE,CAAQ;IAIlB,CAAC;IAED;;;OAGG;IACI,QAAQ,CAAC,KAAa,EAAE,GAAY;QAC1C,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAClC,CAAC;CACD;AAlDD,oDAkDC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IChannelAttributes, IFluidDataStoreRuntime } from \"@fluidframework/datastore-definitions\";\nimport { Serializable } from \"@fluidframework/datastore-definitions/internal\";\n\nimport { SharedObjectSequenceFactory } from \"./sequenceFactory.js\";\nimport { SharedSequence } from \"./sharedSequence.js\";\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 {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.\n * @internal\n */\nexport class SharedObjectSequence<T> extends SharedSequence<T> {\n\t/**\n\t * Create a new shared object sequence\n\t *\n\t * @param runtime - data store runtime the new shared object sequence belongs to\n\t * @param id - optional name of the shared object sequence\n\t * @returns newly create shared object sequence (but not attached yet)\n\t *\n\t * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.\n\t */\n\n\tpublic static create<T>(runtime: IFluidDataStoreRuntime, id?: string) {\n\t\treturn runtime.createChannel(\n\t\t\tid,\n\t\t\tSharedObjectSequenceFactory.Type,\n\t\t) as SharedObjectSequence<T>;\n\t}\n\n\t/**\n\t * Get a factory for SharedObjectSequence to register with the data store.\n\t *\n\t * @returns a factory that creates and load SharedObjectSequence\n\t *\n\t * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.\n\t */\n\tpublic static getFactory() {\n\t\treturn new SharedObjectSequenceFactory();\n\t}\n\n\t/**\n\t * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.\n\t */\n\tconstructor(\n\t\tdocument: IFluidDataStoreRuntime,\n\t\tpublic id: string,\n\t\tattributes: IChannelAttributes,\n\t) {\n\t\tsuper(document, id, attributes, SharedObjectSequenceFactory.segmentFromSpec as any);\n\t}\n\n\t/**\n\t * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.\n\t */\n\tpublic getRange(start: number, end?: number): Serializable<T>[] {\n\t\treturn this.getItems(start, end);\n\t}\n}\n"]}
1
+ {"version":3,"file":"sharedObjectSequence.js","sourceRoot":"","sources":["../src/sharedObjectSequence.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAKH,6DAAmE;AACnE,2DAAqD;AAErD;;;;;;;;;GASG;AACH,MAAa,yBAA6B,SAAQ,kCAAiB;IAClE;;;OAGG;IACH,YACC,QAAgC,EACzB,EAAU,EACjB,UAA8B;QAE9B,KAAK,CAAC,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,gDAA2B,CAAC,eAAsB,CAAC,CAAC;QAH7E,OAAE,GAAF,EAAE,CAAQ;IAIlB,CAAC;IAED;;;OAGG;IACI,QAAQ,CAAC,KAAa,EAAE,GAAY;QAC1C,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAClC,CAAC;CACD;AApBD,8DAoBC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IChannelAttributes, IFluidDataStoreRuntime } from \"@fluidframework/datastore-definitions\";\nimport { Serializable } from \"@fluidframework/datastore-definitions/internal\";\n\nimport { SharedObjectSequenceFactory } from \"./sequenceFactory.js\";\nimport { SharedSequence } from \"./sharedSequence.js\";\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 {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.\n * @internal\n */\nexport class SharedObjectSequenceClass<T> extends SharedSequence<T> {\n\t/**\n\t * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.\n\t */\n\tconstructor(\n\t\tdocument: IFluidDataStoreRuntime,\n\t\tpublic id: string,\n\t\tattributes: IChannelAttributes,\n\t) {\n\t\tsuper(document, id, attributes, SharedObjectSequenceFactory.segmentFromSpec as any);\n\t}\n\n\t/**\n\t * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n\t * For more info, please see {@link https://github.com/microsoft/FluidFramework/issues/8526 | Github issue 8526}.\n\t */\n\tpublic getRange(start: number, end?: number): Serializable<T>[] {\n\t\treturn this.getItems(start, end);\n\t}\n}\n"]}