@fluidframework/matrix 2.0.2 → 2.1.0-276326

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 (48) hide show
  1. package/api-extractor/api-extractor.legacy.json +4 -0
  2. package/api-report/matrix.beta.api.md +0 -15
  3. package/api-report/{matrix.alpha.api.md → matrix.legacy.alpha.api.md} +0 -15
  4. package/api-report/matrix.public.api.md +0 -15
  5. package/dist/legacy.d.ts +1 -1
  6. package/dist/matrix.d.ts +6 -1
  7. package/dist/matrix.d.ts.map +1 -1
  8. package/dist/matrix.js +1 -0
  9. package/dist/matrix.js.map +1 -1
  10. package/dist/ops.d.ts +1 -0
  11. package/dist/ops.d.ts.map +1 -1
  12. package/dist/ops.js.map +1 -1
  13. package/dist/packageVersion.d.ts +1 -1
  14. package/dist/packageVersion.d.ts.map +1 -1
  15. package/dist/packageVersion.js +1 -1
  16. package/dist/packageVersion.js.map +1 -1
  17. package/dist/runtime.d.ts +3 -0
  18. package/dist/runtime.d.ts.map +1 -1
  19. package/dist/runtime.js +2 -0
  20. package/dist/runtime.js.map +1 -1
  21. package/dist/types.d.ts +2 -0
  22. package/dist/types.d.ts.map +1 -1
  23. package/dist/types.js.map +1 -1
  24. package/lib/legacy.d.ts +1 -1
  25. package/lib/matrix.d.ts +6 -1
  26. package/lib/matrix.d.ts.map +1 -1
  27. package/lib/matrix.js +1 -0
  28. package/lib/matrix.js.map +1 -1
  29. package/lib/ops.d.ts +1 -0
  30. package/lib/ops.d.ts.map +1 -1
  31. package/lib/ops.js.map +1 -1
  32. package/lib/packageVersion.d.ts +1 -1
  33. package/lib/packageVersion.d.ts.map +1 -1
  34. package/lib/packageVersion.js +1 -1
  35. package/lib/packageVersion.js.map +1 -1
  36. package/lib/runtime.d.ts +3 -0
  37. package/lib/runtime.d.ts.map +1 -1
  38. package/lib/runtime.js +2 -0
  39. package/lib/runtime.js.map +1 -1
  40. package/lib/types.d.ts +2 -0
  41. package/lib/types.d.ts.map +1 -1
  42. package/lib/types.js.map +1 -1
  43. package/package.json +27 -23
  44. package/src/matrix.ts +6 -1
  45. package/src/ops.ts +1 -0
  46. package/src/packageVersion.ts +1 -1
  47. package/src/runtime.ts +3 -0
  48. package/src/types.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/matrix",
3
- "version": "2.0.2",
3
+ "version": "2.1.0-276326",
4
4
  "description": "Distributed matrix",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -63,17 +63,17 @@
63
63
  "temp-directory": "nyc/.nyc_output"
64
64
  },
