@fluid-experimental/tree 2.0.0-rc.1.0.3 → 2.0.0-rc.2.0.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.js → .eslintrc.cjs} +1 -1
- package/{.mocharc.js → .mocharc.cjs} +1 -1
- package/.vscode/settings.json +1 -1
- package/CHANGELOG.md +4 -0
- package/api-report/experimental-tree.api.md +4 -15
- package/dist/ChangeCompression.d.ts +5 -5
- package/dist/ChangeCompression.d.ts.map +1 -1
- package/dist/ChangeCompression.js +24 -24
- package/dist/ChangeCompression.js.map +1 -1
- package/dist/ChangeTypes.d.ts +3 -3
- package/dist/ChangeTypes.d.ts.map +1 -1
- package/dist/ChangeTypes.js +9 -9
- package/dist/ChangeTypes.js.map +1 -1
- package/dist/Checkout.d.ts +7 -7
- package/dist/Checkout.d.ts.map +1 -1
- package/dist/Checkout.js +27 -27
- package/dist/Checkout.js.map +1 -1
- package/dist/Common.d.ts +2 -2
- package/dist/Common.d.ts.map +1 -1
- package/dist/Common.js.map +1 -1
- package/dist/EagerCheckout.d.ts +3 -3
- package/dist/EagerCheckout.d.ts.map +1 -1
- package/dist/EagerCheckout.js +2 -2
- package/dist/EagerCheckout.js.map +1 -1
- package/dist/EditLog.d.ts +4 -6
- package/dist/EditLog.d.ts.map +1 -1
- package/dist/EditLog.js +9 -9
- package/dist/EditLog.js.map +1 -1
- package/dist/EditUtilities.d.ts +6 -6
- package/dist/EditUtilities.d.ts.map +1 -1
- package/dist/EditUtilities.js +28 -28
- package/dist/EditUtilities.js.map +1 -1
- package/dist/Forest.d.ts +2 -2
- package/dist/Forest.d.ts.map +1 -1
- package/dist/Forest.js +13 -13
- package/dist/Forest.js.map +1 -1
- package/dist/HistoryEditFactory.d.ts +3 -3
- package/dist/HistoryEditFactory.d.ts.map +1 -1
- package/dist/HistoryEditFactory.js +36 -36
- package/dist/HistoryEditFactory.js.map +1 -1
- package/dist/IdConversion.d.ts +3 -3
- package/dist/IdConversion.d.ts.map +1 -1
- package/dist/IdConversion.js +23 -23
- package/dist/IdConversion.js.map +1 -1
- package/dist/InitialTree.d.ts +1 -1
- package/dist/InitialTree.d.ts.map +1 -1
- package/dist/InitialTree.js +2 -2
- package/dist/InitialTree.js.map +1 -1
- package/dist/LazyCheckout.d.ts +5 -5
- package/dist/LazyCheckout.d.ts.map +1 -1
- package/dist/LazyCheckout.js +2 -2
- package/dist/LazyCheckout.js.map +1 -1
- package/dist/LogViewer.d.ts +7 -7
- package/dist/LogViewer.d.ts.map +1 -1
- package/dist/LogViewer.js +25 -25
- package/dist/LogViewer.js.map +1 -1
- package/dist/MergeHealth.d.ts +1 -1
- package/dist/MergeHealth.d.ts.map +1 -1
- package/dist/MergeHealth.js +32 -32
- package/dist/MergeHealth.js.map +1 -1
- package/dist/NodeIdUtilities.d.ts +3 -3
- package/dist/NodeIdUtilities.d.ts.map +1 -1
- package/dist/NodeIdUtilities.js +4 -4
- package/dist/NodeIdUtilities.js.map +1 -1
- package/dist/PayloadUtilities.d.ts +1 -1
- package/dist/PayloadUtilities.d.ts.map +1 -1
- package/dist/PayloadUtilities.js.map +1 -1
- package/dist/ReconciliationPath.d.ts +3 -3
- package/dist/ReconciliationPath.d.ts.map +1 -1
- package/dist/ReconciliationPath.js.map +1 -1
- package/dist/RevisionValueCache.js +5 -5
- package/dist/RevisionValueCache.js.map +1 -1
- package/dist/RevisionView.d.ts +5 -5
- package/dist/RevisionView.d.ts.map +1 -1
- package/dist/RevisionView.js +11 -11
- package/dist/RevisionView.js.map +1 -1
- package/dist/SerializationUtilities.d.ts +4 -4
- package/dist/SerializationUtilities.d.ts.map +1 -1
- package/dist/SerializationUtilities.js +5 -5
- package/dist/SerializationUtilities.js.map +1 -1
- package/dist/SharedTree.d.ts +15 -18
- package/dist/SharedTree.d.ts.map +1 -1
- package/dist/SharedTree.js +154 -166
- package/dist/SharedTree.js.map +1 -1
- package/dist/SharedTreeEncoder.d.ts +8 -8
- package/dist/SharedTreeEncoder.d.ts.map +1 -1
- package/dist/SharedTreeEncoder.js +67 -67
- package/dist/SharedTreeEncoder.js.map +1 -1
- package/dist/StringInterner.d.ts +1 -1
- package/dist/StringInterner.d.ts.map +1 -1
- package/dist/StringInterner.js +2 -2
- package/dist/StringInterner.js.map +1 -1
- package/dist/Summary.d.ts +4 -4
- package/dist/Summary.d.ts.map +1 -1
- package/dist/Summary.js +2 -2
- package/dist/Summary.js.map +1 -1
- package/dist/SummaryBackCompatibility.d.ts +3 -3
- package/dist/SummaryBackCompatibility.d.ts.map +1 -1
- package/dist/SummaryBackCompatibility.js +13 -13
- package/dist/SummaryBackCompatibility.js.map +1 -1
- package/dist/SummaryTestUtilities.d.ts +2 -2
- package/dist/SummaryTestUtilities.d.ts.map +1 -1
- package/dist/SummaryTestUtilities.js.map +1 -1
- package/dist/Transaction.d.ts +4 -4
- package/dist/Transaction.d.ts.map +1 -1
- package/dist/Transaction.js +10 -10
- package/dist/Transaction.js.map +1 -1
- package/dist/TransactionInternal.d.ts +7 -7
- package/dist/TransactionInternal.d.ts.map +1 -1
- package/dist/TransactionInternal.js +87 -87
- package/dist/TransactionInternal.js.map +1 -1
- package/dist/TreeCompressor.d.ts +4 -4
- package/dist/TreeCompressor.d.ts.map +1 -1
- package/dist/TreeCompressor.js +6 -6
- package/dist/TreeCompressor.js.map +1 -1
- package/dist/TreeNodeHandle.d.ts +3 -3
- package/dist/TreeNodeHandle.d.ts.map +1 -1
- package/dist/TreeNodeHandle.js +5 -5
- package/dist/TreeNodeHandle.js.map +1 -1
- package/dist/TreeView.d.ts +3 -3
- package/dist/TreeView.d.ts.map +1 -1
- package/dist/TreeView.js +10 -10
- package/dist/TreeView.js.map +1 -1
- package/dist/TreeViewUtilities.d.ts +2 -2
- package/dist/TreeViewUtilities.d.ts.map +1 -1
- package/dist/TreeViewUtilities.js +3 -3
- package/dist/TreeViewUtilities.js.map +1 -1
- package/dist/UndoRedoHandler.d.ts +2 -2
- package/dist/UndoRedoHandler.d.ts.map +1 -1
- package/dist/UndoRedoHandler.js +5 -5
- package/dist/UndoRedoHandler.js.map +1 -1
- package/dist/UuidUtilities.d.ts +1 -1
- package/dist/UuidUtilities.d.ts.map +1 -1
- package/dist/UuidUtilities.js +3 -3
- package/dist/UuidUtilities.js.map +1 -1
- package/dist/id-compressor/AppendOnlySortedMap.js +4 -4
- package/dist/id-compressor/AppendOnlySortedMap.js.map +1 -1
- package/dist/id-compressor/IdCompressor.d.ts +2 -2
- package/dist/id-compressor/IdCompressor.d.ts.map +1 -1
- package/dist/id-compressor/IdCompressor.js +78 -78
- package/dist/id-compressor/IdCompressor.js.map +1 -1
- package/dist/id-compressor/IdRange.d.ts +1 -1
- package/dist/id-compressor/IdRange.d.ts.map +1 -1
- package/dist/id-compressor/IdRange.js.map +1 -1
- package/dist/id-compressor/NumericUuid.d.ts +1 -1
- package/dist/id-compressor/NumericUuid.d.ts.map +1 -1
- package/dist/id-compressor/NumericUuid.js +6 -6
- package/dist/id-compressor/NumericUuid.js.map +1 -1
- package/dist/id-compressor/SessionIdNormalizer.d.ts +2 -2
- package/dist/id-compressor/SessionIdNormalizer.d.ts.map +1 -1
- package/dist/id-compressor/SessionIdNormalizer.js +14 -14
- package/dist/id-compressor/SessionIdNormalizer.js.map +1 -1
- package/dist/id-compressor/index.d.ts +4 -4
- package/dist/id-compressor/index.d.ts.map +1 -1
- package/dist/id-compressor/index.js +11 -11
- package/dist/id-compressor/index.js.map +1 -1
- package/dist/id-compressor/persisted-types/0.0.1.d.ts +1 -1
- package/dist/id-compressor/persisted-types/0.0.1.d.ts.map +1 -1
- package/dist/id-compressor/persisted-types/0.0.1.js.map +1 -1
- package/dist/id-compressor/persisted-types/index.d.ts +1 -1
- package/dist/id-compressor/persisted-types/index.d.ts.map +1 -1
- package/dist/id-compressor/persisted-types/index.js.map +1 -1
- package/dist/index.d.ts +29 -29
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +73 -73
- package/dist/index.js.map +1 -1
- package/dist/migration-shim/migrationDeltaHandler.d.ts +1 -1
- package/dist/migration-shim/migrationDeltaHandler.d.ts.map +1 -1
- package/dist/migration-shim/migrationDeltaHandler.js +5 -8
- package/dist/migration-shim/migrationDeltaHandler.js.map +1 -1
- package/dist/migration-shim/migrationShim.d.ts +1 -1
- package/dist/migration-shim/migrationShim.d.ts.map +1 -1
- package/dist/migration-shim/migrationShim.js +1 -1
- package/dist/migration-shim/migrationShim.js.map +1 -1
- package/dist/migration-shim/migrationShimFactory.d.ts +1 -1
- 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 +1 -1
- package/dist/migration-shim/sharedTreeDeltaHandler.d.ts.map +1 -1
- package/dist/migration-shim/sharedTreeDeltaHandler.js +2 -5
- package/dist/migration-shim/sharedTreeDeltaHandler.js.map +1 -1
- package/dist/migration-shim/types.d.ts +1 -1
- package/dist/migration-shim/types.d.ts.map +1 -1
- package/dist/migration-shim/types.js.map +1 -1
- package/dist/package.json +3 -0
- package/dist/persisted-types/0.0.2.d.ts +1 -1
- package/dist/persisted-types/0.0.2.d.ts.map +1 -1
- package/dist/persisted-types/0.0.2.js.map +1 -1
- package/dist/persisted-types/0.1.1.d.ts +4 -4
- package/dist/persisted-types/0.1.1.d.ts.map +1 -1
- package/dist/persisted-types/0.1.1.js +13 -13
- package/dist/persisted-types/0.1.1.js.map +1 -1
- package/dist/persisted-types/index.d.ts +2 -2
- package/dist/persisted-types/index.d.ts.map +1 -1
- package/dist/persisted-types/index.js +13 -13
- package/dist/persisted-types/index.js.map +1 -1
- package/dist/tree-alpha.d.ts +5 -8
- package/dist/tree-beta.d.ts +5 -1
- package/dist/tree-public.d.ts +5 -1
- package/dist/tree-untrimmed.d.ts +5 -8
- package/dist/tsdoc-metadata.json +1 -1
- package/lib/ChangeCompression.d.ts +5 -5
- package/lib/ChangeCompression.d.ts.map +1 -1
- package/lib/ChangeCompression.js +3 -3
- package/lib/ChangeCompression.js.map +1 -1
- package/lib/ChangeTypes.d.ts +3 -3
- package/lib/ChangeTypes.d.ts.map +1 -1
- package/lib/ChangeTypes.js +3 -3
- package/lib/ChangeTypes.js.map +1 -1
- package/lib/Checkout.d.ts +7 -7
- package/lib/Checkout.d.ts.map +1 -1
- package/lib/Checkout.js +6 -6
- package/lib/Checkout.js.map +1 -1
- package/lib/Common.d.ts +2 -2
- package/lib/Common.d.ts.map +1 -1
- package/lib/Common.js.map +1 -1
- package/lib/EagerCheckout.d.ts +3 -3
- package/lib/EagerCheckout.d.ts.map +1 -1
- package/lib/EagerCheckout.js +1 -1
- package/lib/EagerCheckout.js.map +1 -1
- package/lib/EditLog.d.ts +4 -6
- package/lib/EditLog.d.ts.map +1 -1
- package/lib/EditLog.js +1 -1
- package/lib/EditLog.js.map +1 -1
- package/lib/EditUtilities.d.ts +6 -6
- package/lib/EditUtilities.d.ts.map +1 -1
- package/lib/EditUtilities.js +7 -7
- package/lib/EditUtilities.js.map +1 -1
- package/lib/Forest.d.ts +2 -2
- package/lib/Forest.d.ts.map +1 -1
- package/lib/Forest.js +2 -2
- package/lib/Forest.js.map +1 -1
- package/lib/HistoryEditFactory.d.ts +3 -3
- package/lib/HistoryEditFactory.d.ts.map +1 -1
- package/lib/HistoryEditFactory.js +7 -7
- package/lib/HistoryEditFactory.js.map +1 -1
- package/lib/IdConversion.d.ts +3 -3
- package/lib/IdConversion.d.ts.map +1 -1
- package/lib/IdConversion.js +4 -4
- package/lib/IdConversion.js.map +1 -1
- package/lib/InitialTree.d.ts +1 -1
- package/lib/InitialTree.d.ts.map +1 -1
- package/lib/InitialTree.js +1 -1
- package/lib/InitialTree.js.map +1 -1
- package/lib/LazyCheckout.d.ts +5 -5
- package/lib/LazyCheckout.d.ts.map +1 -1
- package/lib/LazyCheckout.js +1 -1
- package/lib/LazyCheckout.js.map +1 -1
- package/lib/LogViewer.d.ts +7 -7
- package/lib/LogViewer.d.ts.map +1 -1
- package/lib/LogViewer.js +4 -4
- package/lib/LogViewer.js.map +1 -1
- package/lib/MergeHealth.d.ts +1 -1
- package/lib/MergeHealth.d.ts.map +1 -1
- package/lib/MergeHealth.js +5 -5
- package/lib/MergeHealth.js.map +1 -1
- package/lib/NodeIdUtilities.d.ts +3 -3
- package/lib/NodeIdUtilities.d.ts.map +1 -1
- package/lib/NodeIdUtilities.js +2 -2
- package/lib/NodeIdUtilities.js.map +1 -1
- package/lib/PayloadUtilities.d.ts +1 -1
- package/lib/PayloadUtilities.d.ts.map +1 -1
- package/lib/PayloadUtilities.js.map +1 -1
- package/lib/ReconciliationPath.d.ts +3 -3
- package/lib/ReconciliationPath.d.ts.map +1 -1
- package/lib/ReconciliationPath.js.map +1 -1
- package/lib/RevisionValueCache.js +1 -1
- package/lib/RevisionValueCache.js.map +1 -1
- package/lib/RevisionView.d.ts +5 -5
- package/lib/RevisionView.d.ts.map +1 -1
- package/lib/RevisionView.js +3 -3
- package/lib/RevisionView.js.map +1 -1
- package/lib/SerializationUtilities.d.ts +4 -4
- package/lib/SerializationUtilities.d.ts.map +1 -1
- package/lib/SerializationUtilities.js +1 -1
- package/lib/SerializationUtilities.js.map +1 -1
- package/lib/SharedTree.d.ts +15 -18
- package/lib/SharedTree.d.ts.map +1 -1
- package/lib/SharedTree.js +28 -40
- package/lib/SharedTree.js.map +1 -1
- package/lib/SharedTreeEncoder.d.ts +8 -8
- package/lib/SharedTreeEncoder.d.ts.map +1 -1
- package/lib/SharedTreeEncoder.js +12 -12
- package/lib/SharedTreeEncoder.js.map +1 -1
- package/lib/StringInterner.d.ts +1 -1
- package/lib/StringInterner.d.ts.map +1 -1
- package/lib/StringInterner.js +1 -1
- package/lib/StringInterner.js.map +1 -1
- package/lib/Summary.d.ts +4 -4
- package/lib/Summary.d.ts.map +1 -1
- package/lib/Summary.js +1 -1
- package/lib/Summary.js.map +1 -1
- package/lib/SummaryBackCompatibility.d.ts +3 -3
- package/lib/SummaryBackCompatibility.d.ts.map +1 -1
- package/lib/SummaryBackCompatibility.js +3 -3
- package/lib/SummaryBackCompatibility.js.map +1 -1
- package/lib/SummaryTestUtilities.d.ts +2 -2
- package/lib/SummaryTestUtilities.d.ts.map +1 -1
- package/lib/SummaryTestUtilities.js.map +1 -1
- package/lib/Transaction.d.ts +4 -4
- package/lib/Transaction.d.ts.map +1 -1
- package/lib/Transaction.js +5 -5
- package/lib/Transaction.js.map +1 -1
- package/lib/TransactionInternal.d.ts +7 -7
- package/lib/TransactionInternal.d.ts.map +1 -1
- package/lib/TransactionInternal.js +5 -5
- package/lib/TransactionInternal.js.map +1 -1
- package/lib/TreeCompressor.d.ts +4 -4
- package/lib/TreeCompressor.d.ts.map +1 -1
- package/lib/TreeCompressor.js +2 -2
- package/lib/TreeCompressor.js.map +1 -1
- package/lib/TreeNodeHandle.d.ts +3 -3
- package/lib/TreeNodeHandle.d.ts.map +1 -1
- package/lib/TreeNodeHandle.js +1 -1
- package/lib/TreeNodeHandle.js.map +1 -1
- package/lib/TreeView.d.ts +3 -3
- package/lib/TreeView.d.ts.map +1 -1
- package/lib/TreeView.js +3 -3
- package/lib/TreeView.js.map +1 -1
- package/lib/TreeViewUtilities.d.ts +2 -2
- package/lib/TreeViewUtilities.d.ts.map +1 -1
- package/lib/TreeViewUtilities.js +1 -1
- package/lib/TreeViewUtilities.js.map +1 -1
- package/lib/UndoRedoHandler.d.ts +2 -2
- package/lib/UndoRedoHandler.d.ts.map +1 -1
- package/lib/UndoRedoHandler.js +2 -2
- package/lib/UndoRedoHandler.js.map +1 -1
- package/lib/UuidUtilities.d.ts +1 -1
- package/lib/UuidUtilities.d.ts.map +1 -1
- package/lib/UuidUtilities.js +1 -1
- package/lib/UuidUtilities.js.map +1 -1
- package/lib/id-compressor/AppendOnlySortedMap.js +1 -1
- package/lib/id-compressor/AppendOnlySortedMap.js.map +1 -1
- package/lib/id-compressor/IdCompressor.d.ts +2 -2
- package/lib/id-compressor/IdCompressor.d.ts.map +1 -1
- package/lib/id-compressor/IdCompressor.js +6 -6
- package/lib/id-compressor/IdCompressor.js.map +1 -1
- package/lib/id-compressor/IdRange.d.ts +1 -1
- package/lib/id-compressor/IdRange.d.ts.map +1 -1
- package/lib/id-compressor/IdRange.js.map +1 -1
- package/lib/id-compressor/NumericUuid.d.ts +1 -1
- package/lib/id-compressor/NumericUuid.d.ts.map +1 -1
- package/lib/id-compressor/NumericUuid.js +2 -2
- package/lib/id-compressor/NumericUuid.js.map +1 -1
- package/lib/id-compressor/SessionIdNormalizer.d.ts +2 -2
- package/lib/id-compressor/SessionIdNormalizer.d.ts.map +1 -1
- package/lib/id-compressor/SessionIdNormalizer.js +2 -2
- package/lib/id-compressor/SessionIdNormalizer.js.map +1 -1
- package/lib/id-compressor/index.d.ts +4 -4
- package/lib/id-compressor/index.d.ts.map +1 -1
- package/lib/id-compressor/index.js +3 -3
- package/lib/id-compressor/index.js.map +1 -1
- package/lib/id-compressor/persisted-types/0.0.1.d.ts +1 -1
- package/lib/id-compressor/persisted-types/0.0.1.d.ts.map +1 -1
- package/lib/id-compressor/persisted-types/0.0.1.js.map +1 -1
- package/lib/id-compressor/persisted-types/index.d.ts +1 -1
- package/lib/id-compressor/persisted-types/index.d.ts.map +1 -1
- package/lib/id-compressor/persisted-types/index.js.map +1 -1
- package/lib/index.d.ts +29 -29
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +22 -22
- package/lib/index.js.map +1 -1
- package/lib/migration-shim/migrationDeltaHandler.d.ts +1 -1
- package/lib/migration-shim/migrationDeltaHandler.d.ts.map +1 -1
- package/lib/migration-shim/migrationDeltaHandler.js +5 -8
- package/lib/migration-shim/migrationDeltaHandler.js.map +1 -1
- package/lib/migration-shim/migrationShim.d.ts +1 -1
- package/lib/migration-shim/migrationShim.d.ts.map +1 -1
- package/lib/migration-shim/migrationShim.js +1 -1
- package/lib/migration-shim/migrationShim.js.map +1 -1
- package/lib/migration-shim/migrationShimFactory.d.ts +1 -1
- 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 +1 -1
- package/lib/migration-shim/sharedTreeDeltaHandler.d.ts.map +1 -1
- package/lib/migration-shim/sharedTreeDeltaHandler.js +2 -5
- package/lib/migration-shim/sharedTreeDeltaHandler.js.map +1 -1
- package/lib/migration-shim/types.d.ts +1 -1
- package/lib/migration-shim/types.d.ts.map +1 -1
- package/lib/migration-shim/types.js.map +1 -1
- package/lib/persisted-types/0.0.2.d.ts +1 -1
- package/lib/persisted-types/0.0.2.d.ts.map +1 -1
- package/lib/persisted-types/0.0.2.js.map +1 -1
- package/lib/persisted-types/0.1.1.d.ts +4 -4
- package/lib/persisted-types/0.1.1.d.ts.map +1 -1
- package/lib/persisted-types/0.1.1.js +2 -2
- package/lib/persisted-types/0.1.1.js.map +1 -1
- package/lib/persisted-types/index.d.ts +2 -2
- package/lib/persisted-types/index.d.ts.map +1 -1
- package/lib/persisted-types/index.js +2 -2
- package/lib/persisted-types/index.js.map +1 -1
- package/lib/test/AppendOnlySortedMap.perf.tests.js +2 -2
- package/lib/test/AppendOnlySortedMap.perf.tests.js.map +1 -1
- package/lib/test/AppendOnlySortedMap.tests.js +2 -2
- package/lib/test/AppendOnlySortedMap.tests.js.map +1 -1
- package/lib/test/ChangeCompression.tests.js +9 -9
- package/lib/test/ChangeCompression.tests.js.map +1 -1
- package/lib/test/Checkout.tests.d.ts +1 -1
- package/lib/test/Checkout.tests.d.ts.map +1 -1
- package/lib/test/Checkout.tests.js +2 -2
- package/lib/test/Checkout.tests.js.map +1 -1
- package/lib/test/Common.tests.js +1 -1
- package/lib/test/Common.tests.js.map +1 -1
- package/lib/test/EagerCheckout.tests.js +4 -4
- package/lib/test/EagerCheckout.tests.js.map +1 -1
- package/lib/test/Edit.tests.js +2 -2
- package/lib/test/Edit.tests.js.map +1 -1
- package/lib/test/EditLog.perf.tests.js +4 -4
- package/lib/test/EditLog.perf.tests.js.map +1 -1
- package/lib/test/EditLog.tests.js +3 -3
- package/lib/test/EditLog.tests.js.map +1 -1
- package/lib/test/EditUtilities.tests.js +6 -6
- package/lib/test/EditUtilities.tests.js.map +1 -1
- package/lib/test/Forest.perf.tests.js +4 -4
- package/lib/test/Forest.perf.tests.js.map +1 -1
- package/lib/test/Forest.tests.js +2 -2
- package/lib/test/Forest.tests.js.map +1 -1
- package/lib/test/GenericTransaction.tests.js +3 -3
- package/lib/test/GenericTransaction.tests.js.map +1 -1
- package/lib/test/HistoryEditFactory.tests.js +4 -4
- package/lib/test/HistoryEditFactory.tests.js.map +1 -1
- package/lib/test/IdCompressor.perf.tests.js +4 -4
- package/lib/test/IdCompressor.perf.tests.js.map +1 -1
- package/lib/test/IdCompressor.tests.js +7 -7
- package/lib/test/IdCompressor.tests.js.map +1 -1
- package/lib/test/IdConversion.tests.js +3 -3
- package/lib/test/IdConversion.tests.js.map +1 -1
- package/lib/test/LazyCheckout.tests.js +4 -4
- package/lib/test/LazyCheckout.tests.js.map +1 -1
- package/lib/test/LogViewer.tests.js +12 -12
- package/lib/test/LogViewer.tests.js.map +1 -1
- package/lib/test/MergeHealthTelemetryHeartbeat.tests.js +6 -6
- package/lib/test/MergeHealthTelemetryHeartbeat.tests.js.map +1 -1
- package/lib/test/NumericUuid.perf.tests.js +3 -3
- package/lib/test/NumericUuid.perf.tests.js.map +1 -1
- package/lib/test/NumericUuid.tests.js +4 -4
- package/lib/test/NumericUuid.tests.js.map +1 -1
- package/lib/test/RevisionValueCache.tests.js +2 -2
- package/lib/test/RevisionValueCache.tests.js.map +1 -1
- package/lib/test/RevisionView.tests.js +6 -6
- package/lib/test/RevisionView.tests.js.map +1 -1
- package/lib/test/SessionIdNormalizer.tests.js +3 -3
- package/lib/test/SessionIdNormalizer.tests.js.map +1 -1
- package/lib/test/SharedTree.fuzz.tests.js +1 -1
- package/lib/test/SharedTree.fuzz.tests.js.map +1 -1
- package/lib/test/SharedTree.perf.tests.js +2 -2
- package/lib/test/SharedTree.perf.tests.js.map +1 -1
- package/lib/test/SharedTree.tests.js +7 -7
- package/lib/test/SharedTree.tests.js.map +1 -1
- package/lib/test/StringInterner.tests.js +1 -1
- package/lib/test/StringInterner.tests.js.map +1 -1
- package/lib/test/Summary.tests.d.ts +2 -2
- package/lib/test/Summary.tests.d.ts.map +1 -1
- package/lib/test/Summary.tests.js +14 -14
- package/lib/test/Summary.tests.js.map +1 -1
- package/lib/test/Transaction.tests.js +5 -5
- package/lib/test/Transaction.tests.js.map +1 -1
- package/lib/test/TransactionInternal.tests.js +7 -7
- package/lib/test/TransactionInternal.tests.js.map +1 -1
- package/lib/test/TreeCompression.tests.js +8 -8
- package/lib/test/TreeCompression.tests.js.map +1 -1
- package/lib/test/TreeView.tests.js +3 -3
- package/lib/test/TreeView.tests.js.map +1 -1
- package/lib/test/UndoRedoHandler.tests.js +2 -2
- package/lib/test/UndoRedoHandler.tests.js.map +1 -1
- package/lib/test/fuzz/Generators.d.ts +1 -1
- package/lib/test/fuzz/Generators.d.ts.map +1 -1
- package/lib/test/fuzz/Generators.js +4 -4
- package/lib/test/fuzz/Generators.js.map +1 -1
- package/lib/test/fuzz/SharedTreeFuzzTests.d.ts +1 -1
- package/lib/test/fuzz/SharedTreeFuzzTests.d.ts.map +1 -1
- package/lib/test/fuzz/SharedTreeFuzzTests.js +5 -5
- package/lib/test/fuzz/SharedTreeFuzzTests.js.map +1 -1
- package/lib/test/fuzz/Types.d.ts +6 -6
- package/lib/test/fuzz/Types.d.ts.map +1 -1
- package/lib/test/fuzz/Types.js.map +1 -1
- package/lib/test/utilities/IdCompressorTestUtilities.d.ts +6 -6
- package/lib/test/utilities/IdCompressorTestUtilities.d.ts.map +1 -1
- package/lib/test/utilities/IdCompressorTestUtilities.js +6 -6
- package/lib/test/utilities/IdCompressorTestUtilities.js.map +1 -1
- package/lib/test/utilities/MockTransaction.d.ts +4 -4
- package/lib/test/utilities/MockTransaction.d.ts.map +1 -1
- package/lib/test/utilities/MockTransaction.js +3 -3
- package/lib/test/utilities/MockTransaction.js.map +1 -1
- package/lib/test/utilities/PendingLocalStateTests.d.ts +1 -1
- package/lib/test/utilities/PendingLocalStateTests.d.ts.map +1 -1
- package/lib/test/utilities/PendingLocalStateTests.js +5 -5
- package/lib/test/utilities/PendingLocalStateTests.js.map +1 -1
- package/lib/test/utilities/SharedTreeTests.d.ts +2 -2
- package/lib/test/utilities/SharedTreeTests.d.ts.map +1 -1
- package/lib/test/utilities/SharedTreeTests.js +22 -22
- package/lib/test/utilities/SharedTreeTests.js.map +1 -1
- package/lib/test/utilities/SharedTreeVersioningTests.d.ts +1 -1
- package/lib/test/utilities/SharedTreeVersioningTests.d.ts.map +1 -1
- package/lib/test/utilities/SharedTreeVersioningTests.js +10 -10
- package/lib/test/utilities/SharedTreeVersioningTests.js.map +1 -1
- package/lib/test/utilities/SummaryLoadPerfTests.js +6 -6
- package/lib/test/utilities/SummaryLoadPerfTests.js.map +1 -1
- package/lib/test/utilities/SummarySizeTests.d.ts +1 -1
- package/lib/test/utilities/SummarySizeTests.d.ts.map +1 -1
- package/lib/test/utilities/SummarySizeTests.js +5 -5
- package/lib/test/utilities/SummarySizeTests.js.map +1 -1
- package/lib/test/utilities/TestNode.d.ts +6 -6
- package/lib/test/utilities/TestNode.d.ts.map +1 -1
- package/lib/test/utilities/TestNode.js +5 -5
- package/lib/test/utilities/TestNode.js.map +1 -1
- package/lib/test/utilities/TestUtilities.d.ts +12 -12
- package/lib/test/utilities/TestUtilities.d.ts.map +1 -1
- package/lib/test/utilities/TestUtilities.js +18 -19
- package/lib/test/utilities/TestUtilities.js.map +1 -1
- package/lib/test/utilities/UndoRedoTests.d.ts +2 -2
- package/lib/test/utilities/UndoRedoTests.d.ts.map +1 -1
- package/lib/test/utilities/UndoRedoTests.js +7 -7
- package/lib/test/utilities/UndoRedoTests.js.map +1 -1
- package/package.json +57 -31
- package/src/ChangeCompression.ts +7 -7
- package/src/ChangeTypes.ts +5 -5
- package/src/Checkout.ts +13 -13
- package/src/Common.ts +2 -2
- package/src/EagerCheckout.ts +3 -3
- package/src/EditLog.ts +6 -7
- package/src/EditUtilities.ts +10 -10
- package/src/Forest.ts +4 -4
- package/src/HistoryEditFactory.ts +11 -11
- package/src/IdConversion.ts +4 -4
- package/src/InitialTree.ts +3 -3
- package/src/LazyCheckout.ts +5 -5
- package/src/LogViewer.ts +8 -8
- package/src/MergeHealth.ts +6 -6
- package/src/NodeIdUtilities.ts +4 -4
- package/src/PayloadUtilities.ts +1 -1
- package/src/ReconciliationPath.ts +3 -3
- package/src/RevisionValueCache.ts +1 -1
- package/src/RevisionView.ts +7 -7
- package/src/SerializationUtilities.ts +5 -5
- package/src/SharedTree.ts +34 -54
- package/src/SharedTreeEncoder.ts +15 -15
- package/src/StringInterner.ts +2 -2
- package/src/Summary.ts +5 -5
- package/src/SummaryBackCompatibility.ts +10 -5
- package/src/SummaryTestUtilities.ts +3 -3
- package/src/Transaction.ts +8 -8
- package/src/TransactionInternal.ts +8 -8
- package/src/TreeCompressor.ts +6 -6
- package/src/TreeNodeHandle.ts +4 -4
- package/src/TreeView.ts +4 -4
- package/src/TreeViewUtilities.ts +3 -3
- package/src/UndoRedoHandler.ts +4 -4
- package/src/UuidUtilities.ts +2 -2
- package/src/id-compressor/AppendOnlySortedMap.ts +1 -1
- package/src/id-compressor/IdCompressor.ts +8 -8
- package/src/id-compressor/IdRange.ts +1 -1
- package/src/id-compressor/NumericUuid.ts +3 -3
- package/src/id-compressor/SessionIdNormalizer.ts +4 -4
- package/src/id-compressor/index.ts +4 -4
- package/src/id-compressor/persisted-types/0.0.1.ts +1 -1
- package/src/id-compressor/persisted-types/index.ts +1 -1
- package/src/index.ts +29 -29
- package/src/migration-shim/migrationDeltaHandler.ts +9 -10
- package/src/migration-shim/migrationShim.ts +7 -5
- package/src/migration-shim/migrationShimFactory.ts +4 -1
- package/src/migration-shim/sharedTreeDeltaHandler.ts +7 -6
- package/src/migration-shim/types.ts +1 -1
- package/src/persisted-types/0.0.2.ts +1 -1
- package/src/persisted-types/0.1.1.ts +4 -4
- package/src/persisted-types/index.ts +2 -2
- package/tsconfig.esnext.json +1 -2
- package/tsconfig.json +3 -0
- package/lib/test/Attach.tests.d.ts +0 -6
- package/lib/test/Attach.tests.d.ts.map +0 -1
- package/lib/test/Attach.tests.js +0 -52
- package/lib/test/Attach.tests.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-experimental/tree",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.2.0.0",
|
|
4
4
|
"description": "Distributed tree",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -11,20 +11,43 @@
|
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"author": "Microsoft and contributors",
|
|
13
13
|
"sideEffects": false,
|
|
14
|
+
"type": "module",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"import": {
|
|
18
|
+
"types": "./lib/index.d.ts",
|
|
19
|
+
"default": "./lib/index.js"
|
|
20
|
+
},
|
|
21
|
+
"require": {
|
|
22
|
+
"types": "./dist/index.d.ts",
|
|
23
|
+
"default": "./dist/index.js"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"./test/EditLog": {
|
|
27
|
+
"import": {
|
|
28
|
+
"types": "./lib/EditLog.d.ts",
|
|
29
|
+
"default": "./lib/EditLog.js"
|
|
30
|
+
},
|
|
31
|
+
"require": {
|
|
32
|
+
"types": "./dist/EditLog.d.ts",
|
|
33
|
+
"default": "./dist/EditLog.js"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
14
37
|
"main": "dist/index.js",
|
|
15
|
-
"module": "lib/index.js",
|
|
16
38
|
"types": "dist/index.d.ts",
|
|
17
39
|
"dependencies": {
|
|
18
|
-
"@fluid-internal/client-utils": ">=2.0.0-rc.
|
|
19
|
-
"@fluidframework/container-definitions": ">=2.0.0-rc.
|
|
20
|
-
"@fluidframework/core-interfaces": ">=2.0.0-rc.
|
|
21
|
-
"@fluidframework/core-utils": ">=2.0.0-rc.
|
|
22
|
-
"@fluidframework/datastore-definitions": ">=2.0.0-rc.
|
|
23
|
-
"@fluidframework/
|
|
24
|
-
"@fluidframework/
|
|
25
|
-
"@fluidframework/
|
|
26
|
-
"@fluidframework/
|
|
27
|
-
"@fluidframework/
|
|
40
|
+
"@fluid-internal/client-utils": ">=2.0.0-rc.2.0.0 <2.0.0-rc.2.1.0",
|
|
41
|
+
"@fluidframework/container-definitions": ">=2.0.0-rc.2.0.0 <2.0.0-rc.2.1.0",
|
|
42
|
+
"@fluidframework/core-interfaces": ">=2.0.0-rc.2.0.0 <2.0.0-rc.2.1.0",
|
|
43
|
+
"@fluidframework/core-utils": ">=2.0.0-rc.2.0.0 <2.0.0-rc.2.1.0",
|
|
44
|
+
"@fluidframework/datastore-definitions": ">=2.0.0-rc.2.0.0 <2.0.0-rc.2.1.0",
|
|
45
|
+
"@fluidframework/id-compressor": ">=2.0.0-rc.2.0.0 <2.0.0-rc.2.1.0",
|
|
46
|
+
"@fluidframework/protocol-definitions": "^3.2.0",
|
|
47
|
+
"@fluidframework/runtime-definitions": ">=2.0.0-rc.2.0.0 <2.0.0-rc.2.1.0",
|
|
48
|
+
"@fluidframework/shared-object-base": ">=2.0.0-rc.2.0.0 <2.0.0-rc.2.1.0",
|
|
49
|
+
"@fluidframework/telemetry-utils": ">=2.0.0-rc.2.0.0 <2.0.0-rc.2.1.0",
|
|
50
|
+
"@fluidframework/tree": ">=2.0.0-rc.2.0.0 <2.0.0-rc.2.1.0",
|
|
28
51
|
"@tylerbu/sorted-btree-es6": "^1.8.0",
|
|
29
52
|
"buffer": "^6.0.3",
|
|
30
53
|
"denque": "^1.5.1",
|
|
@@ -32,31 +55,33 @@
|
|
|
32
55
|
"uuid": "^9.0.0"
|
|
33
56
|
},
|
|
34
57
|
"devDependencies": {
|
|
35
|
-
"@
|
|
36
|
-
"@fluid-
|
|
58
|
+
"@arethetypeswrong/cli": "^0.13.3",
|
|
59
|
+
"@fluid-internal/mocha-test-setup": ">=2.0.0-rc.2.0.0 <2.0.0-rc.2.1.0",
|
|
60
|
+
"@fluid-private/stochastic-test-utils": ">=2.0.0-rc.2.0.0 <2.0.0-rc.2.1.0",
|
|
61
|
+
"@fluid-private/test-drivers": ">=2.0.0-rc.2.0.0 <2.0.0-rc.2.1.0",
|
|
37
62
|
"@fluid-tools/benchmark": "^0.48.0",
|
|
38
63
|
"@fluidframework/build-common": "^2.0.3",
|
|
39
|
-
"@fluidframework/build-tools": "^0.
|
|
40
|
-
"@fluidframework/container-
|
|
41
|
-
"@fluidframework/container-
|
|
42
|
-
"@fluidframework/
|
|
43
|
-
"@fluidframework/
|
|
44
|
-
"@fluidframework/runtime-utils": ">=2.0.0-rc.
|
|
45
|
-
"@fluidframework/test-
|
|
46
|
-
"@fluidframework/test-
|
|
47
|
-
"@fluidframework/
|
|
48
|
-
"@
|
|
49
|
-
"@microsoft/api-extractor": "^7.38.3",
|
|
64
|
+
"@fluidframework/build-tools": "^0.34.0",
|
|
65
|
+
"@fluidframework/container-definitions": ">=2.0.0-rc.2.0.0 <2.0.0-rc.2.1.0",
|
|
66
|
+
"@fluidframework/container-loader": ">=2.0.0-rc.2.0.0 <2.0.0-rc.2.1.0",
|
|
67
|
+
"@fluidframework/container-runtime": ">=2.0.0-rc.2.0.0 <2.0.0-rc.2.1.0",
|
|
68
|
+
"@fluidframework/eslint-config-fluid": "^4.0.0",
|
|
69
|
+
"@fluidframework/runtime-utils": ">=2.0.0-rc.2.0.0 <2.0.0-rc.2.1.0",
|
|
70
|
+
"@fluidframework/test-runtime-utils": ">=2.0.0-rc.2.0.0 <2.0.0-rc.2.1.0",
|
|
71
|
+
"@fluidframework/test-utils": ">=2.0.0-rc.2.0.0 <2.0.0-rc.2.1.0",
|
|
72
|
+
"@fluidframework/undo-redo": ">=2.0.0-rc.2.0.0 <2.0.0-rc.2.1.0",
|
|
73
|
+
"@microsoft/api-extractor": "^7.42.3",
|
|
50
74
|
"@types/chai": "^4.0.0",
|
|
51
75
|
"@types/lru-cache": "^5.1.0",
|
|
52
76
|
"@types/mocha": "^9.1.1",
|
|
53
77
|
"@types/uuid": "^9.0.2",
|
|
54
78
|
"c8": "^8.0.1",
|
|
55
79
|
"chai": "^4.2.0",
|
|
80
|
+
"copyfiles": "^2.4.1",
|
|
56
81
|
"cross-env": "^7.0.3",
|
|
57
82
|
"easy-table": "^1.1.1",
|
|
58
83
|
"env-cmd": "^10.1.0",
|
|
59
|
-
"eslint": "~8.
|
|
84
|
+
"eslint": "~8.55.0",
|
|
60
85
|
"eslint-config-prettier": "~9.0.0",
|
|
61
86
|
"mocha": "^10.2.0",
|
|
62
87
|
"mocha-json-output-reporter": "^2.0.1",
|
|
@@ -75,6 +100,7 @@
|
|
|
75
100
|
"build:compile": "fluid-build . --task compile",
|
|
76
101
|
"build:docs": "api-extractor run --local",
|
|
77
102
|
"build:esnext": "tsc --project ./tsconfig.esnext.json",
|
|
103
|
+
"check:are-the-types-wrong": "attw --pack . --entrypoints .",
|
|
78
104
|
"check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
|
|
79
105
|
"ci:build:docs": "api-extractor run",
|
|
80
106
|
"clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
|
|
@@ -83,16 +109,16 @@
|
|
|
83
109
|
"format": "npm run prettier:fix",
|
|
84
110
|
"lint": "npm run prettier && npm run check:release-tags && npm run eslint",
|
|
85
111
|
"lint:fix": "npm run prettier:fix && npm run eslint:fix",
|
|
86
|
-
"perf": "cross-env FLUID_TEST_VERBOSE=1 mocha \"dist/**/*.tests.js\" --node-option unhandled-rejections=strict,expose-gc --exit -r node_modules/@
|
|
112
|
+
"perf": "cross-env FLUID_TEST_VERBOSE=1 mocha \"dist/**/*.tests.js\" --node-option unhandled-rejections=strict,expose-gc --exit -r node_modules/@fluid-internal/mocha-test-setup --perfMode --fgrep @Benchmark --reporter @fluid-tools/benchmark/dist/MochaReporter.js --timeout 30000",
|
|
87
113
|
"perf:measure": "npm run perf -- --fgrep @Measurement",
|
|
88
114
|
"prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
|
|
89
115
|
"prettier:fix": "prettier --write . --cache --ignore-path ../../../.prettierignore",
|
|
90
116
|
"test": "npm run test:mocha",
|
|
91
|
-
"test:benchmark:report": "mocha \"dist/**/*.tests.js\" --node-option unhandled-rejections=strict,expose-gc --exit --perfMode --fgrep @Benchmark -r node_modules/@
|
|
117
|
+
"test:benchmark:report": "mocha \"dist/**/*.tests.js\" --node-option unhandled-rejections=strict,expose-gc --exit --perfMode --fgrep @Benchmark -r node_modules/@fluid-internal/mocha-test-setup --reporter @fluid-tools/benchmark/dist/MochaReporter.js --timeout 60000",
|
|
92
118
|
"test:coverage": "c8 npm test",
|
|
93
|
-
"test:mocha": "mocha \"dist/**/*.tests.js\" --exit -r node_modules/@
|
|
119
|
+
"test:mocha": "mocha \"dist/**/*.tests.js\" --exit -r node_modules/@fluid-internal/mocha-test-setup",
|
|
94
120
|
"test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
|
|
95
|
-
"test:stress": "cross-env FUZZ_TEST_COUNT=10 FUZZ_STRESS_RUN=true mocha \"dist/**/*.fuzz.tests.js\" --exit -r @
|
|
96
|
-
"tsc": "tsc"
|
|
121
|
+
"test:stress": "cross-env FUZZ_TEST_COUNT=10 FUZZ_STRESS_RUN=true mocha \"dist/**/*.fuzz.tests.js\" --exit -r @fluid-internal/mocha-test-setup",
|
|
122
|
+
"tsc": "fluid-tsc commonjs --project ./tsconfig.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist"
|
|
97
123
|
}
|
|
98
124
|
}
|
package/src/ChangeCompression.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { DetachedSequenceId, NodeId, OpSpaceNodeId } from './Identifiers';
|
|
6
|
+
import { DetachedSequenceId, NodeId, OpSpaceNodeId } from './Identifiers.js';
|
|
7
7
|
import {
|
|
8
8
|
BuildInternal,
|
|
9
9
|
BuildNodeInternal,
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
DetachInternal,
|
|
17
17
|
SetValueInternal,
|
|
18
18
|
ConstraintInternal,
|
|
19
|
-
} from './persisted-types';
|
|
20
|
-
import { ContextualizedNodeIdNormalizer } from './NodeIdUtilities';
|
|
21
|
-
import { copyPropertyIfDefined, fail, Mutable, ReplaceRecursive } from './Common';
|
|
22
|
-
import { TreeCompressor } from './TreeCompressor';
|
|
23
|
-
import { StringInterner } from './StringInterner';
|
|
24
|
-
import { convertStablePlaceIds, convertStableRangeIds } from './IdConversion';
|
|
19
|
+
} from './persisted-types/index.js';
|
|
20
|
+
import { ContextualizedNodeIdNormalizer } from './NodeIdUtilities.js';
|
|
21
|
+
import { copyPropertyIfDefined, fail, Mutable, ReplaceRecursive } from './Common.js';
|
|
22
|
+
import { TreeCompressor } from './TreeCompressor.js';
|
|
23
|
+
import { StringInterner } from './StringInterner.js';
|
|
24
|
+
import { convertStablePlaceIds, convertStableRangeIds } from './IdConversion.js';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Encapsulates knowledge of how to compress/decompress a change into a compressed change
|
package/src/ChangeTypes.ts
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { assert } from '@fluidframework/core-utils';
|
|
7
|
-
import { NodeId, TraitLabel, UuidString } from './Identifiers';
|
|
8
|
-
import { assertNotUndefined } from './Common';
|
|
9
|
-
import { ConstraintEffect, NodeData, Payload, Side, TreeNodeSequence } from './persisted-types';
|
|
10
|
-
import { TraitLocation } from './TreeView';
|
|
11
|
-
import { getNodeId } from './NodeIdUtilities';
|
|
7
|
+
import { NodeId, TraitLabel, UuidString } from './Identifiers.js';
|
|
8
|
+
import { assertNotUndefined } from './Common.js';
|
|
9
|
+
import { ConstraintEffect, NodeData, Payload, Side, TreeNodeSequence } from './persisted-types/index.js';
|
|
10
|
+
import { TraitLocation } from './TreeView.js';
|
|
11
|
+
import { getNodeId } from './NodeIdUtilities.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* An object which may have traits with children of the given type underneath it
|
package/src/Checkout.ts
CHANGED
|
@@ -5,18 +5,18 @@
|
|
|
5
5
|
|
|
6
6
|
import { assert } from '@fluidframework/core-utils';
|
|
7
7
|
import { EventEmitterWithErrorHandling, ITelemetryLoggerExt, createChildLogger } from '@fluidframework/telemetry-utils';
|
|
8
|
-
import { IDisposable, IErrorEvent,
|
|
9
|
-
import { assertWithMessage, fail, RestOrArray, unwrapRestOrArray } from './Common';
|
|
10
|
-
import { EditId } from './Identifiers';
|
|
11
|
-
import { CachingLogViewer } from './LogViewer';
|
|
12
|
-
import { TreeView } from './TreeView';
|
|
13
|
-
import { RevisionView } from './RevisionView';
|
|
14
|
-
import { EditCommittedHandler, SharedTree } from './SharedTree';
|
|
15
|
-
import { EditingResult, GenericTransaction, TransactionInternal, ValidEditingResult } from './TransactionInternal';
|
|
16
|
-
import { ChangeInternal, Edit, EditStatus } from './persisted-types';
|
|
17
|
-
import { SharedTreeEvent } from './EventTypes';
|
|
18
|
-
import { newEditId } from './EditUtilities';
|
|
19
|
-
import { Change } from './ChangeTypes';
|
|
8
|
+
import { IDisposable, IErrorEvent, ITelemetryBaseProperties } from '@fluidframework/core-interfaces';
|
|
9
|
+
import { assertWithMessage, fail, RestOrArray, unwrapRestOrArray } from './Common.js';
|
|
10
|
+
import { EditId } from './Identifiers.js';
|
|
11
|
+
import { CachingLogViewer } from './LogViewer.js';
|
|
12
|
+
import { TreeView } from './TreeView.js';
|
|
13
|
+
import { RevisionView } from './RevisionView.js';
|
|
14
|
+
import { EditCommittedHandler, SharedTree } from './SharedTree.js';
|
|
15
|
+
import { EditingResult, GenericTransaction, TransactionInternal, ValidEditingResult } from './TransactionInternal.js';
|
|
16
|
+
import { ChangeInternal, Edit, EditStatus } from './persisted-types/index.js';
|
|
17
|
+
import { SharedTreeEvent } from './EventTypes.js';
|
|
18
|
+
import { newEditId } from './EditUtilities.js';
|
|
19
|
+
import { Change } from './ChangeTypes.js';
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* An event emitted by a `Checkout` to indicate a state change. See {@link ICheckoutEvents} for event argument information.
|
|
@@ -197,7 +197,7 @@ export abstract class Checkout extends EventEmitterWithErrorHandling<ICheckoutEv
|
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
const { failure } = result as { failure: TransactionInternal.Failure };
|
|
200
|
-
const additionalProps:
|
|
200
|
+
const additionalProps: ITelemetryBaseProperties = {};
|
|
201
201
|
switch (failure.kind) {
|
|
202
202
|
case TransactionInternal.FailureKind.BadPlace:
|
|
203
203
|
additionalProps.placeFailure = failure.placeFailure;
|
package/src/Common.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ITelemetryBaseEvent,
|
|
6
|
+
import { ITelemetryBaseEvent, ITelemetryBaseProperties } from '@fluidframework/core-interfaces';
|
|
7
7
|
import { BTree } from '@tylerbu/sorted-btree-es6';
|
|
8
8
|
|
|
9
9
|
const defaultFailMessage = 'Assertion failed';
|
|
@@ -21,7 +21,7 @@ export const sharedTreeAssertionErrorType = 'SharedTreeAssertion';
|
|
|
21
21
|
/**
|
|
22
22
|
* Telemetry properties decorated on all SharedTree events.
|
|
23
23
|
*/
|
|
24
|
-
export interface SharedTreeTelemetryProperties extends
|
|
24
|
+
export interface SharedTreeTelemetryProperties extends ITelemetryBaseProperties {
|
|
25
25
|
readonly isSharedTreeEvent: true;
|
|
26
26
|
}
|
|
27
27
|
|
package/src/EagerCheckout.ts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { Checkout } from './Checkout';
|
|
7
|
-
import { RevisionView } from './RevisionView';
|
|
8
|
-
import { EditCommittedEventArguments, SharedTree } from './SharedTree';
|
|
6
|
+
import { Checkout } from './Checkout.js';
|
|
7
|
+
import { RevisionView } from './RevisionView.js';
|
|
8
|
+
import { EditCommittedEventArguments, SharedTree } from './SharedTree.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Checkout that always stays up to date with the SharedTree.
|
package/src/EditLog.ts
CHANGED
|
@@ -8,11 +8,11 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
8
8
|
import { assert, compareArrays } from '@fluidframework/core-utils';
|
|
9
9
|
import type { IEvent } from '@fluidframework/core-interfaces';
|
|
10
10
|
import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
|
|
11
|
-
import { fail } from './Common';
|
|
12
|
-
import type { EditId } from './Identifiers';
|
|
13
|
-
import type { StringInterner } from './StringInterner';
|
|
14
|
-
import { Edit, EditLogSummary, EditWithoutId, FluidEditHandle } from './persisted-types';
|
|
15
|
-
import type { ChangeCompressor } from './ChangeCompression';
|
|
11
|
+
import { fail } from './Common.js';
|
|
12
|
+
import type { EditId } from './Identifiers.js';
|
|
13
|
+
import type { StringInterner } from './StringInterner.js';
|
|
14
|
+
import { Edit, EditLogSummary, EditWithoutId, FluidEditHandle } from './persisted-types/index.js';
|
|
15
|
+
import type { ChangeCompressor } from './ChangeCompression.js';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* An ordered set of Edits associated with a SharedTree.
|
|
@@ -579,13 +579,12 @@ export class EditLog<TChange = unknown> extends TypedEventEmitter<IEditLogEvents
|
|
|
579
579
|
|
|
580
580
|
/**
|
|
581
581
|
* @returns the summary of this `OrderedEditSet` that can be used to reconstruct the edit set.
|
|
582
|
-
* @internal
|
|
583
582
|
*/
|
|
584
583
|
public getEditLogSummary(): EditLogSummary<TChange, FluidEditHandle>;
|
|
584
|
+
|
|
585
585
|
/**
|
|
586
586
|
* @param compressEdit - a function which compresses edits
|
|
587
587
|
* @returns the summary of this `OrderedEditSet` that can be used to reconstruct the edit set.
|
|
588
|
-
* @internal
|
|
589
588
|
*/
|
|
590
589
|
public getEditLogSummary<TCompressedChange>(
|
|
591
590
|
compressEdit: (edit: Pick<Edit<TChange>, 'changes'>) => Pick<Edit<TCompressedChange>, 'changes'>
|
package/src/EditUtilities.ts
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
import { v4 as uuidv4 } from 'uuid';
|
|
7
7
|
import { compareArrays } from '@fluidframework/core-utils';
|
|
8
|
-
import { copyPropertyIfDefined, fail, Mutable } from './Common';
|
|
9
|
-
import { Definition, DetachedSequenceId, EditId, NodeId, StableNodeId, TraitLabel } from './Identifiers';
|
|
10
|
-
import { NodeIdContext, NodeIdConverter } from './NodeIdUtilities';
|
|
8
|
+
import { copyPropertyIfDefined, fail, Mutable } from './Common.js';
|
|
9
|
+
import { Definition, DetachedSequenceId, EditId, NodeId, StableNodeId, TraitLabel } from './Identifiers.js';
|
|
10
|
+
import { NodeIdContext, NodeIdConverter } from './NodeIdUtilities.js';
|
|
11
11
|
import {
|
|
12
12
|
BuildNodeInternal,
|
|
13
13
|
ChangeInternal,
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
TraitMap,
|
|
24
24
|
TreeNode,
|
|
25
25
|
TreeNodeSequence,
|
|
26
|
-
} from './persisted-types';
|
|
27
|
-
import { TraitLocation, TreeView } from './TreeView';
|
|
28
|
-
import { BuildNode, BuildTreeNode, Change, HasVariadicTraits, StablePlace, StableRange } from './ChangeTypes';
|
|
29
|
-
import { placeFromStablePlace, rangeFromStableRange } from './TreeViewUtilities';
|
|
30
|
-
import { iterateChildren, TransactionView } from './RevisionView';
|
|
31
|
-
import { getChangeNode_0_0_2FromView } from './SerializationUtilities';
|
|
32
|
-
import { comparePayloads } from './PayloadUtilities';
|
|
26
|
+
} from './persisted-types/index.js';
|
|
27
|
+
import { TraitLocation, TreeView } from './TreeView.js';
|
|
28
|
+
import { BuildNode, BuildTreeNode, Change, HasVariadicTraits, StablePlace, StableRange } from './ChangeTypes.js';
|
|
29
|
+
import { placeFromStablePlace, rangeFromStableRange } from './TreeViewUtilities.js';
|
|
30
|
+
import { iterateChildren, TransactionView } from './RevisionView.js';
|
|
31
|
+
import { getChangeNode_0_0_2FromView } from './SerializationUtilities.js';
|
|
32
|
+
import { comparePayloads } from './PayloadUtilities.js';
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* Functions for constructing and comparing Edits.
|
package/src/Forest.ts
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
import { BTree } from '@tylerbu/sorted-btree-es6';
|
|
7
7
|
import { assert } from '@fluidframework/core-utils';
|
|
8
|
-
import { fail, copyPropertyIfDefined, compareBtrees, compareFiniteNumbers } from './Common';
|
|
9
|
-
import { NodeId, TraitLabel } from './Identifiers';
|
|
10
|
-
import { comparePayloads } from './PayloadUtilities';
|
|
11
|
-
import { NodeData, Payload } from './persisted-types';
|
|
8
|
+
import { fail, copyPropertyIfDefined, compareBtrees, compareFiniteNumbers } from './Common.js';
|
|
9
|
+
import { NodeId, TraitLabel } from './Identifiers.js';
|
|
10
|
+
import { comparePayloads } from './PayloadUtilities.js';
|
|
11
|
+
import { NodeData, Payload } from './persisted-types/index.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* A node that can be contained within a Forest
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
import { assert } from '@fluidframework/core-utils';
|
|
7
7
|
import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
|
|
8
|
-
import { DetachedSequenceId, isDetachedSequenceId, NodeId } from './Identifiers';
|
|
9
|
-
import { fail } from './Common';
|
|
10
|
-
import { rangeFromStableRange } from './TreeViewUtilities';
|
|
8
|
+
import { DetachedSequenceId, isDetachedSequenceId, NodeId } from './Identifiers.js';
|
|
9
|
+
import { fail } from './Common.js';
|
|
10
|
+
import { rangeFromStableRange } from './TreeViewUtilities.js';
|
|
11
11
|
import {
|
|
12
12
|
ChangeInternal,
|
|
13
13
|
ChangeTypeInternal,
|
|
@@ -18,13 +18,13 @@ import {
|
|
|
18
18
|
Side,
|
|
19
19
|
StableRangeInternal,
|
|
20
20
|
EditStatus,
|
|
21
|
-
} from './persisted-types';
|
|
22
|
-
import { TransactionInternal } from './TransactionInternal';
|
|
23
|
-
import { RangeValidationResultKind, validateStableRange } from './EditUtilities';
|
|
24
|
-
import { StablePlace } from './ChangeTypes';
|
|
25
|
-
import { RevisionView } from './RevisionView';
|
|
26
|
-
import { TreeView } from './TreeView';
|
|
27
|
-
import { getChangeNodeFromViewNode } from './SerializationUtilities';
|
|
21
|
+
} from './persisted-types/index.js';
|
|
22
|
+
import { TransactionInternal } from './TransactionInternal.js';
|
|
23
|
+
import { RangeValidationResultKind, validateStableRange } from './EditUtilities.js';
|
|
24
|
+
import { StablePlace } from './ChangeTypes.js';
|
|
25
|
+
import { RevisionView } from './RevisionView.js';
|
|
26
|
+
import { TreeView } from './TreeView.js';
|
|
27
|
+
import { getChangeNodeFromViewNode } from './SerializationUtilities.js';
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Events emitted from the history edit factory
|
|
@@ -53,7 +53,7 @@ export function revert(
|
|
|
53
53
|
changes: readonly ChangeInternal[],
|
|
54
54
|
before: RevisionView,
|
|
55
55
|
logger?: ITelemetryLoggerExt,
|
|
56
|
-
emit?: (event: string
|
|
56
|
+
emit?: (event: string, ...args: any[]) => void
|
|
57
57
|
): ChangeInternal[] | undefined {
|
|
58
58
|
const result: ChangeInternal[] = [];
|
|
59
59
|
|
package/src/IdConversion.ts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { copyPropertyIfDefined, fail, Mutable, ReplaceRecursive } from './Common';
|
|
7
|
-
import { convertTreeNodes } from './EditUtilities';
|
|
8
|
-
import { DetachedSequenceId, isDetachedSequenceId, NodeId } from './Identifiers';
|
|
6
|
+
import { copyPropertyIfDefined, fail, Mutable, ReplaceRecursive } from './Common.js';
|
|
7
|
+
import { convertTreeNodes } from './EditUtilities.js';
|
|
8
|
+
import { DetachedSequenceId, isDetachedSequenceId, NodeId } from './Identifiers.js';
|
|
9
9
|
import {
|
|
10
10
|
BuildNodeInternal,
|
|
11
11
|
ChangeInternal,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
StablePlaceInternal,
|
|
18
18
|
StableRangeInternal,
|
|
19
19
|
TreeNode,
|
|
20
|
-
} from './persisted-types';
|
|
20
|
+
} from './persisted-types/index.js';
|
|
21
21
|
|
|
22
22
|
export function convertEditIds<IdFrom, IdTo>(
|
|
23
23
|
edit: ReplaceRecursive<Edit<ChangeInternal>, NodeId, IdFrom>,
|
package/src/InitialTree.ts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type { Definition, StableNodeId } from './Identifiers';
|
|
7
|
-
import { legacySharedTreeInitialTreeId } from './id-compressor';
|
|
8
|
-
import { ChangeNode_0_0_2 } from './persisted-types';
|
|
6
|
+
import type { Definition, StableNodeId } from './Identifiers.js';
|
|
7
|
+
import { legacySharedTreeInitialTreeId } from './id-compressor/index.js';
|
|
8
|
+
import { ChangeNode_0_0_2 } from './persisted-types/index.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* The initial tree.
|
package/src/LazyCheckout.ts
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { Checkout } from './Checkout';
|
|
7
|
-
import { EditId } from './Identifiers';
|
|
8
|
-
import { RevisionView } from './RevisionView';
|
|
9
|
-
import { EditCommittedEventArguments, SharedTree } from './SharedTree';
|
|
10
|
-
import { ValidEditingResult } from './TransactionInternal';
|
|
6
|
+
import { Checkout } from './Checkout.js';
|
|
7
|
+
import { EditId } from './Identifiers.js';
|
|
8
|
+
import { RevisionView } from './RevisionView.js';
|
|
9
|
+
import { EditCommittedEventArguments, SharedTree } from './SharedTree.js';
|
|
10
|
+
import { ValidEditingResult } from './TransactionInternal.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Checkout that only updates its view of the tree when explicitly requested.
|
package/src/LogViewer.ts
CHANGED
|
@@ -7,14 +7,14 @@ import Denque from 'denque';
|
|
|
7
7
|
import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
8
8
|
import { IEvent } from '@fluidframework/core-interfaces';
|
|
9
9
|
import { assert } from '@fluidframework/core-utils';
|
|
10
|
-
import { fail, noop } from './Common';
|
|
11
|
-
import { EditLog, SequencedOrderedEditId } from './EditLog';
|
|
12
|
-
import { EditId } from './Identifiers';
|
|
13
|
-
import { Revision, RevisionValueCache } from './RevisionValueCache';
|
|
14
|
-
import { ReconciliationChange, ReconciliationEdit, ReconciliationPath } from './ReconciliationPath';
|
|
15
|
-
import { ChangeInternal, Edit, EditStatus } from './persisted-types';
|
|
16
|
-
import { RevisionView } from './RevisionView';
|
|
17
|
-
import { EditingResult, TransactionInternal } from './TransactionInternal';
|
|
10
|
+
import { fail, noop } from './Common.js';
|
|
11
|
+
import { EditLog, SequencedOrderedEditId } from './EditLog.js';
|
|
12
|
+
import { EditId } from './Identifiers.js';
|
|
13
|
+
import { Revision, RevisionValueCache } from './RevisionValueCache.js';
|
|
14
|
+
import { ReconciliationChange, ReconciliationEdit, ReconciliationPath } from './ReconciliationPath.js';
|
|
15
|
+
import { ChangeInternal, Edit, EditStatus } from './persisted-types/index.js';
|
|
16
|
+
import { RevisionView } from './RevisionView.js';
|
|
17
|
+
import { EditingResult, TransactionInternal } from './TransactionInternal.js';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Callback for when an edit is applied (meaning the result of applying it to a particular revision is computed).
|
package/src/MergeHealth.ts
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
|
|
7
|
-
import { assertNotUndefined, fail } from './Common';
|
|
8
|
-
import { PlaceValidationResult, RangeValidationResultKind } from './EditUtilities';
|
|
9
|
-
import { SharedTreeEvent } from './EventTypes';
|
|
10
|
-
import { EditStatus } from './persisted-types';
|
|
11
|
-
import { SequencedEditAppliedEventArguments, SharedTree } from './SharedTree';
|
|
12
|
-
import { TransactionInternal } from './TransactionInternal';
|
|
7
|
+
import { assertNotUndefined, fail } from './Common.js';
|
|
8
|
+
import { PlaceValidationResult, RangeValidationResultKind } from './EditUtilities.js';
|
|
9
|
+
import { SharedTreeEvent } from './EventTypes.js';
|
|
10
|
+
import { EditStatus } from './persisted-types/index.js';
|
|
11
|
+
import { SequencedEditAppliedEventArguments, SharedTree } from './SharedTree.js';
|
|
12
|
+
import { TransactionInternal } from './TransactionInternal.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Logs generic telemetry for failed sequenced edits.
|
package/src/NodeIdUtilities.ts
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { IdCompressor, isFinalId } from './id-compressor';
|
|
7
|
-
import { FinalNodeId, NodeId, OpSpaceNodeId, SessionId, StableNodeId } from './Identifiers';
|
|
8
|
-
import { NodeData } from './persisted-types';
|
|
9
|
-
import { assertWithMessage } from './Common';
|
|
6
|
+
import { IdCompressor, isFinalId } from './id-compressor/index.js';
|
|
7
|
+
import { FinalNodeId, NodeId, OpSpaceNodeId, SessionId, StableNodeId } from './Identifiers.js';
|
|
8
|
+
import { NodeData } from './persisted-types/index.js';
|
|
9
|
+
import { assertWithMessage } from './Common.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* An object which can generate node IDs and convert node IDs between compressed and stable variants
|
package/src/PayloadUtilities.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
7
7
|
import { compareArrays } from '@fluidframework/core-utils';
|
|
8
|
-
import { Payload } from './persisted-types';
|
|
8
|
+
import { Payload } from './persisted-types/index.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @returns true if two `Payloads` are identical.
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ChangeInternal } from './persisted-types';
|
|
7
|
-
import { TransactionView } from './RevisionView';
|
|
8
|
-
import { TreeView } from './TreeView';
|
|
6
|
+
import { ChangeInternal } from './persisted-types/index.js';
|
|
7
|
+
import { TransactionView } from './RevisionView.js';
|
|
8
|
+
import { TreeView } from './TreeView.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* The path of edits from the revision view where a change was meant to have been applied to the view where the edit that contains the
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { assert } from '@fluidframework/core-utils';
|
|
7
7
|
import { BTree } from '@tylerbu/sorted-btree-es6';
|
|
8
8
|
import LRU from 'lru-cache';
|
|
9
|
-
import { fail, compareFiniteNumbers } from './Common';
|
|
9
|
+
import { fail, compareFiniteNumbers } from './Common.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* A revision corresponds to an index in an `EditLog`.
|
package/src/RevisionView.ts
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { copyPropertyIfDefined, fail, Mutable, MutableMap } from './Common';
|
|
7
|
-
import { Forest } from './Forest';
|
|
8
|
-
import { NodeId, StableNodeId, TraitLabel } from './Identifiers';
|
|
9
|
-
import { NodeIdConverter } from './NodeIdUtilities';
|
|
10
|
-
import { Payload, TreeNode, TreeNodeSequence } from './persisted-types';
|
|
11
|
-
import { TreeView, TreeViewNode, TreeViewPlace, TreeViewRange } from './TreeView';
|
|
12
|
-
import { HasVariadicTraits } from './ChangeTypes';
|
|
6
|
+
import { copyPropertyIfDefined, fail, Mutable, MutableMap } from './Common.js';
|
|
7
|
+
import { Forest } from './Forest.js';
|
|
8
|
+
import { NodeId, StableNodeId, TraitLabel } from './Identifiers.js';
|
|
9
|
+
import { NodeIdConverter } from './NodeIdUtilities.js';
|
|
10
|
+
import { Payload, TreeNode, TreeNodeSequence } from './persisted-types/index.js';
|
|
11
|
+
import { TreeView, TreeViewNode, TreeViewPlace, TreeViewRange } from './TreeView.js';
|
|
12
|
+
import { HasVariadicTraits } from './ChangeTypes.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* An immutable view of a distributed tree.
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { copyPropertyIfDefined, memoizeGetter } from './Common';
|
|
7
|
-
import { NodeId, TraitLabel } from './Identifiers';
|
|
8
|
-
import { NodeIdConverter } from './NodeIdUtilities';
|
|
9
|
-
import { ChangeNode, ChangeNode_0_0_2, TraitMap } from './persisted-types';
|
|
10
|
-
import { TreeView } from './TreeView';
|
|
6
|
+
import { copyPropertyIfDefined, memoizeGetter } from './Common.js';
|
|
7
|
+
import { NodeId, TraitLabel } from './Identifiers.js';
|
|
8
|
+
import { NodeIdConverter } from './NodeIdUtilities.js';
|
|
9
|
+
import { ChangeNode, ChangeNode_0_0_2, TraitMap } from './persisted-types/index.js';
|
|
10
|
+
import { TreeView } from './TreeView.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Converts this tree view to an equivalent `ChangeNode`.
|