@fluidframework/matrix 2.53.1 → 2.61.0-355054
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mocharc.cjs +1 -2
- package/CHANGELOG.md +4 -0
- package/api-report/{matrix.legacy.alpha.api.md → matrix.legacy.beta.api.md} +9 -9
- package/dist/legacy.d.ts +2 -1
- package/dist/matrix.d.ts +3 -6
- package/dist/matrix.d.ts.map +1 -1
- package/dist/matrix.js +1 -2
- package/dist/matrix.js.map +1 -1
- package/dist/ops.d.ts +1 -2
- package/dist/ops.d.ts.map +1 -1
- package/dist/ops.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.d.ts.map +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/runtime.d.ts +3 -6
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +2 -4
- package/dist/runtime.js.map +1 -1
- package/dist/types.d.ts +2 -4
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/internal.d.ts +1 -1
- package/legacy.d.ts +1 -1
- package/lib/legacy.d.ts +2 -1
- package/lib/matrix.d.ts +3 -6
- package/lib/matrix.d.ts.map +1 -1
- package/lib/matrix.js +1 -2
- package/lib/matrix.js.map +1 -1
- package/lib/ops.d.ts +1 -2
- package/lib/ops.d.ts.map +1 -1
- package/lib/ops.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.d.ts.map +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/runtime.d.ts +3 -6
- package/lib/runtime.d.ts.map +1 -1
- package/lib/runtime.js +2 -4
- package/lib/runtime.js.map +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/lib/types.d.ts +2 -4
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js.map +1 -1
- package/package.json +27 -27
- package/src/matrix.ts +3 -6
- package/src/ops.ts +1 -2
- package/src/packageVersion.ts +1 -1
- package/src/runtime.ts +3 -6
- package/src/types.ts +2 -4
package/lib/runtime.d.ts
CHANGED
|
@@ -6,8 +6,7 @@ import type { IChannel, IChannelAttributes, IChannelFactory, IFluidDataStoreRunt
|
|
|
6
6
|
import { type ISharedMatrix } from "./matrix.js";
|
|
7
7
|
/**
|
|
8
8
|
* {@link @fluidframework/datastore-definitions#IChannelFactory} for {@link ISharedMatrix}.
|
|
9
|
-
* @legacy
|
|
10
|
-
* @alpha
|
|
9
|
+
* @legacy @beta
|
|
11
10
|
* @deprecated - Use `SharedMatrix.getFactory` instead.
|
|
12
11
|
*/
|
|
13
12
|
export declare class SharedMatrixFactory implements IChannelFactory<ISharedMatrix> {
|
|
@@ -23,15 +22,13 @@ export declare class SharedMatrixFactory implements IChannelFactory<ISharedMatri
|
|
|
23
22
|
}
|
|
24
23
|
/**
|
|
25
24
|
* Entrypoint for {@link ISharedMatrix} creation.
|
|
26
|
-
* @legacy
|
|
27
|
-
* @alpha
|
|
25
|
+
* @legacy @beta
|
|
28
26
|
*/
|
|
29
27
|
export declare const SharedMatrix: import("@fluidframework/shared-object-base/internal").ISharedObjectKind<ISharedMatrix<any>> & import("@fluidframework/shared-object-base/internal").SharedObjectKind<ISharedMatrix<any>>;
|
|
30
28
|
/**
|
|
31
29
|
* Convenience alias for {@link ISharedMatrix}. Prefer to use {@link ISharedMatrix} when referring to
|
|
32
30
|
* SharedMatrix as a type.
|
|
33
|
-
* @legacy
|
|
34
|
-
* @alpha
|
|
31
|
+
* @legacy @beta
|
|
35
32
|
* @privateRemarks
|
|
36
33
|
* This alias is for legacy compat from when the SharedMatrix class was exported as public.
|
|
37
34
|
*/
|
package/lib/runtime.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACX,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACtB,gBAAgB,EAChB,MAAM,gDAAgD,CAAC;AAGxD,OAAO,EAAE,KAAK,aAAa,EAAqC,MAAM,aAAa,CAAC;AAGpF
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACX,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACtB,gBAAgB,EAChB,MAAM,gDAAgD,CAAC;AAGxD,OAAO,EAAE,KAAK,aAAa,EAAqC,MAAM,aAAa,CAAC;AAGpF;;;;GAIG;AACH,qBAAa,mBAAoB,YAAW,eAAe,CAAC,aAAa,CAAC;IACzE,OAAc,IAAI,SAAoD;IAEtE,gBAAuB,UAAU,EAAE,kBAAkB,CAInD;IAEF,IAAW,IAAI,IAAI,MAAM,CAExB;IAED,IAAW,UAAU,IAAI,kBAAkB,CAE1C;IAED;;OAEG;IACU,IAAI,CAChB,OAAO,EAAE,sBAAsB,EAC/B,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,gBAAgB,EAC1B,UAAU,EAAE,kBAAkB,GAC5B,OAAO,CAAC,aAAa,GAAG,QAAQ,CAAC;IAM7B,MAAM,CAAC,QAAQ,EAAE,sBAAsB,EAAE,EAAE,EAAE,MAAM,GAAG,aAAa,GAAG,QAAQ;CAKrF;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,0LAA6D,CAAC;AAEvF;;;;;;GAMG;AAIH,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,GAAG,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC"}
|
package/lib/runtime.js
CHANGED
|
@@ -7,8 +7,7 @@ import { SharedMatrix as SharedMatrixClass } from "./matrix.js";
|
|
|
7
7
|
import { pkgVersion } from "./packageVersion.js";
|
|
8
8
|
/**
|
|
9
9
|
* {@link @fluidframework/datastore-definitions#IChannelFactory} for {@link ISharedMatrix}.
|
|
10
|
-
* @legacy
|
|
11
|
-
* @alpha
|
|
10
|
+
* @legacy @beta
|
|
12
11
|
* @deprecated - Use `SharedMatrix.getFactory` instead.
|
|
13
12
|
*/
|
|
14
13
|
export class SharedMatrixFactory {
|
|
@@ -40,8 +39,7 @@ SharedMatrixFactory.Attributes = {
|
|
|
40
39
|
};
|
|
41
40
|
/**
|
|
42
41
|
* Entrypoint for {@link ISharedMatrix} creation.
|
|
43
|
-
* @legacy
|
|
44
|
-
* @alpha
|
|
42
|
+
* @legacy @beta
|
|
45
43
|
*/
|
|
46
44
|
export const SharedMatrix = createSharedObjectKind(SharedMatrixFactory);
|
|
47
45
|
//# sourceMappingURL=runtime.js.map
|
package/lib/runtime.js.map
CHANGED
|
@@ -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
|
|
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/tsdoc-metadata.json
CHANGED
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;
|
package/lib/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH
|
|
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
|
|
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.
|
|
3
|
+
"version": "2.61.0-355054",
|
|
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": "
|
|
85
|
-
"@fluidframework/core-interfaces": "
|
|
86
|
-
"@fluidframework/core-utils": "
|
|
87
|
-
"@fluidframework/datastore-definitions": "
|
|
88
|
-
"@fluidframework/driver-definitions": "
|
|
89
|
-
"@fluidframework/driver-utils": "
|
|
90
|
-
"@fluidframework/merge-tree": "
|
|
91
|
-
"@fluidframework/runtime-definitions": "
|
|
92
|
-
"@fluidframework/runtime-utils": "
|
|
93
|
-
"@fluidframework/shared-object-base": "
|
|
94
|
-
"@fluidframework/telemetry-utils": "
|
|
84
|
+
"@fluid-internal/client-utils": "2.61.0-355054",
|
|
85
|
+
"@fluidframework/core-interfaces": "2.61.0-355054",
|
|
86
|
+
"@fluidframework/core-utils": "2.61.0-355054",
|
|
87
|
+
"@fluidframework/datastore-definitions": "2.61.0-355054",
|
|
88
|
+
"@fluidframework/driver-definitions": "2.61.0-355054",
|
|
89
|
+
"@fluidframework/driver-utils": "2.61.0-355054",
|
|
90
|
+
"@fluidframework/merge-tree": "2.61.0-355054",
|
|
91
|
+
"@fluidframework/runtime-definitions": "2.61.0-355054",
|
|
92
|
+
"@fluidframework/runtime-utils": "2.61.0-355054",
|
|
93
|
+
"@fluidframework/shared-object-base": "2.61.0-355054",
|
|
94
|
+
"@fluidframework/telemetry-utils": "2.61.0-355054",
|
|
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,24 +99,24 @@
|
|
|
99
99
|
"devDependencies": {
|
|
100
100
|
"@arethetypeswrong/cli": "^0.17.1",
|
|
101
101
|
"@biomejs/biome": "~1.9.3",
|
|
102
|
-
"@fluid-internal/mocha-test-setup": "
|
|
103
|
-
"@fluid-private/stochastic-test-utils": "
|
|
104
|
-
"@fluid-private/test-dds-utils": "
|
|
102
|
+
"@fluid-internal/mocha-test-setup": "2.61.0-355054",
|
|
103
|
+
"@fluid-private/stochastic-test-utils": "2.61.0-355054",
|
|
104
|
+
"@fluid-private/test-dds-utils": "2.61.0-355054",
|
|
105
105
|
"@fluid-tools/benchmark": "^0.51.0",
|
|
106
|
-
"@fluid-tools/build-cli": "^0.
|
|
106
|
+
"@fluid-tools/build-cli": "^0.58.2",
|
|
107
107
|
"@fluidframework/build-common": "^2.0.3",
|
|
108
|
-
"@fluidframework/build-tools": "^0.
|
|
109
|
-
"@fluidframework/container-definitions": "
|
|
110
|
-
"@fluidframework/eslint-config-fluid": "^
|
|
111
|
-
"@fluidframework/matrix-previous": "npm:@fluidframework/matrix@2.
|
|
112
|
-
"@fluidframework/test-runtime-utils": "
|
|
113
|
-
"@microsoft/api-extractor": "7.52.
|
|
108
|
+
"@fluidframework/build-tools": "^0.58.2",
|
|
109
|
+
"@fluidframework/container-definitions": "2.61.0-355054",
|
|
110
|
+
"@fluidframework/eslint-config-fluid": "^6.0.0",
|
|
111
|
+
"@fluidframework/matrix-previous": "npm:@fluidframework/matrix@2.60.0",
|
|
112
|
+
"@fluidframework/test-runtime-utils": "2.61.0-355054",
|
|
113
|
+
"@microsoft/api-extractor": "7.52.11",
|
|
114
114
|
"@tiny-calc/micro": "0.0.0-alpha.5",
|
|
115
115
|
"@types/double-ended-queue": "^2.1.0",
|
|
116
116
|
"@types/mocha": "^10.0.10",
|
|
117
117
|
"@types/node": "^18.19.0",
|
|
118
118
|
"best-random": "^1.0.0",
|
|
119
|
-
"c8": "^
|
|
119
|
+
"c8": "^10.1.3",
|
|
120
120
|
"concurrently": "^8.2.1",
|
|
121
121
|
"copyfiles": "^2.4.1",
|
|
122
122
|
"cross-env": "^7.0.3",
|
|
@@ -134,8 +134,8 @@
|
|
|
134
134
|
},
|
|
135
135
|
"scripts": {
|
|
136
136
|
"api": "fluid-build . --task api",
|
|
137
|
-
"api-extractor:commonjs": "flub generate entrypoints --outDir ./dist",
|
|
138
|
-
"api-extractor:esnext": "flub generate entrypoints --outDir ./lib --node10TypeCompat",
|
|
137
|
+
"api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist",
|
|
138
|
+
"api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat",
|
|
139
139
|
"bench": "cd bench && node --expose-gc -r ts-node/register src/index.ts",
|
|
140
140
|
"bench:profile": "cd bench && node -r ts-node/register --prof --logfile=profile.log --no-logfile-per-isolate src/index.ts --runInBand && node --prof-process profile.log > profile.txt && rimraf profile.log && echo See results in bench/profile.txt",
|
|
141
141
|
"build": "fluid-build . --task build",
|
|
@@ -177,8 +177,8 @@
|
|
|
177
177
|
"test:memory": "mocha --config src/test/memory/.mocharc.cjs",
|
|
178
178
|
"test:memory-profiling:report": "mocha --config src/test/memory/.mocharc.cjs",
|
|
179
179
|
"test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs",
|
|
180
|
-
"test:mocha:cjs": "
|
|
181
|
-
"test:mocha:esm": "mocha
|
|
180
|
+
"test:mocha:cjs": "cross-env MOCHA_SPEC=dist/test mocha",
|
|
181
|
+
"test:mocha:esm": "mocha",
|
|
182
182
|
"test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
|
|
183
183
|
"test:stress": "cross-env FUZZ_TEST_COUNT=100 FUZZ_STRESS_RUN=normal mocha --ignore \"lib/test/memory/**/*\" --recursive \"lib/test/**/*.spec.js\"",
|
|
184
184
|
"tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist",
|
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;
|
package/src/packageVersion.ts
CHANGED
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;
|