@fluid-experimental/tree 2.74.0 → 2.81.0-374083

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 (116) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/assertTagging.config.mjs +14 -0
  3. package/dist/Checkout.js.map +1 -1
  4. package/dist/Common.d.ts.map +1 -1
  5. package/dist/Common.js.map +1 -1
  6. package/dist/MergeHealth.d.ts.map +1 -1
  7. package/dist/MergeHealth.js.map +1 -1
  8. package/dist/SharedTree.js.map +1 -1
  9. package/dist/SharedTreeEncoder.d.ts.map +1 -1
  10. package/dist/SharedTreeEncoder.js.map +1 -1
  11. package/dist/UndoRedoHandler.d.ts.map +1 -1
  12. package/dist/UndoRedoHandler.js.map +1 -1
  13. package/dist/id-compressor/IdCompressor.js.map +1 -1
  14. package/dist/id-compressor/SessionIdNormalizer.js.map +1 -1
  15. package/dist/migration-shim/migrationDeltaHandler.d.ts +2 -2
  16. package/dist/migration-shim/migrationDeltaHandler.d.ts.map +1 -1
  17. package/dist/migration-shim/migrationDeltaHandler.js.map +1 -1
  18. package/dist/migration-shim/migrationShim.d.ts +5 -5
  19. package/dist/migration-shim/migrationShim.d.ts.map +1 -1
  20. package/dist/migration-shim/migrationShim.js +1 -0
  21. package/dist/migration-shim/migrationShim.js.map +1 -1
  22. package/dist/migration-shim/migrationShimFactory.d.ts +3 -3
  23. package/dist/migration-shim/migrationShimFactory.d.ts.map +1 -1
  24. package/dist/migration-shim/migrationShimFactory.js.map +1 -1
  25. package/dist/migration-shim/sharedTreeDeltaHandler.d.ts +2 -2
  26. package/dist/migration-shim/sharedTreeDeltaHandler.d.ts.map +1 -1
  27. package/dist/migration-shim/sharedTreeDeltaHandler.js.map +1 -1
  28. package/dist/migration-shim/sharedTreeShim.d.ts +5 -5
  29. package/dist/migration-shim/sharedTreeShim.d.ts.map +1 -1
  30. package/dist/migration-shim/sharedTreeShim.js.map +1 -1
  31. package/dist/migration-shim/sharedTreeShimFactory.d.ts +1 -1
  32. package/dist/migration-shim/sharedTreeShimFactory.d.ts.map +1 -1
  33. package/dist/migration-shim/sharedTreeShimFactory.js.map +1 -1
  34. package/dist/migration-shim/shimChannelServices.d.ts +1 -1
  35. package/dist/migration-shim/shimChannelServices.d.ts.map +1 -1
  36. package/dist/migration-shim/shimChannelServices.js.map +1 -1
  37. package/dist/migration-shim/shimDeltaConnection.d.ts +2 -2
  38. package/dist/migration-shim/shimDeltaConnection.d.ts.map +1 -1
  39. package/dist/migration-shim/shimDeltaConnection.js.map +1 -1
  40. package/dist/migration-shim/shimHandle.d.ts +1 -1
  41. package/dist/migration-shim/shimHandle.d.ts.map +1 -1
  42. package/dist/migration-shim/shimHandle.js.map +1 -1
  43. package/dist/migration-shim/types.d.ts +4 -4
  44. package/dist/migration-shim/types.d.ts.map +1 -1
  45. package/dist/migration-shim/types.js.map +1 -1
  46. package/dist/migration-shim/utils.d.ts +3 -3
  47. package/dist/migration-shim/utils.d.ts.map +1 -1
  48. package/dist/migration-shim/utils.js.map +1 -1
  49. package/eslint.config.mts +5 -4
  50. package/lib/Checkout.js.map +1 -1
  51. package/lib/Common.d.ts.map +1 -1
  52. package/lib/Common.js.map +1 -1
  53. package/lib/MergeHealth.d.ts.map +1 -1
  54. package/lib/MergeHealth.js.map +1 -1
  55. package/lib/SharedTree.js.map +1 -1
  56. package/lib/SharedTreeEncoder.d.ts.map +1 -1
  57. package/lib/SharedTreeEncoder.js.map +1 -1
  58. package/lib/UndoRedoHandler.d.ts.map +1 -1
  59. package/lib/UndoRedoHandler.js.map +1 -1
  60. package/lib/id-compressor/IdCompressor.js.map +1 -1
  61. package/lib/id-compressor/SessionIdNormalizer.js.map +1 -1
  62. package/lib/migration-shim/migrationDeltaHandler.d.ts +2 -2
  63. package/lib/migration-shim/migrationDeltaHandler.d.ts.map +1 -1
  64. package/lib/migration-shim/migrationDeltaHandler.js.map +1 -1
  65. package/lib/migration-shim/migrationShim.d.ts +5 -5
  66. package/lib/migration-shim/migrationShim.d.ts.map +1 -1
  67. package/lib/migration-shim/migrationShim.js +1 -0
  68. package/lib/migration-shim/migrationShim.js.map +1 -1
  69. package/lib/migration-shim/migrationShimFactory.d.ts +3 -3
  70. package/lib/migration-shim/migrationShimFactory.d.ts.map +1 -1
  71. package/lib/migration-shim/migrationShimFactory.js.map +1 -1
  72. package/lib/migration-shim/sharedTreeDeltaHandler.d.ts +2 -2
  73. package/lib/migration-shim/sharedTreeDeltaHandler.d.ts.map +1 -1
  74. package/lib/migration-shim/sharedTreeDeltaHandler.js.map +1 -1
  75. package/lib/migration-shim/sharedTreeShim.d.ts +5 -5
  76. package/lib/migration-shim/sharedTreeShim.d.ts.map +1 -1
  77. package/lib/migration-shim/sharedTreeShim.js.map +1 -1
  78. package/lib/migration-shim/sharedTreeShimFactory.d.ts +1 -1
  79. package/lib/migration-shim/sharedTreeShimFactory.d.ts.map +1 -1
  80. package/lib/migration-shim/sharedTreeShimFactory.js.map +1 -1
  81. package/lib/migration-shim/shimChannelServices.d.ts +1 -1
  82. package/lib/migration-shim/shimChannelServices.d.ts.map +1 -1
  83. package/lib/migration-shim/shimChannelServices.js.map +1 -1
  84. package/lib/migration-shim/shimDeltaConnection.d.ts +2 -2
  85. package/lib/migration-shim/shimDeltaConnection.d.ts.map +1 -1
  86. package/lib/migration-shim/shimDeltaConnection.js.map +1 -1
  87. package/lib/migration-shim/shimHandle.d.ts +1 -1
  88. package/lib/migration-shim/shimHandle.d.ts.map +1 -1
  89. package/lib/migration-shim/shimHandle.js.map +1 -1
  90. package/lib/migration-shim/types.d.ts +4 -4
  91. package/lib/migration-shim/types.d.ts.map +1 -1
  92. package/lib/migration-shim/types.js.map +1 -1
  93. package/lib/migration-shim/utils.d.ts +3 -3
  94. package/lib/migration-shim/utils.d.ts.map +1 -1
  95. package/lib/migration-shim/utils.js.map +1 -1
  96. package/package.json +32 -32
  97. package/src/Checkout.ts +1 -1
  98. package/src/Common.ts +5 -1
  99. package/src/MergeHealth.ts +5 -5
  100. package/src/SharedTree.ts +2 -2
  101. package/src/SharedTreeEncoder.ts +9 -2
  102. package/src/UndoRedoHandler.ts +5 -5
  103. package/src/id-compressor/IdCompressor.ts +1 -1
  104. package/src/id-compressor/SessionIdNormalizer.ts +1 -1
  105. package/src/migration-shim/migrationDeltaHandler.ts +2 -2
  106. package/src/migration-shim/migrationShim.ts +11 -13
  107. package/src/migration-shim/migrationShimFactory.ts +7 -10
  108. package/src/migration-shim/sharedTreeDeltaHandler.ts +2 -2
  109. package/src/migration-shim/sharedTreeShim.ts +14 -14
  110. package/src/migration-shim/sharedTreeShimFactory.ts +5 -5
  111. package/src/migration-shim/shimChannelServices.ts +4 -4
  112. package/src/migration-shim/shimDeltaConnection.ts +5 -5
  113. package/src/migration-shim/shimHandle.ts +1 -1
  114. package/src/migration-shim/types.ts +8 -8
  115. package/src/migration-shim/utils.ts +3 -3
  116. package/.eslintrc.cjs +0 -45