65
65
  "dependencies": {
66
- "@fluid-internal/client-utils": "~2.0.2",
67
- "@fluidframework/core-interfaces": "~2.0.2",
68
- "@fluidframework/core-utils": "~2.0.2",
69
- "@fluidframework/datastore-definitions": "~2.0.2",
70
- "@fluidframework/driver-definitions": "~2.0.2",
71
- "@fluidframework/driver-utils": "~2.0.2",
72
- "@fluidframework/merge-tree": "~2.0.2",
73
- "@fluidframework/runtime-definitions": "~2.0.2",
74
- "@fluidframework/runtime-utils": "~2.0.2",
75
- "@fluidframework/shared-object-base": "~2.0.2",
76
- "@fluidframework/telemetry-utils": "~2.0.2",
66
+ "@fluid-internal/client-utils": "2.1.0-276326",
67
+ "@fluidframework/core-interfaces": "2.1.0-276326",
68
+ "@fluidframework/core-utils": "2.1.0-276326",
69
+ "@fluidframework/datastore-definitions": "2.1.0-276326",
70
+ "@fluidframework/driver-definitions": "2.1.0-276326",
71
+ "@fluidframework/driver-utils": "2.1.0-276326",
72
+ "@fluidframework/merge-tree": "2.1.0-276326",
73
+ "@fluidframework/runtime-definitions": "2.1.0-276326",
74
+ "@fluidframework/runtime-utils": "2.1.0-276326",
75
+ "@fluidframework/shared-object-base": "2.1.0-276326",
76
+ "@fluidframework/telemetry-utils": "2.1.0-276326",
77
77
  "@tiny-calc/nano": "0.0.0-alpha.5",
78
78
  "double-ended-queue": "^2.1.0-0",
79
79
  "tslib": "^1.10.0"
@@ -81,17 +81,17 @@
81
81
  "devDependencies": {
82
82
  "@arethetypeswrong/cli": "^0.15.2",
83
83
  "@biomejs/biome": "^1.7.3",
84
- "@fluid-internal/mocha-test-setup": "~2.0.2",
85
- "@fluid-private/stochastic-test-utils": "~2.0.2",
86
- "@fluid-private/test-dds-utils": "~2.0.2",
84
+ "@fluid-internal/mocha-test-setup": "2.1.0-276326",
85
+ "@fluid-private/stochastic-test-utils": "2.1.0-276326",
86
+ "@fluid-private/test-dds-utils": "2.1.0-276326",
87
87
  "@fluid-tools/benchmark": "^0.48.0",
88
88
  "@fluid-tools/build-cli": "^0.39.0",
89
89
  "@fluidframework/build-common": "^2.0.3",
90
90
  "@fluidframework/build-tools": "^0.39.0",
91
- "@fluidframework/container-definitions": "~2.0.2",
91
+ "@fluidframework/container-definitions": "2.1.0-276326",
92
92
  "@fluidframework/eslint-config-fluid": "^5.3.0",
93
- "@fluidframework/matrix-previous": "npm:@fluidframework/matrix@2.0.0-rc.4.0.0",
94
- "@fluidframework/test-runtime-utils": "~2.0.2",
93
+ "@fluidframework/matrix-previous": "npm:@fluidframework/matrix@2.0.0-rc.5.0.0",
94
+ "@fluidframework/test-runtime-utils": "2.1.0-276326",
95
95
  "@microsoft/api-extractor": "^7.45.1",
96
96
  "@tiny-calc/micro": "0.0.0-alpha.5",
97
97
  "@types/double-ended-queue": "^2.1.0",
@@ -119,14 +119,16 @@
119
119
  },
120
120
  "scripts": {
121
121
  "api": "fluid-build . --task api",
122
- "api-extractor:commonjs": "flub generate entrypoints --outFileAlpha legacy --outDir ./dist",
123
- "api-extractor:esnext": "flub generate entrypoints --outFileAlpha legacy --outDir ./lib --node10TypeCompat",
122
+ "api-extractor:commonjs": "flub generate entrypoints --outDir ./dist",
123
+ "api-extractor:esnext": "flub generate entrypoints --outDir ./lib --node10TypeCompat",
124
124
  "bench": "cd bench && node --expose-gc -r ts-node/register src/index.ts",
125
125
  "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",
126
126
  "build": "fluid-build . --task build",
127
127
  "build:commonjs": "fluid-build . --task commonjs",
128
128
  "build:compile": "fluid-build . --task compile",
129
- "build:docs": "api-extractor run --local",
129
+ "build:docs": "concurrently \"npm:build:docs:*\"",
130
+ "build:docs:current": "api-extractor run --local",
131
+ "build:docs:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json",
130
132
  "build:esnext": "tsc --project ./tsconfig.json",
131
133
  "build:genver": "gen-version",
132
134
  "build:test": "npm run build:test:esm && npm run build:test:cjs",
@@ -142,7 +144,9 @@
142
144
  "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json",
143
145
  "check:format": "npm run check:biome",
144
146
  "check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
145
- "ci:build:docs": "api-extractor run",
147
+ "ci:build:docs": "concurrently \"npm:ci:build:docs:*\"",
148
+ "ci:build:docs:current": "api-extractor run",
149
+ "ci:build:docs:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json",
146
150
  "clean": "rimraf --glob dist lib \"*.d.ts\" bench/dist \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
147
151
  "eslint": "eslint --format stylish src",
148
152
  "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
@@ -161,7 +165,7 @@
161
165
  "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
162
166
  "test:stress": "cross-env FUZZ_TEST_COUNT=100 FUZZ_STRESS_RUN=true mocha --ignore \"lib/test/memory/**/*\" --recursive \"lib/test/**/*.spec.js\"",
163
167
  "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist",
164
- "typetests:gen": "flub generate typetests --dir . -v --publicFallback",
168
+ "typetests:gen": "flub generate typetests --dir . -v",
165
169
  "typetests:prepare": "flub typetests --dir . --reset --previous --normalize"
166
170
  }
167
171
  }
