@fluidframework/matrix 2.50.0 → 2.51.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.
- package/.eslintrc.cjs +11 -0
- package/CHANGELOG.md +4 -0
- package/dist/handlecache.d.ts +3 -3
- package/dist/handlecache.d.ts.map +1 -1
- package/dist/handlecache.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/matrix.d.ts +9 -9
- package/dist/matrix.d.ts.map +1 -1
- package/dist/matrix.js.map +1 -1
- package/dist/ops.d.ts +2 -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.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/permutationvector.d.ts +7 -7
- package/dist/permutationvector.d.ts.map +1 -1
- package/dist/permutationvector.js +0 -1
- package/dist/permutationvector.js.map +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js.map +1 -1
- package/dist/serialization.d.ts +3 -3
- package/dist/serialization.d.ts.map +1 -1
- package/dist/serialization.js +0 -1
- package/dist/serialization.js.map +1 -1
- package/dist/sparsearray2d.d.ts +1 -1
- package/dist/sparsearray2d.d.ts.map +1 -1
- package/dist/sparsearray2d.js.map +1 -1
- package/dist/undoprovider.d.ts +6 -6
- package/dist/undoprovider.d.ts.map +1 -1
- package/dist/undoprovider.js.map +1 -1
- package/lib/handlecache.d.ts +3 -3
- package/lib/handlecache.d.ts.map +1 -1
- package/lib/handlecache.js.map +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/matrix.d.ts +9 -9
- package/lib/matrix.d.ts.map +1 -1
- package/lib/matrix.js.map +1 -1
- package/lib/ops.d.ts +2 -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.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/permutationvector.d.ts +7 -7
- package/lib/permutationvector.d.ts.map +1 -1
- package/lib/permutationvector.js +0 -1
- package/lib/permutationvector.js.map +1 -1
- package/lib/runtime.d.ts +1 -1
- package/lib/runtime.d.ts.map +1 -1
- package/lib/runtime.js.map +1 -1
- package/lib/serialization.d.ts +3 -3
- package/lib/serialization.d.ts.map +1 -1
- package/lib/serialization.js +0 -1
- package/lib/serialization.js.map +1 -1
- package/lib/sparsearray2d.d.ts +1 -1
- package/lib/sparsearray2d.d.ts.map +1 -1
- package/lib/sparsearray2d.js.map +1 -1
- package/lib/undoprovider.d.ts +6 -6
- package/lib/undoprovider.d.ts.map +1 -1
- package/lib/undoprovider.js.map +1 -1
- package/package.json +18 -18
- package/src/handlecache.ts +3 -3
- package/src/index.ts +3 -3
- package/src/matrix.ts +18 -18
- package/src/ops.ts +2 -2
- package/src/packageVersion.ts +1 -1
- package/src/permutationvector.ts +11 -12
- package/src/runtime.ts +1 -1
- package/src/serialization.ts +3 -4
- package/src/sparsearray2d.ts +1 -1
- package/src/undoprovider.ts +9 -9
package/src/permutationvector.ts
CHANGED
|
@@ -3,39 +3,39 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { IFluidHandle, ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
|
|
6
|
+
import type { IFluidHandle, ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
|
|
7
7
|
import { assert } from "@fluidframework/core-utils/internal";
|
|
8
|
-
import {
|
|
8
|
+
import type {
|
|
9
9
|
IFluidDataStoreRuntime,
|
|
10
10
|
IChannelStorageService,
|
|
11
11
|
} from "@fluidframework/datastore-definitions/internal";
|
|
12
|
-
import { ISequencedDocumentMessage } from "@fluidframework/driver-definitions/internal";
|
|
12
|
+
import type { ISequencedDocumentMessage } from "@fluidframework/driver-definitions/internal";
|
|
13
13
|
import {
|
|
14
14
|
BaseSegment,
|
|
15
15
|
Client,
|
|
16
|
-
IJSONSegment,
|
|
17
|
-
IMergeTreeDeltaCallbackArgs,
|
|
18
|
-
IMergeTreeDeltaOpArgs,
|
|
19
|
-
IMergeTreeMaintenanceCallbackArgs,
|
|
20
|
-
ISegment,
|
|
16
|
+
type IJSONSegment,
|
|
17
|
+
type IMergeTreeDeltaCallbackArgs,
|
|
18
|
+
type IMergeTreeDeltaOpArgs,
|
|
19
|
+
type IMergeTreeMaintenanceCallbackArgs,
|
|
20
|
+
type ISegment,
|
|
21
21
|
MergeTreeDeltaType,
|
|
22
22
|
MergeTreeMaintenanceType,
|
|
23
23
|
segmentIsRemoved,
|
|
24
24
|
type IMergeTreeInsertMsg,
|
|
25
25
|
type IMergeTreeRemoveMsg,
|
|
26
26
|
} from "@fluidframework/merge-tree/internal";
|
|
27
|
-
import { ISummaryTreeWithStats } from "@fluidframework/runtime-definitions/internal";
|
|
27
|
+
import type { ISummaryTreeWithStats } from "@fluidframework/runtime-definitions/internal";
|
|
28
28
|
import {
|
|
29
29
|
ObjectStoragePartition,
|
|
30
30
|
SummaryTreeBuilder,
|
|
31
31
|
} from "@fluidframework/runtime-utils/internal";
|
|
32
|
-
import { IFluidSerializer } from "@fluidframework/shared-object-base/internal";
|
|
32
|
+
import type { IFluidSerializer } from "@fluidframework/shared-object-base/internal";
|
|
33
33
|
import { createChildLogger } from "@fluidframework/telemetry-utils/internal";
|
|
34
34
|
|
|
35
35
|
import { HandleCache } from "./handlecache.js";
|
|
36
36
|
import { Handle, HandleTable, isHandleValid } from "./handletable.js";
|
|
37
37
|
import { deserializeBlob } from "./serialization.js";
|
|
38
|
-
import { VectorUndoProvider } from "./undoprovider.js";
|
|
38
|
+
import type { VectorUndoProvider } from "./undoprovider.js";
|
|
39
39
|
|
|
40
40
|
const enum SnapshotPath {
|
|
41
41
|
segments = "segments",
|
|
@@ -125,7 +125,6 @@ export class PermutationSegment extends BaseSegment {
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
// eslint-disable-next-line import/no-deprecated
|
|
129
128
|
export class PermutationVector extends Client {
|
|
130
129
|
private handleTable = new HandleTable<never>(); // Tracks available storage handles for rows.
|
|
131
130
|
public readonly handleCache = new HandleCache(this);
|
package/src/runtime.ts
CHANGED
package/src/serialization.ts
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { bufferToString } from "@fluid-internal/client-utils";
|
|
7
|
-
import { IFluidHandle } from "@fluidframework/core-interfaces";
|
|
8
|
-
import {
|
|
7
|
+
import type { IFluidHandle } from "@fluidframework/core-interfaces";
|
|
8
|
+
import type {
|
|
9
9
|
IChannelStorageService,
|
|
10
10
|
Serializable,
|
|
11
11
|
} from "@fluidframework/datastore-definitions/internal";
|
|
12
12
|
import { BlobTreeEntry } from "@fluidframework/driver-utils/internal";
|
|
13
|
-
import { IFluidSerializer } from "@fluidframework/shared-object-base/internal";
|
|
13
|
+
import type { IFluidSerializer } from "@fluidframework/shared-object-base/internal";
|
|
14
14
|
|
|
15
15
|
export const serializeBlob = <T>(
|
|
16
16
|
handle: IFluidHandle,
|
|
@@ -28,6 +28,5 @@ export async function deserializeBlob(
|
|
|
28
28
|
): Promise<any> {
|
|
29
29
|
const blob = await storage.readBlob(path);
|
|
30
30
|
const utf8 = bufferToString(blob, "utf8");
|
|
31
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
32
31
|
return serializer.parse(utf8);
|
|
33
32
|
}
|
package/src/sparsearray2d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
/* eslint-disable no-bitwise */
|
|
7
7
|
|
|
8
|
-
import { IMatrixReader, IMatrixWriter,
|
|
8
|
+
import type { IMatrixReader, IMatrixWriter, IMatrixProducer } from "@tiny-calc/nano";
|
|
9
9
|
|
|
10
10
|
// Build a lookup table that maps a uint8 to the corresponding uint16 where 0s
|
|
11
11
|
// are interleaved between the original bits. (e.g., 1111... -> 01010101...).
|
package/src/undoprovider.ts
CHANGED
|
@@ -5,22 +5,22 @@
|
|
|
5
5
|
|
|
6
6
|
import { assert } from "@fluidframework/core-utils/internal";
|
|
7
7
|
import {
|
|
8
|
-
IMergeTreeDeltaCallbackArgs,
|
|
9
|
-
ITrackingGroup,
|
|
10
|
-
MergeTreeDeltaRevertible,
|
|
8
|
+
type IMergeTreeDeltaCallbackArgs,
|
|
9
|
+
type ITrackingGroup,
|
|
10
|
+
type MergeTreeDeltaRevertible,
|
|
11
11
|
MergeTreeDeltaType,
|
|
12
|
-
MergeTreeRevertibleDriver,
|
|
12
|
+
type MergeTreeRevertibleDriver,
|
|
13
13
|
TrackingGroup,
|
|
14
14
|
appendToMergeTreeDeltaRevertibles,
|
|
15
15
|
discardMergeTreeDeltaRevertible,
|
|
16
16
|
revertMergeTreeDeltaRevertibles,
|
|
17
17
|
} from "@fluidframework/merge-tree/internal";
|
|
18
18
|
|
|
19
|
-
import { Handle, isHandleValid } from "./handletable.js";
|
|
20
|
-
import { SharedMatrix } from "./matrix.js";
|
|
21
|
-
import { MatrixItem } from "./ops.js";
|
|
22
|
-
import { PermutationSegment, PermutationVector } from "./permutationvector.js";
|
|
23
|
-
import { IUndoConsumer } from "./types.js";
|
|
19
|
+
import { type Handle, isHandleValid } from "./handletable.js";
|
|
20
|
+
import type { SharedMatrix } from "./matrix.js";
|
|
21
|
+
import type { MatrixItem } from "./ops.js";
|
|
22
|
+
import type { PermutationSegment, PermutationVector } from "./permutationvector.js";
|
|
23
|
+
import type { IUndoConsumer } from "./types.js";
|
|
24
24
|
|
|
25
25
|
export class VectorUndoProvider {
|
|
26
26
|
// 'currentGroup' and 'currentOp' are used while applying an IRevertable.revert() to coalesce
|