@@ -4,28 +4,28 @@
4
4
  */
5
5
 
6
6
  import { AttachState } from '@fluidframework/container-definitions';
7
- import { type IFluidHandle, type IFluidLoadable } from '@fluidframework/core-interfaces';
7
+ import type { IFluidHandle, IFluidLoadable } from '@fluidframework/core-interfaces';
8
8
  import { assert } from '@fluidframework/core-utils/internal';
9
- import {
10
- type IChannel,
11
- type IChannelAttributes,
12
- type IChannelFactory,
13
- type IFluidDataStoreRuntime,
14
- type IChannelServices,
9
+ import type {
10
+ IChannel,
11
+ IChannelAttributes,
12
+ IChannelFactory,
13
+ IFluidDataStoreRuntime,
14
+ IChannelServices,
15
15
  } from '@fluidframework/datastore-definitions/internal';
16
- import {
17
- type IExperimentalIncrementalSummaryContext,
18
- type IGarbageCollectionData,
19
- type ISummaryTreeWithStats,
20
- type ITelemetryContext,
16
+ import type {
17
+ IExperimentalIncrementalSummaryContext,
18
+ IGarbageCollectionData,
19
+ ISummaryTreeWithStats,
20
+ ITelemetryContext,
21
21
  } from '@fluidframework/runtime-definitions/internal';
22
- import { type ITree } from '@fluidframework/tree';
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 { type IShim } from './types.js';
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
- type IChannelAttributes,
9
- type IChannelFactory,
10
- type IFluidDataStoreRuntime,
11
- type IChannelServices,
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
- type IChannelServices,
8
- type IChannelStorageService,
9
- type IDeltaConnection,
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
- type IChannelAttributes,
9
- type IDeltaConnection,
10
- type IDeltaHandler,
7
+ import type {
8
+ IChannelAttributes,
9
+ IDeltaConnection,
10
+ IDeltaHandler,
11
11
  } from '@fluidframework/datastore-definitions/internal';
12
12
 
13
- import { type IShimDeltaHandler, type IUnstampedContents } from './types.js';
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 { type IShim } from './types.js';
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
- type IChannel,
8
- type IChannelAttributes,
9
- type IChannelServices,
10
- type IDeltaHandler,
6
+ import type {
7
+ IChannel,
8
+ IChannelAttributes,
9
+ IChannelServices,
10
+ IDeltaHandler,
11
11
  } from '@fluidframework/datastore-definitions/internal';
12
- import { type ITree } from '@fluidframework/tree';
12
+ import type { ITree } from '@fluidframework/tree';
13
13
 
14
- import { type SharedTree as LegacySharedTree } from '../SharedTree.js';
14
+ import type { SharedTree as LegacySharedTree } from '../SharedTree.js';
15
15
 
16
- import { type IMigrationOp } from './migrationShim.js';
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 { type IChannelAttributes } from '@fluidframework/datastore-definitions/internal';
6
+ import type { IChannelAttributes } from '@fluidframework/datastore-definitions/internal';
7
7
 
8
- import { type IMigrationOp } from './migrationShim.js';
9
- import { type IOpContents, type IStampedContents } from './types.js';
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
- };