@fluid-experimental/tree 2.74.0 → 2.81.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/CHANGELOG.md +8 -0
- package/assertTagging.config.mjs +14 -0
- package/dist/Checkout.js.map +1 -1
- package/dist/Common.d.ts.map +1 -1
- package/dist/Common.js.map +1 -1
- package/dist/MergeHealth.d.ts.map +1 -1
- package/dist/MergeHealth.js.map +1 -1
- package/dist/SharedTree.js.map +1 -1
- package/dist/SharedTreeEncoder.d.ts.map +1 -1
- package/dist/SharedTreeEncoder.js.map +1 -1
- package/dist/UndoRedoHandler.d.ts.map +1 -1
- package/dist/UndoRedoHandler.js.map +1 -1
- package/dist/id-compressor/IdCompressor.js.map +1 -1
- package/dist/id-compressor/SessionIdNormalizer.js.map +1 -1
- package/dist/migration-shim/migrationDeltaHandler.d.ts +2 -2
- package/dist/migration-shim/migrationDeltaHandler.d.ts.map +1 -1
- package/dist/migration-shim/migrationDeltaHandler.js.map +1 -1
- package/dist/migration-shim/migrationShim.d.ts +5 -5
- package/dist/migration-shim/migrationShim.d.ts.map +1 -1
- package/dist/migration-shim/migrationShim.js +1 -0
- package/dist/migration-shim/migrationShim.js.map +1 -1
- package/dist/migration-shim/migrationShimFactory.d.ts +3 -3
- package/dist/migration-shim/migrationShimFactory.d.ts.map +1 -1
- package/dist/migration-shim/migrationShimFactory.js.map +1 -1
- package/dist/migration-shim/sharedTreeDeltaHandler.d.ts +2 -2
- package/dist/migration-shim/sharedTreeDeltaHandler.d.ts.map +1 -1
- package/dist/migration-shim/sharedTreeDeltaHandler.js.map +1 -1
- package/dist/migration-shim/sharedTreeShim.d.ts +5 -5
- package/dist/migration-shim/sharedTreeShim.d.ts.map +1 -1
- package/dist/migration-shim/sharedTreeShim.js.map +1 -1
- package/dist/migration-shim/sharedTreeShimFactory.d.ts +1 -1
- package/dist/migration-shim/sharedTreeShimFactory.d.ts.map +1 -1
- package/dist/migration-shim/sharedTreeShimFactory.js.map +1 -1
- package/dist/migration-shim/shimChannelServices.d.ts +1 -1
- package/dist/migration-shim/shimChannelServices.d.ts.map +1 -1
- package/dist/migration-shim/shimChannelServices.js.map +1 -1
- package/dist/migration-shim/shimDeltaConnection.d.ts +2 -2
- package/dist/migration-shim/shimDeltaConnection.d.ts.map +1 -1
- package/dist/migration-shim/shimDeltaConnection.js.map +1 -1
- package/dist/migration-shim/shimHandle.d.ts +1 -1
- package/dist/migration-shim/shimHandle.d.ts.map +1 -1
- package/dist/migration-shim/shimHandle.js.map +1 -1
- package/dist/migration-shim/types.d.ts +4 -4
- package/dist/migration-shim/types.d.ts.map +1 -1
- package/dist/migration-shim/types.js.map +1 -1
- package/dist/migration-shim/utils.d.ts +3 -3
- package/dist/migration-shim/utils.d.ts.map +1 -1
- package/dist/migration-shim/utils.js.map +1 -1
- package/eslint.config.mts +5 -4
- package/lib/Checkout.js.map +1 -1
- package/lib/Common.d.ts.map +1 -1
- package/lib/Common.js.map +1 -1
- package/lib/MergeHealth.d.ts.map +1 -1
- package/lib/MergeHealth.js.map +1 -1
- package/lib/SharedTree.js.map +1 -1
- package/lib/SharedTreeEncoder.d.ts.map +1 -1
- package/lib/SharedTreeEncoder.js.map +1 -1
- package/lib/UndoRedoHandler.d.ts.map +1 -1
- package/lib/UndoRedoHandler.js.map +1 -1
- package/lib/id-compressor/IdCompressor.js.map +1 -1
- package/lib/id-compressor/SessionIdNormalizer.js.map +1 -1
- package/lib/migration-shim/migrationDeltaHandler.d.ts +2 -2
- package/lib/migration-shim/migrationDeltaHandler.d.ts.map +1 -1
- package/lib/migration-shim/migrationDeltaHandler.js.map +1 -1
- package/lib/migration-shim/migrationShim.d.ts +5 -5
- package/lib/migration-shim/migrationShim.d.ts.map +1 -1
- package/lib/migration-shim/migrationShim.js +1 -0
- package/lib/migration-shim/migrationShim.js.map +1 -1
- package/lib/migration-shim/migrationShimFactory.d.ts +3 -3
- package/lib/migration-shim/migrationShimFactory.d.ts.map +1 -1
- package/lib/migration-shim/migrationShimFactory.js.map +1 -1
- package/lib/migration-shim/sharedTreeDeltaHandler.d.ts +2 -2
- package/lib/migration-shim/sharedTreeDeltaHandler.d.ts.map +1 -1
- package/lib/migration-shim/sharedTreeDeltaHandler.js.map +1 -1
- package/lib/migration-shim/sharedTreeShim.d.ts +5 -5
- package/lib/migration-shim/sharedTreeShim.d.ts.map +1 -1
- package/lib/migration-shim/sharedTreeShim.js.map +1 -1
- package/lib/migration-shim/sharedTreeShimFactory.d.ts +1 -1
- package/lib/migration-shim/sharedTreeShimFactory.d.ts.map +1 -1
- package/lib/migration-shim/sharedTreeShimFactory.js.map +1 -1
- package/lib/migration-shim/shimChannelServices.d.ts +1 -1
- package/lib/migration-shim/shimChannelServices.d.ts.map +1 -1
- package/lib/migration-shim/shimChannelServices.js.map +1 -1
- package/lib/migration-shim/shimDeltaConnection.d.ts +2 -2
- package/lib/migration-shim/shimDeltaConnection.d.ts.map +1 -1
- package/lib/migration-shim/shimDeltaConnection.js.map +1 -1
- package/lib/migration-shim/shimHandle.d.ts +1 -1
- package/lib/migration-shim/shimHandle.d.ts.map +1 -1
- package/lib/migration-shim/shimHandle.js.map +1 -1
- package/lib/migration-shim/types.d.ts +4 -4
- package/lib/migration-shim/types.d.ts.map +1 -1
- package/lib/migration-shim/types.js.map +1 -1
- package/lib/migration-shim/utils.d.ts +3 -3
- package/lib/migration-shim/utils.d.ts.map +1 -1
- package/lib/migration-shim/utils.js.map +1 -1
- package/package.json +32 -32
- package/src/Checkout.ts +1 -1
- package/src/Common.ts +5 -1
- package/src/MergeHealth.ts +5 -5
- package/src/SharedTree.ts +2 -2
- package/src/SharedTreeEncoder.ts +9 -2
- package/src/UndoRedoHandler.ts +5 -5
- package/src/id-compressor/IdCompressor.ts +1 -1
- package/src/id-compressor/SessionIdNormalizer.ts +1 -1
- package/src/migration-shim/migrationDeltaHandler.ts +2 -2
- package/src/migration-shim/migrationShim.ts +11 -13
- package/src/migration-shim/migrationShimFactory.ts +7 -10
- package/src/migration-shim/sharedTreeDeltaHandler.ts +2 -2
- package/src/migration-shim/sharedTreeShim.ts +14 -14
- package/src/migration-shim/sharedTreeShimFactory.ts +5 -5
- package/src/migration-shim/shimChannelServices.ts +4 -4
- package/src/migration-shim/shimDeltaConnection.ts +5 -5
- package/src/migration-shim/shimHandle.ts +1 -1
- package/src/migration-shim/types.ts +8 -8
- package/src/migration-shim/utils.ts +3 -3
- package/.eslintrc.cjs +0 -45
|
@@ -4,28 +4,28 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { AttachState } from '@fluidframework/container-definitions';
|
|
7
|
-
import {
|
|
7
|
+
import type { IFluidHandle, IFluidLoadable } from '@fluidframework/core-interfaces';
|
|
8
8
|
import { assert } from '@fluidframework/core-utils/internal';
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
import type {
|
|
10
|
+
IChannel,
|
|
11
|
+
IChannelAttributes,
|
|
12
|
+
IChannelFactory,
|
|
13
|
+
IFluidDataStoreRuntime,
|
|
14
|
+
IChannelServices,
|
|
15
15
|
} from '@fluidframework/datastore-definitions/internal';
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
import type {
|
|
17
|
+
IExperimentalIncrementalSummaryContext,
|
|
18
|
+
IGarbageCollectionData,
|
|
19
|
+
ISummaryTreeWithStats,
|
|
20
|
+
ITelemetryContext,
|
|
21
21
|
} from '@fluidframework/runtime-definitions/internal';
|
|
22
|
-
import {
|
|
22
|
+
import type { ITree } from '@fluidframework/tree';
|
|
23
23
|
|
|
24
24
|
import { SharedTreeShimDeltaHandler } from './sharedTreeDeltaHandler.js';
|
|
25
25
|
import { type IShimChannelServices, NoDeltasChannelServices } from './shimChannelServices.js';
|
|
26
26
|
import { StampDeltaConnection } from './shimDeltaConnection.js';
|
|
27
27
|
import { ShimHandle } from './shimHandle.js';
|
|
28
|
-
import {
|
|
28
|
+
import type { IShim } from './types.js';
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* SharedTreeShim is loaded by clients that join after the migration completes, and holds the new SharedTree.
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { assert } from '@fluidframework/core-utils/internal';
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
import type {
|
|
8
|
+
IChannelAttributes,
|
|
9
|
+
IChannelFactory,
|
|
10
|
+
IFluidDataStoreRuntime,
|
|
11
|
+
IChannelServices,
|
|
12
12
|
} from '@fluidframework/datastore-definitions/internal';
|
|
13
13
|
import type { ITree } from '@fluidframework/tree';
|
|
14
14
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
import type {
|
|
7
|
+
IChannelServices,
|
|
8
|
+
IChannelStorageService,
|
|
9
|
+
IDeltaConnection,
|
|
10
10
|
} from '@fluidframework/datastore-definitions/internal';
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { assert } from '@fluidframework/core-utils/internal';
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
import type {
|
|
8
|
+
IChannelAttributes,
|
|
9
|
+
IDeltaConnection,
|
|
10
|
+
IDeltaHandler,
|
|
11
11
|
} from '@fluidframework/datastore-definitions/internal';
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import type { IShimDeltaHandler, IUnstampedContents } from './types.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Represents a connection to a Shim data store that can receive and submit deltas.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import { FluidHandleBase, toFluidHandleInternal } from '@fluidframework/runtime-utils/internal';
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import type { IShim } from './types.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* ShimHandle is a special class to handle the fact that we are essentially creating a proxy for a DDS.
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
import type {
|
|
7
|
+
IChannel,
|
|
8
|
+
IChannelAttributes,
|
|
9
|
+
IChannelServices,
|
|
10
|
+
IDeltaHandler,
|
|
11
11
|
} from '@fluidframework/datastore-definitions/internal';
|
|
12
|
-
import {
|
|
12
|
+
import type { ITree } from '@fluidframework/tree';
|
|
13
13
|
|
|
14
|
-
import {
|
|
14
|
+
import type { SharedTree as LegacySharedTree } from '../SharedTree.js';
|
|
15
15
|
|
|
16
|
-
import {
|
|
16
|
+
import type { IMigrationOp } from './migrationShim.js';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* An interface for a shim delta handler intercepts another delta handler.
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import type { IChannelAttributes } from '@fluidframework/datastore-definitions/internal';
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import type { IMigrationOp } from './migrationShim.js';
|
|
9
|
+
import type { IOpContents, IStampedContents } from './types.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Checks if two channel attributes objects match.
|
package/.eslintrc.cjs
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
extends: ['@fluidframework/eslint-config-fluid/minimal-deprecated', 'prettier'],
|
|
8
|
-
root: true,
|
|
9
|
-
rules: {
|
|
10
|
-
// TODO: Recover "noUnusedLocals" behavior as part of linting. (This rule seems to be broken in the Fluid repo.)
|
|
11
|
-
// '@typescript-eslint/no-unused-vars': ['error', { args: 'none', varsIgnorePattern: '^_' }],
|
|
12
|
-
|
|
13
|
-
// Rules which could be re-enabled (by dropping these overrides, as they are enabled in base config) with some minor fixes:
|
|
14
|
-
'@typescript-eslint/no-shadow': 'off',
|
|
15
|
-
'no-shadow': 'off',
|
|
16
|
-
'@typescript-eslint/no-unsafe-return': 'off',
|
|
17
|
-
'import-x/no-deprecated': 'off',
|
|
18
|
-
'@fluid-internal/fluid/no-unchecked-record-access': 'off',
|
|
19
|
-
},
|
|
20
|
-
overrides: [
|
|
21
|
-
{
|
|
22
|
-
files: ['src/test/**'],
|
|
23
|
-
rules: {
|
|
24
|
-
// Chai assertions trigger the unused expression lint rule.
|
|
25
|
-
'@typescript-eslint/no-unused-expressions': 'off',
|
|
26
|
-
|
|
27
|
-
// Dev dependencies and internal modules may be used in test code
|
|
28
|
-
'import-x/no-extraneous-dependencies': [
|
|
29
|
-
'error',
|
|
30
|
-
{
|
|
31
|
-
devDependencies: true,
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
'import-x/no-internal-modules': 'off',
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
files: ['**/test/**', 'src/index.ts'],
|
|
39
|
-
rules: {
|
|
40
|
-
// Test code and the main package export shouldn't be linted for unused exports
|
|
41
|
-
'import-x/no-unused-modules': 'off',
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
};
|