@fluidframework/matrix 2.53.0 → 2.60.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.
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AAErF,OAAO,EAAsB,YAAY,IAAI,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,OAAO,mBAAmB;IAS/B,IAAW,IAAI;QACd,OAAO,mBAAmB,CAAC,IAAI,CAAC;IACjC,CAAC;IAED,IAAW,UAAU;QACpB,OAAO,mBAAmB,CAAC,UAAU,CAAC;IACvC,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,IAAI,CAChB,OAA+B,EAC/B,EAAU,EACV,QAA0B,EAC1B,UAA8B;QAE9B,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,OAAO,EAAE,EAAE,EAAE,UAAU,CAAC,CAAC;QAC9D,MAAM,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC5B,OAAO,MAAM,CAAC;IACf,CAAC;IAEM,MAAM,CAAC,QAAgC,EAAE,EAAU;QACzD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,QAAQ,EAAE,EAAE,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QACpE,MAAM,CAAC,eAAe,EAAE,CAAC;QACzB,OAAO,MAAM,CAAC;IACf,CAAC;;AAlCa,wBAAI,GAAG,gDAAgD,CAAC;AAE/C,8BAAU,GAAuB;IACvD,IAAI,EAAE,mBAAmB,CAAC,IAAI;IAC9B,qBAAqB,EAAE,KAAK;IAC5B,cAAc,EAAE,UAAU;CAC1B,CAAC;AA+BH;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,sBAAsB,CAAgB,mBAAmB,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type {\n\tIChannel,\n\tIChannelAttributes,\n\tIChannelFactory,\n\tIFluidDataStoreRuntime,\n\tIChannelServices,\n} from \"@fluidframework/datastore-definitions/internal\";\nimport { createSharedObjectKind } from \"@fluidframework/shared-object-base/internal\";\n\nimport { type ISharedMatrix, SharedMatrix as SharedMatrixClass } from \"./matrix.js\";\nimport { pkgVersion } from \"./packageVersion.js\";\n\n/**\n * {@link @fluidframework/datastore-definitions#IChannelFactory} for {@link ISharedMatrix}.\n * @legacy\n * @alpha\n * @deprecated - Use `SharedMatrix.getFactory` instead.\n */\nexport class SharedMatrixFactory implements IChannelFactory<ISharedMatrix> {\n\tpublic static Type = \"https://graph.microsoft.com/types/sharedmatrix\";\n\n\tpublic static readonly Attributes: IChannelAttributes = {\n\t\ttype: SharedMatrixFactory.Type,\n\t\tsnapshotFormatVersion: \"0.1\",\n\t\tpackageVersion: pkgVersion,\n\t};\n\n\tpublic get type(): string {\n\t\treturn SharedMatrixFactory.Type;\n\t}\n\n\tpublic get attributes(): IChannelAttributes {\n\t\treturn SharedMatrixFactory.Attributes;\n\t}\n\n\t/**\n\t * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}\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<ISharedMatrix & IChannel> {\n\t\tconst matrix = new SharedMatrixClass(runtime, id, attributes);\n\t\tawait matrix.load(services);\n\t\treturn matrix;\n\t}\n\n\tpublic create(document: IFluidDataStoreRuntime, id: string): ISharedMatrix & IChannel {\n\t\tconst matrix = new SharedMatrixClass(document, id, this.attributes);\n\t\tmatrix.initializeLocal();\n\t\treturn matrix;\n\t}\n}\n\n/**\n * Entrypoint for {@link ISharedMatrix} creation.\n * @legacy\n * @alpha\n */\nexport const SharedMatrix = createSharedObjectKind<ISharedMatrix>(SharedMatrixFactory);\n\n/**\n * Convenience alias for {@link ISharedMatrix}. Prefer to use {@link ISharedMatrix} when referring to\n * SharedMatrix as a type.\n * @legacy\n * @alpha\n * @privateRemarks\n * This alias is for legacy compat from when the SharedMatrix class was exported as public.\n */\n// Changing this to `unknown` would be a breaking change.\n// TODO: if possible, transition SharedMatrix to not use `any`.\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type SharedMatrix<T = any> = ISharedMatrix<T>;\n"]}
1
+ {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AAErF,OAAO,EAAsB,YAAY,IAAI,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD;;;;GAIG;AACH,MAAM,OAAO,mBAAmB;IAS/B,IAAW,IAAI;QACd,OAAO,mBAAmB,CAAC,IAAI,CAAC;IACjC,CAAC;IAED,IAAW,UAAU;QACpB,OAAO,mBAAmB,CAAC,UAAU,CAAC;IACvC,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,IAAI,CAChB,OAA+B,EAC/B,EAAU,EACV,QAA0B,EAC1B,UAA8B;QAE9B,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,OAAO,EAAE,EAAE,EAAE,UAAU,CAAC,CAAC;QAC9D,MAAM,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC5B,OAAO,MAAM,CAAC;IACf,CAAC;IAEM,MAAM,CAAC,QAAgC,EAAE,EAAU;QACzD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,QAAQ,EAAE,EAAE,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QACpE,MAAM,CAAC,eAAe,EAAE,CAAC;QACzB,OAAO,MAAM,CAAC;IACf,CAAC;;AAlCa,wBAAI,GAAG,gDAAgD,CAAC;AAE/C,8BAAU,GAAuB;IACvD,IAAI,EAAE,mBAAmB,CAAC,IAAI;IAC9B,qBAAqB,EAAE,KAAK;IAC5B,cAAc,EAAE,UAAU;CAC1B,CAAC;AA+BH;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,sBAAsB,CAAgB,mBAAmB,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type {\n\tIChannel,\n\tIChannelAttributes,\n\tIChannelFactory,\n\tIFluidDataStoreRuntime,\n\tIChannelServices,\n} from \"@fluidframework/datastore-definitions/internal\";\nimport { createSharedObjectKind } from \"@fluidframework/shared-object-base/internal\";\n\nimport { type ISharedMatrix, SharedMatrix as SharedMatrixClass } from \"./matrix.js\";\nimport { pkgVersion } from \"./packageVersion.js\";\n\n/**\n * {@link @fluidframework/datastore-definitions#IChannelFactory} for {@link ISharedMatrix}.\n * @legacy @beta\n * @deprecated - Use `SharedMatrix.getFactory` instead.\n */\nexport class SharedMatrixFactory implements IChannelFactory<ISharedMatrix> {\n\tpublic static Type = \"https://graph.microsoft.com/types/sharedmatrix\";\n\n\tpublic static readonly Attributes: IChannelAttributes = {\n\t\ttype: SharedMatrixFactory.Type,\n\t\tsnapshotFormatVersion: \"0.1\",\n\t\tpackageVersion: pkgVersion,\n\t};\n\n\tpublic get type(): string {\n\t\treturn SharedMatrixFactory.Type;\n\t}\n\n\tpublic get attributes(): IChannelAttributes {\n\t\treturn SharedMatrixFactory.Attributes;\n\t}\n\n\t/**\n\t * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}\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<ISharedMatrix & IChannel> {\n\t\tconst matrix = new SharedMatrixClass(runtime, id, attributes);\n\t\tawait matrix.load(services);\n\t\treturn matrix;\n\t}\n\n\tpublic create(document: IFluidDataStoreRuntime, id: string): ISharedMatrix & IChannel {\n\t\tconst matrix = new SharedMatrixClass(document, id, this.attributes);\n\t\tmatrix.initializeLocal();\n\t\treturn matrix;\n\t}\n}\n\n/**\n * Entrypoint for {@link ISharedMatrix} creation.\n * @legacy @beta\n */\nexport const SharedMatrix = createSharedObjectKind<ISharedMatrix>(SharedMatrixFactory);\n\n/**\n * Convenience alias for {@link ISharedMatrix}. Prefer to use {@link ISharedMatrix} when referring to\n * SharedMatrix as a type.\n * @legacy @beta\n * @privateRemarks\n * This alias is for legacy compat from when the SharedMatrix class was exported as public.\n */\n// Changing this to `unknown` would be a breaking change.\n// TODO: if possible, transition SharedMatrix to not use `any`.\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type SharedMatrix<T = any> = ISharedMatrix<T>;\n"]}
package/lib/types.d.ts CHANGED
@@ -3,16 +3,14 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  /**
6
- * @legacy
7
- * @alpha
6
+ * @legacy @beta
8
7
  */