package/src/matrix.ts CHANGED
@@ -73,6 +73,7 @@ interface ISetOpMetadata {
73
73
 
74
74
  /**
75
75
  * Events emitted by Shared Matrix.
76
+ * @legacy
76
77
  * @alpha
77
78
  */
78
79
  export interface ISharedMatrixEvents<T> extends IEvent {
@@ -115,7 +116,10 @@ interface CellLastWriteTrackerItem {
115
116
  clientId: string; // clientId of the client which last modified this cell
116
117
  }
117
118
 
118
- /** @alpha */
119
+ /**
120
+ * @legacy
121
+ * @alpha
122
+ */
119
123
  export interface ISharedMatrix<T = any>
120
124
  extends IEventProvider<ISharedMatrixEvents<T>>,
121
125
  IMatrixProducer<MatrixItem<T>>,
@@ -208,6 +212,7 @@ export interface ISharedMatrix<T = any>
208
212
  * matrix data and physically stores data in Z-order to leverage CPU caches and
209
213
  * prefetching when reading in either row or column major order. (See README.md
210
214
  * for more details.)
215
+ * @legacy
211
216
  * @alpha
212
217
  */
213
218
  export class SharedMatrix<T = any>
package/src/ops.ts CHANGED
@@ -26,6 +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
29
30
  * @alpha
30
31
  */
31
32
  // eslint-disable-next-line @rushstack/no-new-null -- Using 'null' to disallow 'null'.
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/matrix";
9
- export const pkgVersion = "2.0.2";
9
+ export const pkgVersion = "2.1.0-276326";
package/src/runtime.ts CHANGED
@@ -17,6 +17,7 @@ import { pkgVersion } from "./packageVersion.js";
17
17
 
18
18
  /**
19
19
  * {@link @fluidframework/datastore-definitions#IChannelFactory} for {@link ISharedMatrix}.
20
+ * @legacy
20
21
  * @alpha
21
22
  * @deprecated - Use `SharedMatrix.getFactory` instead.
22
23
  */
@@ -60,6 +61,7 @@ export class SharedMatrixFactory implements IChannelFactory<ISharedMatrix> {
60
61
 
61
62
  /**
62
63
  * Entrypoint for {@link ISharedMatrix} creation.
64
+ * @legacy
63
65
  * @alpha
64
66
  */
65
67
  export const SharedMatrix = createSharedObjectKind<ISharedMatrix>(SharedMatrixFactory);
@@ -67,6 +69,7 @@ export const SharedMatrix = createSharedObjectKind<ISharedMatrix>(SharedMatrixFa
67
69
  /**
68
70
  * Convenience alias for {@link ISharedMatrix}. Prefer to use {@link ISharedMatrix} when referring to
69
71
  * SharedMatrix as a type.
72
+ * @legacy
70
73
  * @alpha
71
74
  * @privateRemarks
72
75
  * This alias is for legacy compat from when the SharedMatrix class was exported as public.
package/src/types.ts CHANGED
@@ -7,6 +7,7 @@
7
7
  // of SharedMatrix undo while we decide on the correct layering for undo.
8
8
 
9
9
  /**
10
+ * @legacy
10
11
  * @alpha
11
12
  */
12
13
  export interface IRevertible {
@@ -15,6 +16,7 @@ export interface IRevertible {
15
16
  }
16
17
 
17
18
  /**
19
+ * @legacy
18
20
  * @alpha
19
21
  */
20
22
  export interface IUndoConsumer {