9
8
  export interface IRevertible {
10
9
  revert(): void;
11
10
  discard(): void;
12
11
  }
13
12
  /**
14
- * @legacy
15
- * @alpha
13
+ * @legacy @beta
16
14
  */
17
15
  export interface IUndoConsumer {
18
16
  pushToCurrentOperation(revertible: IRevertible): void;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC3B,MAAM,IAAI,IAAI,CAAC;IACf,OAAO,IAAI,IAAI,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC7B,sBAAsB,CAAC,UAAU,EAAE,WAAW,GAAG,IAAI,CAAC;CACtD"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH;;GAEG;AACH,MAAM,WAAW,WAAW;IAC3B,MAAM,IAAI,IAAI,CAAC;IACf,OAAO,IAAI,IAAI,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B,sBAAsB,CAAC,UAAU,EAAE,WAAW,GAAG,IAAI,CAAC;CACtD"}
package/lib/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n// TODO: We temporarily duplicate these contracts from 'framework/undo-redo' to unblock development\n// of SharedMatrix undo while we decide on the correct layering for undo.\n\n/**\n * @legacy\n * @alpha\n */\nexport interface IRevertible {\n\trevert(): void;\n\tdiscard(): void;\n}\n\n/**\n * @legacy\n * @alpha\n */\nexport interface IUndoConsumer {\n\tpushToCurrentOperation(revertible: IRevertible): void;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n// TODO: We temporarily duplicate these contracts from 'framework/undo-redo' to unblock development\n// of SharedMatrix undo while we decide on the correct layering for undo.\n\n/**\n * @legacy @beta\n */\nexport interface IRevertible {\n\trevert(): void;\n\tdiscard(): void;\n}\n\n/**\n * @legacy @beta\n */\nexport interface IUndoConsumer {\n\tpushToCurrentOperation(revertible: IRevertible): void;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/matrix",
3
- "version": "2.53.0",
3
+ "version": "2.60.0",
4
4
  "description": "Distributed matrix",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -81,17 +81,17 @@
81
81
  "temp-directory": "nyc/.nyc_output"
82
82
  },
83
83
  "dependencies": {
84
- "@fluid-internal/client-utils": "~2.53.0",
85
- "@fluidframework/core-interfaces": "~2.53.0",
86
- "@fluidframework/core-utils": "~2.53.0",
87
- "@fluidframework/datastore-definitions": "~2.53.0",
88
- "@fluidframework/driver-definitions": "~2.53.0",
89
- "@fluidframework/driver-utils": "~2.53.0",
90
- "@fluidframework/merge-tree": "~2.53.0",
91
- "@fluidframework/runtime-definitions": "~2.53.0",
92
- "@fluidframework/runtime-utils": "~2.53.0",
93
- "@fluidframework/shared-object-base": "~2.53.0",
94
- "@fluidframework/telemetry-utils": "~2.53.0",
84
+ "@fluid-internal/client-utils": "~2.60.0",
85
+ "@fluidframework/core-interfaces": "~2.60.0",
86
+ "@fluidframework/core-utils": "~2.60.0",
87
+ "@fluidframework/datastore-definitions": "~2.60.0",
88
+ "@fluidframework/driver-definitions": "~2.60.0",
89
+ "@fluidframework/driver-utils": "~2.60.0",
90
+ "@fluidframework/merge-tree": "~2.60.0",
91
+ "@fluidframework/runtime-definitions": "~2.60.0",
92
+ "@fluidframework/runtime-utils": "~2.60.0",
93
+ "@fluidframework/shared-object-base": "~2.60.0",
94
+ "@fluidframework/telemetry-utils": "~2.60.0",
95
95
  "@tiny-calc/nano": "0.0.0-alpha.5",
96
96
  "double-ended-queue": "^2.1.0-0",
97
97
  "tslib": "^1.10.0"
@@ -99,17 +99,17 @@
99
99
  "devDependencies": {
100
100
  "@arethetypeswrong/cli": "^0.17.1",
101
101
  "@biomejs/biome": "~1.9.3",
102
- "@fluid-internal/mocha-test-setup": "~2.53.0",
103
- "@fluid-private/stochastic-test-utils": "~2.53.0",
104
- "@fluid-private/test-dds-utils": "~2.53.0",
102
+ "@fluid-internal/mocha-test-setup": "~2.60.0",
103
+ "@fluid-private/stochastic-test-utils": "~2.60.0",
104
+ "@fluid-private/test-dds-utils": "~2.60.0",
105
105
  "@fluid-tools/benchmark": "^0.51.0",
106
106
  "@fluid-tools/build-cli": "^0.57.0",
107
107
  "@fluidframework/build-common": "^2.0.3",
108
108
  "@fluidframework/build-tools": "^0.57.0",
109
- "@fluidframework/container-definitions": "~2.53.0",
110
- "@fluidframework/eslint-config-fluid": "^5.7.4",
111
- "@fluidframework/matrix-previous": "npm:@fluidframework/matrix@2.52.0",
112
- "@fluidframework/test-runtime-utils": "~2.53.0",
109
+ "@fluidframework/container-definitions": "~2.60.0",
110
+ "@fluidframework/eslint-config-fluid": "^6.0.0",
111
+ "@fluidframework/matrix-previous": "npm:@fluidframework/matrix@2.53.0",
112
+ "@fluidframework/test-runtime-utils": "~2.60.0",
113
113
  "@microsoft/api-extractor": "7.52.8",
114
114
  "@tiny-calc/micro": "0.0.0-alpha.5",
115
115
  "@types/double-ended-queue": "^2.1.0",
package/src/matrix.ts CHANGED
@@ -73,8 +73,7 @@ interface ISetOpMetadata {
73
73
 
74
74
  /**
75
75
  * Events emitted by Shared Matrix.
76
- * @legacy
77
- * @alpha
76
+ * @legacy @beta
78
77
  */
79
78
  export interface ISharedMatrixEvents<T> extends IEvent {
80
79
  /**
@@ -117,8 +116,7 @@ interface CellLastWriteTrackerItem {
117
116
  }
118
117
 
119
118
  /**
120
- * @legacy
121
- * @alpha
119
+ * @legacy @beta
122
120
  */
123
121
  // Changing this to `unknown` would be a breaking change.
124
122
  // TODO: if possible, transition ISharedMatrix to not use `any`.
@@ -240,8 +238,7 @@ interface PendingCellChanges<T> {
240
238
  * matrix data and physically stores data in Z-order to leverage CPU caches and
241
239
  * prefetching when reading in either row or column major order. (See README.md
242
240
  * for more details.)
243
- * @legacy
244
- * @alpha
241
+ * @legacy @beta
245
242
  */
246
243
  // Changing this to `unknown` would be a breaking change.
247
244
  // TODO: if possible, transition SharedMatrix to not use `any`.
package/src/ops.ts CHANGED
@@ -26,8 +26,7 @@ export enum SnapshotPath {
26
26
  /**
27
27
  * A matrix cell value may be undefined (indicating an empty cell) or any serializable type,
28
28
  * excluding null. (However, nulls may be embedded inside objects and arrays.)
29
- * @legacy
30
- * @alpha
29
+ * @legacy @beta
31
30
  */
32
31
  // eslint-disable-next-line @rushstack/no-new-null -- Using 'null' to disallow 'null'.
33
32
  export type MatrixItem<T> = Serializable<Exclude<T, null>> | undefined;
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/matrix";
9
- export const pkgVersion = "2.53.0";
9
+ export const pkgVersion = "2.60.0";
package/src/runtime.ts CHANGED
@@ -17,8 +17,7 @@ import { pkgVersion } from "./packageVersion.js";
17
17
 
18
18
  /**
19
19
  * {@link @fluidframework/datastore-definitions#IChannelFactory} for {@link ISharedMatrix}.
20
- * @legacy
21
- * @alpha
20
+ * @legacy @beta
22
21
  * @deprecated - Use `SharedMatrix.getFactory` instead.
23
22
  */
24
23
  export class SharedMatrixFactory implements IChannelFactory<ISharedMatrix> {
@@ -61,16 +60,14 @@ export class SharedMatrixFactory implements IChannelFactory<ISharedMatrix> {
61
60
 
62
61
  /**
63
62
  * Entrypoint for {@link ISharedMatrix} creation.
64
- * @legacy
65
- * @alpha
63
+ * @legacy @beta
66
64
  */
67
65
  export const SharedMatrix = createSharedObjectKind<ISharedMatrix>(SharedMatrixFactory);
68
66
 
69
67
  /**
70
68
  * Convenience alias for {@link ISharedMatrix}. Prefer to use {@link ISharedMatrix} when referring to
71
69
  * SharedMatrix as a type.
72
- * @legacy
73
- * @alpha
70
+ * @legacy @beta
74
71
  * @privateRemarks
75
72
  * This alias is for legacy compat from when the SharedMatrix class was exported as public.
76
73
  */
package/src/types.ts CHANGED
@@ -7,8 +7,7 @@
7
7
  // of SharedMatrix undo while we decide on the correct layering for undo.
8
8
 
9
9
  /**
10
- * @legacy
11
- * @alpha
10
+ * @legacy @beta
12
11
  */
13
12
  export interface IRevertible {
14
13
  revert(): void;
@@ -16,8 +15,7 @@ export interface IRevertible {
16
15
  }
17
16
 
18
17
  /**
19
- * @legacy
20
- * @alpha
18
+ * @legacy @beta
21
19
  */
22
20
  export interface IUndoConsumer {
23
21
  pushToCurrentOperation(revertible: IRevertible): void;