@fluidframework/tree 2.116.1 → 2.118.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 +202 -0
- package/api-report/tree.alpha.api.md +122 -31
- package/api-report/tree.beta.api.md +50 -9
- package/api-report/tree.legacy.beta.api.md +50 -9
- package/dist/codec/codec.d.ts +18 -0
- package/dist/codec/codec.d.ts.map +1 -1
- package/dist/codec/codec.js +18 -0
- package/dist/codec/codec.js.map +1 -1
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +3 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/rebase/index.d.ts +1 -1
- package/dist/core/rebase/index.d.ts.map +1 -1
- package/dist/core/rebase/index.js +2 -1
- package/dist/core/rebase/index.js.map +1 -1
- package/dist/core/rebase/types.d.ts +39 -2
- package/dist/core/rebase/types.d.ts.map +1 -1
- package/dist/core/rebase/types.js +37 -2
- package/dist/core/rebase/types.js.map +1 -1
- package/dist/core/rebase/utils.d.ts.map +1 -1
- package/dist/core/rebase/utils.js +1 -0
- package/dist/core/rebase/utils.js.map +1 -1
- package/dist/core/revertible.d.ts +62 -6
- package/dist/core/revertible.d.ts.map +1 -1
- package/dist/core/revertible.js.map +1 -1
- package/dist/entrypoints/alpha.d.ts +1 -1
- package/dist/entrypoints/alpha.d.ts.map +1 -1
- package/dist/entrypoints/alpha.js.map +1 -1
- package/dist/entrypoints/beta.d.ts +1 -1
- package/dist/entrypoints/beta.d.ts.map +1 -1
- package/dist/entrypoints/beta.js.map +1 -1
- package/dist/entrypoints/legacy.d.ts +1 -1
- package/dist/entrypoints/legacy.d.ts.map +1 -1
- package/dist/entrypoints/legacy.js.map +1 -1
- package/dist/feature-libraries/index.d.ts +1 -1
- package/dist/feature-libraries/index.js.map +1 -1
- package/dist/feature-libraries/indexing/types.d.ts +1 -1
- package/dist/feature-libraries/indexing/types.js.map +1 -1
- package/dist/feature-libraries/schemaChecker.d.ts +9 -19
- package/dist/feature-libraries/schemaChecker.d.ts.map +1 -1
- package/dist/feature-libraries/schemaChecker.js +130 -46
- package/dist/feature-libraries/schemaChecker.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.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/shared-tree/history.d.ts +22 -0
- package/dist/shared-tree/history.d.ts.map +1 -0
- package/dist/shared-tree/history.js +66 -0
- package/dist/shared-tree/history.js.map +1 -0
- package/dist/shared-tree/schematizingTreeView.d.ts +24 -9
- package/dist/shared-tree/schematizingTreeView.d.ts.map +1 -1
- package/dist/shared-tree/schematizingTreeView.js +61 -11
- package/dist/shared-tree/schematizingTreeView.js.map +1 -1
- package/dist/shared-tree/sharedTree.d.ts +3 -2
- package/dist/shared-tree/sharedTree.d.ts.map +1 -1
- package/dist/shared-tree/sharedTree.js +2 -0
- package/dist/shared-tree/sharedTree.js.map +1 -1
- package/dist/shared-tree/tree.js +1 -1
- package/dist/shared-tree/tree.js.map +1 -1
- package/dist/shared-tree/treeAlpha.d.ts +8 -20
- package/dist/shared-tree/treeAlpha.d.ts.map +1 -1
- package/dist/shared-tree/treeAlpha.js +9 -12
- package/dist/shared-tree/treeAlpha.js.map +1 -1
- package/dist/shared-tree/treeCheckout.d.ts +16 -9
- package/dist/shared-tree/treeCheckout.d.ts.map +1 -1
- package/dist/shared-tree/treeCheckout.js +122 -25
- package/dist/shared-tree/treeCheckout.js.map +1 -1
- package/dist/shared-tree/unhydratedTreeContext.d.ts +3 -2
- package/dist/shared-tree/unhydratedTreeContext.d.ts.map +1 -1
- package/dist/shared-tree/unhydratedTreeContext.js +3 -0
- package/dist/shared-tree/unhydratedTreeContext.js.map +1 -1
- package/dist/shared-tree-core/branch.d.ts +16 -2
- package/dist/shared-tree-core/branch.d.ts.map +1 -1
- package/dist/shared-tree-core/branch.js +20 -2
- package/dist/shared-tree-core/branch.js.map +1 -1
- package/dist/shared-tree-core/branchCommitCounter.d.ts +31 -0
- package/dist/shared-tree-core/branchCommitCounter.d.ts.map +1 -0
- package/dist/shared-tree-core/branchCommitCounter.js +79 -0
- package/dist/shared-tree-core/branchCommitCounter.js.map +1 -0
- package/dist/shared-tree-core/customMetadataCodec.d.ts +9 -0
- package/dist/shared-tree-core/customMetadataCodec.d.ts.map +1 -0
- package/dist/shared-tree-core/customMetadataCodec.js +37 -0
- package/dist/shared-tree-core/customMetadataCodec.js.map +1 -0
- package/dist/shared-tree-core/customMetadataFormat.d.ts +18 -0
- package/dist/shared-tree-core/customMetadataFormat.d.ts.map +1 -0
- package/dist/shared-tree-core/customMetadataFormat.js +15 -0
- package/dist/shared-tree-core/customMetadataFormat.js.map +1 -0
- package/dist/shared-tree-core/editManager.d.ts.map +1 -1
- package/dist/shared-tree-core/editManager.js +15 -3
- package/dist/shared-tree-core/editManager.js.map +1 -1
- package/dist/shared-tree-core/editManagerCodecs.d.ts.map +1 -1
- package/dist/shared-tree-core/editManagerCodecs.js +5 -0
- package/dist/shared-tree-core/editManagerCodecs.js.map +1 -1
- package/dist/shared-tree-core/editManagerCodecsCommons.d.ts +1 -1
- package/dist/shared-tree-core/editManagerCodecsCommons.d.ts.map +1 -1
- package/dist/shared-tree-core/editManagerCodecsCommons.js +17 -5
- package/dist/shared-tree-core/editManagerCodecsCommons.js.map +1 -1
- package/dist/shared-tree-core/editManagerCodecsV1toV4.d.ts.map +1 -1
- package/dist/shared-tree-core/editManagerCodecsV1toV4.js +4 -2
- package/dist/shared-tree-core/editManagerCodecsV1toV4.js.map +1 -1
- package/dist/shared-tree-core/editManagerCodecsVSharedBranches.d.ts.map +1 -1
- package/dist/shared-tree-core/editManagerCodecsVSharedBranches.js +2 -2
- package/dist/shared-tree-core/editManagerCodecsVSharedBranches.js.map +1 -1
- package/dist/shared-tree-core/editManagerFormatCommons.d.ts +17 -6
- package/dist/shared-tree-core/editManagerFormatCommons.d.ts.map +1 -1
- package/dist/shared-tree-core/editManagerFormatCommons.js +18 -8
- package/dist/shared-tree-core/editManagerFormatCommons.js.map +1 -1
- package/dist/shared-tree-core/editManagerFormatV1toV4.d.ts +7 -5
- package/dist/shared-tree-core/editManagerFormatV1toV4.d.ts.map +1 -1
- package/dist/shared-tree-core/editManagerFormatV1toV4.js +4 -3
- package/dist/shared-tree-core/editManagerFormatV1toV4.js.map +1 -1
- package/dist/shared-tree-core/editManagerFormatVSharedBranches.d.ts +4 -0
- package/dist/shared-tree-core/editManagerFormatVSharedBranches.d.ts.map +1 -1
- package/dist/shared-tree-core/editManagerFormatVSharedBranches.js +2 -2
- package/dist/shared-tree-core/editManagerFormatVSharedBranches.js.map +1 -1
- package/dist/shared-tree-core/index.d.ts +2 -1
- package/dist/shared-tree-core/index.d.ts.map +1 -1
- package/dist/shared-tree-core/index.js +3 -1
- package/dist/shared-tree-core/index.js.map +1 -1
- package/dist/shared-tree-core/messageCodecV1ToV4.d.ts +2 -2
- package/dist/shared-tree-core/messageCodecV1ToV4.d.ts.map +1 -1
- package/dist/shared-tree-core/messageCodecV1ToV4.js +12 -3
- package/dist/shared-tree-core/messageCodecV1ToV4.js.map +1 -1
- package/dist/shared-tree-core/messageCodecVSharedBranches.d.ts.map +1 -1
- package/dist/shared-tree-core/messageCodecVSharedBranches.js +8 -2
- package/dist/shared-tree-core/messageCodecVSharedBranches.js.map +1 -1
- package/dist/shared-tree-core/messageCodecs.d.ts.map +1 -1
- package/dist/shared-tree-core/messageCodecs.js +5 -0
- package/dist/shared-tree-core/messageCodecs.js.map +1 -1
- package/dist/shared-tree-core/messageFormat.d.ts +1 -0
- package/dist/shared-tree-core/messageFormat.d.ts.map +1 -1
- package/dist/shared-tree-core/messageFormat.js +6 -0
- package/dist/shared-tree-core/messageFormat.js.map +1 -1
- package/dist/shared-tree-core/messageFormatV1ToV4.d.ts +10 -3
- package/dist/shared-tree-core/messageFormatV1ToV4.d.ts.map +1 -1
- package/dist/shared-tree-core/messageFormatV1ToV4.js +10 -2
- package/dist/shared-tree-core/messageFormatV1ToV4.js.map +1 -1
- package/dist/shared-tree-core/messageFormatVSharedBranches.d.ts +7 -0
- package/dist/shared-tree-core/messageFormatVSharedBranches.d.ts.map +1 -1
- package/dist/shared-tree-core/messageFormatVSharedBranches.js +2 -0
- package/dist/shared-tree-core/messageFormatVSharedBranches.js.map +1 -1
- package/dist/shared-tree-core/sharedTreeCore.d.ts.map +1 -1
- package/dist/shared-tree-core/sharedTreeCore.js +4 -2
- package/dist/shared-tree-core/sharedTreeCore.js.map +1 -1
- package/dist/shared-tree-core/transaction.d.ts +9 -0
- package/dist/shared-tree-core/transaction.d.ts.map +1 -1
- package/dist/shared-tree-core/transaction.js +26 -4
- package/dist/shared-tree-core/transaction.js.map +1 -1
- package/dist/simple-tree/api/configuration.d.ts +4 -4
- package/dist/simple-tree/api/configuration.d.ts.map +1 -1
- package/dist/simple-tree/api/configuration.js.map +1 -1
- package/dist/simple-tree/api/discrepancies.d.ts +36 -3
- package/dist/simple-tree/api/discrepancies.d.ts.map +1 -1
- package/dist/simple-tree/api/discrepancies.js +40 -14
- package/dist/simple-tree/api/discrepancies.js.map +1 -1
- package/dist/simple-tree/api/index.d.ts +3 -2
- package/dist/simple-tree/api/index.d.ts.map +1 -1
- package/dist/simple-tree/api/index.js +3 -2
- package/dist/simple-tree/api/index.js.map +1 -1
- package/dist/simple-tree/api/schemaCompatibilityTester.d.ts +22 -3
- package/dist/simple-tree/api/schemaCompatibilityTester.d.ts.map +1 -1
- package/dist/simple-tree/api/schemaCompatibilityTester.js +140 -10
- package/dist/simple-tree/api/schemaCompatibilityTester.js.map +1 -1
- package/dist/simple-tree/api/transactionTypes.d.ts +28 -2
- package/dist/simple-tree/api/transactionTypes.d.ts.map +1 -1
- package/dist/simple-tree/api/transactionTypes.js.map +1 -1
- package/dist/simple-tree/api/tree.d.ts +353 -68
- package/dist/simple-tree/api/tree.d.ts.map +1 -1
- package/dist/simple-tree/api/tree.js.map +1 -1
- package/dist/simple-tree/core/toStored.d.ts +7 -0
- package/dist/simple-tree/core/toStored.d.ts.map +1 -1
- package/dist/simple-tree/core/toStored.js.map +1 -1
- package/dist/simple-tree/core/treeNodeValid.d.ts.map +1 -1
- package/dist/simple-tree/core/treeNodeValid.js +2 -2
- package/dist/simple-tree/core/treeNodeValid.js.map +1 -1
- package/dist/simple-tree/index.d.ts +1 -1
- package/dist/simple-tree/index.d.ts.map +1 -1
- package/dist/simple-tree/index.js +4 -3
- package/dist/simple-tree/index.js.map +1 -1
- package/dist/tableSchema.js +10 -10
- package/dist/tableSchema.js.map +1 -1
- package/docs/main/glossary.md +163 -0
- package/lib/codec/codec.d.ts +18 -0
- package/lib/codec/codec.d.ts.map +1 -1
- package/lib/codec/codec.js +18 -0
- package/lib/codec/codec.js.map +1 -1
- package/lib/core/index.d.ts +2 -2
- package/lib/core/index.d.ts.map +1 -1
- package/lib/core/index.js +1 -1
- package/lib/core/index.js.map +1 -1
- package/lib/core/rebase/index.d.ts +1 -1
- package/lib/core/rebase/index.d.ts.map +1 -1
- package/lib/core/rebase/index.js +1 -1
- package/lib/core/rebase/index.js.map +1 -1
- package/lib/core/rebase/types.d.ts +39 -2
- package/lib/core/rebase/types.d.ts.map +1 -1
- package/lib/core/rebase/types.js +35 -1
- package/lib/core/rebase/types.js.map +1 -1
- package/lib/core/rebase/utils.d.ts.map +1 -1
- package/lib/core/rebase/utils.js +1 -0
- package/lib/core/rebase/utils.js.map +1 -1
- package/lib/core/revertible.d.ts +62 -6
- package/lib/core/revertible.d.ts.map +1 -1
- package/lib/core/revertible.js.map +1 -1
- package/lib/entrypoints/alpha.d.ts +1 -1
- package/lib/entrypoints/alpha.d.ts.map +1 -1
- package/lib/entrypoints/alpha.js.map +1 -1
- package/lib/entrypoints/beta.d.ts +1 -1
- package/lib/entrypoints/beta.d.ts.map +1 -1
- package/lib/entrypoints/beta.js.map +1 -1
- package/lib/entrypoints/legacy.d.ts +1 -1
- package/lib/entrypoints/legacy.d.ts.map +1 -1
- package/lib/entrypoints/legacy.js.map +1 -1
- package/lib/feature-libraries/index.d.ts +1 -1
- package/lib/feature-libraries/index.js.map +1 -1
- package/lib/feature-libraries/indexing/types.d.ts +1 -1
- package/lib/feature-libraries/indexing/types.js.map +1 -1
- package/lib/feature-libraries/schemaChecker.d.ts +9 -19
- package/lib/feature-libraries/schemaChecker.d.ts.map +1 -1
- package/lib/feature-libraries/schemaChecker.js +133 -49
- package/lib/feature-libraries/schemaChecker.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.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/shared-tree/history.d.ts +22 -0
- package/lib/shared-tree/history.d.ts.map +1 -0
- package/lib/shared-tree/history.js +62 -0
- package/lib/shared-tree/history.js.map +1 -0
- package/lib/shared-tree/schematizingTreeView.d.ts +24 -9
- package/lib/shared-tree/schematizingTreeView.d.ts.map +1 -1
- package/lib/shared-tree/schematizingTreeView.js +62 -12
- package/lib/shared-tree/schematizingTreeView.js.map +1 -1
- package/lib/shared-tree/sharedTree.d.ts +3 -2
- package/lib/shared-tree/sharedTree.d.ts.map +1 -1
- package/lib/shared-tree/sharedTree.js +2 -0
- package/lib/shared-tree/sharedTree.js.map +1 -1
- package/lib/shared-tree/tree.js +1 -1
- package/lib/shared-tree/tree.js.map +1 -1
- package/lib/shared-tree/treeAlpha.d.ts +8 -20
- package/lib/shared-tree/treeAlpha.d.ts.map +1 -1
- package/lib/shared-tree/treeAlpha.js +9 -12
- package/lib/shared-tree/treeAlpha.js.map +1 -1
- package/lib/shared-tree/treeCheckout.d.ts +16 -9
- package/lib/shared-tree/treeCheckout.d.ts.map +1 -1
- package/lib/shared-tree/treeCheckout.js +123 -26
- package/lib/shared-tree/treeCheckout.js.map +1 -1
- package/lib/shared-tree/unhydratedTreeContext.d.ts +3 -2
- package/lib/shared-tree/unhydratedTreeContext.d.ts.map +1 -1
- package/lib/shared-tree/unhydratedTreeContext.js +3 -0
- package/lib/shared-tree/unhydratedTreeContext.js.map +1 -1
- package/lib/shared-tree-core/branch.d.ts +16 -2
- package/lib/shared-tree-core/branch.d.ts.map +1 -1
- package/lib/shared-tree-core/branch.js +20 -2
- package/lib/shared-tree-core/branch.js.map +1 -1
- package/lib/shared-tree-core/branchCommitCounter.d.ts +31 -0
- package/lib/shared-tree-core/branchCommitCounter.d.ts.map +1 -0
- package/lib/shared-tree-core/branchCommitCounter.js +75 -0
- package/lib/shared-tree-core/branchCommitCounter.js.map +1 -0
- package/lib/shared-tree-core/customMetadataCodec.d.ts +9 -0
- package/lib/shared-tree-core/customMetadataCodec.d.ts.map +1 -0
- package/lib/shared-tree-core/customMetadataCodec.js +32 -0
- package/lib/shared-tree-core/customMetadataCodec.js.map +1 -0
- package/lib/shared-tree-core/customMetadataFormat.d.ts +18 -0
- package/lib/shared-tree-core/customMetadataFormat.d.ts.map +1 -0
- package/lib/shared-tree-core/customMetadataFormat.js +11 -0
- package/lib/shared-tree-core/customMetadataFormat.js.map +1 -0
- package/lib/shared-tree-core/editManager.d.ts.map +1 -1
- package/lib/shared-tree-core/editManager.js +16 -4
- package/lib/shared-tree-core/editManager.js.map +1 -1
- package/lib/shared-tree-core/editManagerCodecs.d.ts.map +1 -1
- package/lib/shared-tree-core/editManagerCodecs.js +5 -0
- package/lib/shared-tree-core/editManagerCodecs.js.map +1 -1
- package/lib/shared-tree-core/editManagerCodecsCommons.d.ts +1 -1
- package/lib/shared-tree-core/editManagerCodecsCommons.d.ts.map +1 -1
- package/lib/shared-tree-core/editManagerCodecsCommons.js +17 -5
- package/lib/shared-tree-core/editManagerCodecsCommons.js.map +1 -1
- package/lib/shared-tree-core/editManagerCodecsV1toV4.d.ts.map +1 -1
- package/lib/shared-tree-core/editManagerCodecsV1toV4.js +4 -2
- package/lib/shared-tree-core/editManagerCodecsV1toV4.js.map +1 -1
- package/lib/shared-tree-core/editManagerCodecsVSharedBranches.d.ts.map +1 -1
- package/lib/shared-tree-core/editManagerCodecsVSharedBranches.js +2 -2
- package/lib/shared-tree-core/editManagerCodecsVSharedBranches.js.map +1 -1
- package/lib/shared-tree-core/editManagerFormatCommons.d.ts +17 -6
- package/lib/shared-tree-core/editManagerFormatCommons.d.ts.map +1 -1
- package/lib/shared-tree-core/editManagerFormatCommons.js +18 -8
- package/lib/shared-tree-core/editManagerFormatCommons.js.map +1 -1
- package/lib/shared-tree-core/editManagerFormatV1toV4.d.ts +7 -5
- package/lib/shared-tree-core/editManagerFormatV1toV4.d.ts.map +1 -1
- package/lib/shared-tree-core/editManagerFormatV1toV4.js +4 -3
- package/lib/shared-tree-core/editManagerFormatV1toV4.js.map +1 -1
- package/lib/shared-tree-core/editManagerFormatVSharedBranches.d.ts +4 -0
- package/lib/shared-tree-core/editManagerFormatVSharedBranches.d.ts.map +1 -1
- package/lib/shared-tree-core/editManagerFormatVSharedBranches.js +2 -2
- package/lib/shared-tree-core/editManagerFormatVSharedBranches.js.map +1 -1
- package/lib/shared-tree-core/index.d.ts +2 -1
- package/lib/shared-tree-core/index.d.ts.map +1 -1
- package/lib/shared-tree-core/index.js +1 -0
- package/lib/shared-tree-core/index.js.map +1 -1
- package/lib/shared-tree-core/messageCodecV1ToV4.d.ts +2 -2
- package/lib/shared-tree-core/messageCodecV1ToV4.d.ts.map +1 -1
- package/lib/shared-tree-core/messageCodecV1ToV4.js +12 -3
- package/lib/shared-tree-core/messageCodecV1ToV4.js.map +1 -1
- package/lib/shared-tree-core/messageCodecVSharedBranches.d.ts.map +1 -1
- package/lib/shared-tree-core/messageCodecVSharedBranches.js +8 -2
- package/lib/shared-tree-core/messageCodecVSharedBranches.js.map +1 -1
- package/lib/shared-tree-core/messageCodecs.d.ts.map +1 -1
- package/lib/shared-tree-core/messageCodecs.js +5 -0
- package/lib/shared-tree-core/messageCodecs.js.map +1 -1
- package/lib/shared-tree-core/messageFormat.d.ts +1 -0
- package/lib/shared-tree-core/messageFormat.d.ts.map +1 -1
- package/lib/shared-tree-core/messageFormat.js +6 -0
- package/lib/shared-tree-core/messageFormat.js.map +1 -1
- package/lib/shared-tree-core/messageFormatV1ToV4.d.ts +10 -3
- package/lib/shared-tree-core/messageFormatV1ToV4.d.ts.map +1 -1
- package/lib/shared-tree-core/messageFormatV1ToV4.js +10 -2
- package/lib/shared-tree-core/messageFormatV1ToV4.js.map +1 -1
- package/lib/shared-tree-core/messageFormatVSharedBranches.d.ts +7 -0
- package/lib/shared-tree-core/messageFormatVSharedBranches.d.ts.map +1 -1
- package/lib/shared-tree-core/messageFormatVSharedBranches.js +2 -0
- package/lib/shared-tree-core/messageFormatVSharedBranches.js.map +1 -1
- package/lib/shared-tree-core/sharedTreeCore.d.ts.map +1 -1
- package/lib/shared-tree-core/sharedTreeCore.js +5 -3
- package/lib/shared-tree-core/sharedTreeCore.js.map +1 -1
- package/lib/shared-tree-core/transaction.d.ts +9 -0
- package/lib/shared-tree-core/transaction.d.ts.map +1 -1
- package/lib/shared-tree-core/transaction.js +27 -5
- package/lib/shared-tree-core/transaction.js.map +1 -1
- package/lib/simple-tree/api/configuration.d.ts +4 -4
- package/lib/simple-tree/api/configuration.d.ts.map +1 -1
- package/lib/simple-tree/api/configuration.js.map +1 -1
- package/lib/simple-tree/api/discrepancies.d.ts +36 -3
- package/lib/simple-tree/api/discrepancies.d.ts.map +1 -1
- package/lib/simple-tree/api/discrepancies.js +40 -14
- package/lib/simple-tree/api/discrepancies.js.map +1 -1
- package/lib/simple-tree/api/index.d.ts +3 -2
- package/lib/simple-tree/api/index.d.ts.map +1 -1
- package/lib/simple-tree/api/index.js +1 -1
- package/lib/simple-tree/api/index.js.map +1 -1
- package/lib/simple-tree/api/schemaCompatibilityTester.d.ts +22 -3
- package/lib/simple-tree/api/schemaCompatibilityTester.d.ts.map +1 -1
- package/lib/simple-tree/api/schemaCompatibilityTester.js +136 -7
- package/lib/simple-tree/api/schemaCompatibilityTester.js.map +1 -1
- package/lib/simple-tree/api/transactionTypes.d.ts +28 -2
- package/lib/simple-tree/api/transactionTypes.d.ts.map +1 -1
- package/lib/simple-tree/api/transactionTypes.js.map +1 -1
- package/lib/simple-tree/api/tree.d.ts +353 -68
- package/lib/simple-tree/api/tree.d.ts.map +1 -1
- package/lib/simple-tree/api/tree.js.map +1 -1
- package/lib/simple-tree/core/toStored.d.ts +7 -0
- package/lib/simple-tree/core/toStored.d.ts.map +1 -1
- package/lib/simple-tree/core/toStored.js.map +1 -1
- package/lib/simple-tree/core/treeNodeValid.d.ts.map +1 -1
- package/lib/simple-tree/core/treeNodeValid.js +3 -3
- package/lib/simple-tree/core/treeNodeValid.js.map +1 -1
- package/lib/simple-tree/index.d.ts +1 -1
- package/lib/simple-tree/index.d.ts.map +1 -1
- package/lib/simple-tree/index.js +1 -1
- package/lib/simple-tree/index.js.map +1 -1
- package/lib/tableSchema.js +10 -10
- package/lib/tableSchema.js.map +1 -1
- package/package.json +22 -22
- package/src/codec/codec.ts +19 -0
- package/src/core/index.ts +4 -0
- package/src/core/rebase/index.ts +2 -0
- package/src/core/rebase/types.ts +72 -2
- package/src/core/rebase/utils.ts +1 -0
- package/src/core/revertible.ts +67 -6
- package/src/entrypoints/alpha.ts +11 -0
- package/src/entrypoints/beta.ts +3 -0
- package/src/entrypoints/legacy.ts +3 -0
- package/src/feature-libraries/index.ts +1 -1
- package/src/feature-libraries/indexing/types.ts +1 -1
- package/src/feature-libraries/schemaChecker.ts +198 -82
- package/src/index.ts +11 -0
- package/src/packageVersion.ts +1 -1
- package/src/shared-tree/history.ts +99 -0
- package/src/shared-tree/schematizingTreeView.ts +100 -29
- package/src/shared-tree/sharedTree.ts +5 -2
- package/src/shared-tree/tree.ts +1 -1
- package/src/shared-tree/treeAlpha.ts +17 -35
- package/src/shared-tree/treeCheckout.ts +170 -31
- package/src/shared-tree/unhydratedTreeContext.ts +6 -2
- package/src/shared-tree-core/branch.ts +34 -2
- package/src/shared-tree-core/branchCommitCounter.ts +103 -0
- package/src/shared-tree-core/customMetadataCodec.ts +42 -0
- package/src/shared-tree-core/customMetadataFormat.ts +39 -0
- package/src/shared-tree-core/editManager.ts +22 -3
- package/src/shared-tree-core/editManagerCodecs.ts +12 -0
- package/src/shared-tree-core/editManagerCodecsCommons.ts +41 -15
- package/src/shared-tree-core/editManagerCodecsV1toV4.ts +7 -1
- package/src/shared-tree-core/editManagerCodecsVSharedBranches.ts +2 -0
- package/src/shared-tree-core/editManagerFormatCommons.ts +46 -12
- package/src/shared-tree-core/editManagerFormatV1toV4.ts +13 -5
- package/src/shared-tree-core/editManagerFormatVSharedBranches.ts +2 -2
- package/src/shared-tree-core/index.ts +3 -0
- package/src/shared-tree-core/messageCodecV1ToV4.ts +18 -5
- package/src/shared-tree-core/messageCodecVSharedBranches.ts +9 -2
- package/src/shared-tree-core/messageCodecs.ts +12 -0
- package/src/shared-tree-core/messageFormat.ts +6 -0
- package/src/shared-tree-core/messageFormatV1ToV4.ts +21 -3
- package/src/shared-tree-core/messageFormatVSharedBranches.ts +8 -0
- package/src/shared-tree-core/sharedTreeCore.ts +5 -2
- package/src/shared-tree-core/transaction.ts +56 -4
- package/src/simple-tree/api/configuration.ts +4 -4
- package/src/simple-tree/api/discrepancies.ts +100 -5
- package/src/simple-tree/api/index.ts +12 -1
- package/src/simple-tree/api/schemaCompatibilityTester.ts +185 -11
- package/src/simple-tree/api/transactionTypes.ts +29 -2
- package/src/simple-tree/api/tree.ts +384 -68
- package/src/simple-tree/core/toStored.ts +8 -0
- package/src/simple-tree/core/treeNodeValid.ts +3 -1
- package/src/simple-tree/index.ts +9 -0
- package/src/tableSchema.ts +9 -9
- package/docs/main/runtime-schema-upgrade.md +0 -208
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
import type { IFluidLoadable, IDisposable, Listenable } from "@fluidframework/core-interfaces";
|
|
6
|
-
import type { ChangeMetadata, CommitMetadata, RevertibleAlphaFactory, RevertibleFactory } from "../../core/index.js";
|
|
7
|
-
import type { JsonCompatibleReadOnly } from "../../util/index.js";
|
|
6
|
+
import type { ChangeMetadata, CommitMetadata, CustomMetadataTree, RevertibleAlphaFactory, RevertibleFactory, RevertToOptionsAlpha } from "../../core/index.js";
|
|
7
|
+
import type { JsonCompatibleReadOnly, JsonCompatibleReadOnlyObject } from "../../util/index.js";
|
|
8
|
+
import type { SchemaUpgrade } from "../core/index.js";
|
|
8
9
|
import type { ImplicitFieldSchema, InsertableField, InsertableTreeFieldFromImplicitField, ReadableField, ReadSchema, TreeFieldFromImplicitField } from "../fieldSchema.js";
|
|
9
10
|
import type { SimpleTreeSchema } from "../simpleSchema.js";
|
|
10
11
|
import type { UnsafeUnknownSchema } from "../unsafeUnknownSchema.js";
|
|
11
12
|
import type { TreeViewConfiguration } from "./configuration.js";
|
|
13
|
+
import type { StagedUpgradeStatus } from "./schemaCompatibilityTester.js";
|
|
12
14
|
import type { RunTransactionParamsAlpha, RunTransactionParamsBeta, TransactionCallbackStatusAlpha, TransactionCallbackStatusBeta, TransactionVoidResult, TransactionValueResult, VoidTransactionCallbackStatusAlpha, VoidTransactionCallbackStatusBeta, WithValue } from "./transactionTypes.js";
|
|
13
15
|
import type { VerboseTree } from "./verboseTree.js";
|
|
14
16
|
/**
|
|
@@ -98,54 +100,61 @@ export interface ITreeAlpha extends ITree {
|
|
|
98
100
|
viewSharedBranchWith<TRoot extends ImplicitFieldSchema>(branchId: string, config: TreeViewConfiguration<TRoot>): TreeView<TRoot>;
|
|
99
101
|
}
|
|
100
102
|
/**
|
|
101
|
-
*
|
|
102
|
-
* @remarks
|
|
103
|
+
* An untyped view of a (version-control-style) branch of a SharedTree.
|
|
104
|
+
* @remarks An `UntypedTreeView` allows for the {@link UntypedTreeView.fork | creation of branches} and for those branches to later be {@link UntypedTreeView.merge | merged}.
|
|
103
105
|
*
|
|
104
106
|
* The branch associated directly with the {@link ITree | SharedTree} is the "main" branch, and all other branches fork (directly or transitively) from that main branch.
|
|
105
107
|
*
|
|
106
|
-
* See {@link
|
|
108
|
+
* See {@link UntypedTreeViewAlpha} for additional APIs that are in an earlier stage of development.
|
|
107
109
|
* @sealed @beta
|
|
108
110
|
*/
|
|
109
|
-
export interface
|
|
111
|
+
export interface UntypedTreeView extends IDisposable {
|
|
110
112
|
/**
|
|
111
113
|
* Fork a new branch off of this branch which is based off of this branch's current state.
|
|
112
|
-
* @remarks Any changes to the tree on the new
|
|
113
|
-
* The
|
|
114
|
+
* @remarks Any changes to the tree on the new view will not apply to this view until the new view is e.g. {@link UntypedTreeView.merge | merged} back into this view.
|
|
115
|
+
* The view should be disposed when no longer needed, either {@link UntypedTreeView.dispose | explicitly} or {@link UntypedTreeView.merge | implicitly when merging} into another view.
|
|
114
116
|
*/
|
|
115
|
-
fork():
|
|
117
|
+
fork(): UntypedTreeView;
|
|
116
118
|
/**
|
|
117
|
-
* Apply all the new changes on the given
|
|
118
|
-
* @param
|
|
119
|
-
* @param disposeMerged -
|
|
119
|
+
* Apply all the new changes on the given view to this view.
|
|
120
|
+
* @param view - A view created by {@link UntypedTreeView.fork}.
|
|
121
|
+
* @param disposeMerged - Whether or not to dispose `view` after the merge completes.
|
|
120
122
|
* Defaults to true.
|
|
121
|
-
* The {@link
|
|
122
|
-
* @remarks All ongoing transactions (if any) in `
|
|
123
|
+
* The {@link UntypedTreeView | main view} cannot be disposed - attempting to do so will have no effect.
|
|
124
|
+
* @remarks All ongoing transactions (if any) in `view` will be committed before the merge.
|
|
123
125
|
*/
|
|
124
|
-
merge(
|
|
126
|
+
merge(view: UntypedTreeView, disposeMerged?: boolean): void;
|
|
125
127
|
/**
|
|
126
|
-
* Advance this
|
|
127
|
-
* @param
|
|
128
|
-
* @remarks After rebasing, this
|
|
129
|
-
* This method may only be called on
|
|
128
|
+
* Advance this view forward such that all new changes on the target view become part of this view.
|
|
129
|
+
* @param view - The view to rebase onto.
|
|
130
|
+
* @remarks After rebasing, this view will be "ahead" of the target view, that is, its unique changes will have been recreated as if they happened after all changes on the target view.
|
|
131
|
+
* This method may only be called on views produced via {@link UntypedTreeView.fork | fork} - attempting to rebase the main view will throw.
|
|
130
132
|
*
|
|
131
133
|
* Rebasing long-lived branches is important to avoid consuming memory unnecessarily.
|
|
132
134
|
* In particular, the SharedTree retains all sequenced changes made to the tree since the "most-behind" branch was created or last rebased.
|
|
133
135
|
*
|
|
134
|
-
* The {@link
|
|
136
|
+
* The {@link UntypedTreeView | main view} cannot be rebased onto another view - attempting to do so will throw an error.
|
|
135
137
|
*/
|
|
136
|
-
rebaseOnto(
|
|
138
|
+
rebaseOnto(view: UntypedTreeView): void;
|
|
137
139
|
/**
|
|
138
|
-
* Dispose of this
|
|
140
|
+
* Dispose of this view, cleaning up any resources associated with it.
|
|
139
141
|
* @param error - Optional error indicating the reason for the disposal, if the object was disposed as the result of an error.
|
|
140
|
-
* @remarks
|
|
142
|
+
* @remarks Views can also be automatically disposed when {@link UntypedTreeView.merge | they are merged} into another view.
|
|
141
143
|
*
|
|
142
144
|
* Disposing branches is important to avoid consuming memory unnecessarily.
|
|
143
|
-
* In particular, the SharedTree retains all sequenced changes made to the tree since the "most-behind"
|
|
145
|
+
* In particular, the SharedTree retains all sequenced changes made to the tree since the "most-behind" view was created or last {@link UntypedTreeView.rebaseOnto | rebased}.
|
|
144
146
|
*
|
|
145
|
-
* The {@link
|
|
147
|
+
* The {@link UntypedTreeView | main view} cannot be disposed - attempting to do so will have no effect.
|
|
146
148
|
*/
|
|
147
149
|
dispose(error?: Error): void;
|
|
148
150
|
}
|
|
151
|
+
/**
|
|
152
|
+
* Compatibility alias for {@link UntypedTreeView}.
|
|
153
|
+
*
|
|
154
|
+
* @deprecated Use {@link UntypedTreeView} instead.
|
|
155
|
+
* @beta
|
|
156
|
+
*/
|
|
157
|
+
export type TreeBranch = UntypedTreeView;
|
|
149
158
|
/**
|
|
150
159
|
* Provides additional APIs that may be used to interact with a tree node or a tree node's SharedTree.
|
|
151
160
|
* @alpha
|
|
@@ -173,7 +182,7 @@ export interface TreeContextAlpha {
|
|
|
173
182
|
* - The internal data representation of a transaction with many changes is generally smaller and more efficient than that of the changes when separate.
|
|
174
183
|
*
|
|
175
184
|
* `runTransaction` may be invoked on the context of a {@link TreeStatus.InDocument | hydrated } or {@link Unhydrated | unhydrated } node.
|
|
176
|
-
* Use {@link TreeContextAlpha.
|
|
185
|
+
* Use {@link TreeContextAlpha.isView | isView() } to check whether this context is associated with a view and gain {@link UntypedTreeViewAlpha.(runTransaction:1) | access to more transaction capabilities} if so.
|
|
177
186
|
*/
|
|
178
187
|
runTransaction<TValue>(transaction: () => WithValue<TValue>, params?: RunTransactionParamsAlpha): TransactionValueResult<TValue, TValue>;
|
|
179
188
|
/**
|
|
@@ -205,57 +214,162 @@ export interface TreeContextAlpha {
|
|
|
205
214
|
*/
|
|
206
215
|
runTransactionAsync(transaction: () => Promise<void>, params?: RunTransactionParamsAlpha): Promise<TransactionVoidResult>;
|
|
207
216
|
/**
|
|
208
|
-
* True if this context is associated with
|
|
209
|
-
* @remarks If this returns true, the context can be safely inferred or cast to {@link
|
|
217
|
+
* True if this context is associated with an {@link UntypedTreeViewAlpha | untyped view} and false if it is associated with an {@link Unhydrated | unhydrated } node.
|
|
218
|
+
* @remarks If this returns true, the context can be safely inferred or cast to {@link UntypedTreeViewAlpha} to access additional view-specific APIs.
|
|
210
219
|
* @example
|
|
211
220
|
* ```typescript
|
|
212
221
|
* const context = tree.context(someNode);
|
|
213
|
-
* if (context.
|
|
214
|
-
* assert(context.hasRootSchema(MySchema)) // `hasRootSchema` is a method on
|
|
222
|
+
* if (context.isView()) {
|
|
223
|
+
* assert(context.hasRootSchema(MySchema)) // `hasRootSchema` is a method on UntypedTreeViewAlpha, so this is only accessible if `context` is a view context.
|
|
215
224
|
* context.root.foo = "bar"; // Edit the root of the SharedTree that `someNode` belongs to.
|
|
216
225
|
* }
|
|
217
226
|
* ```
|
|
227
|
+
* @returns Whether this context is associated with an untyped view.
|
|
228
|
+
*/
|
|
229
|
+
isView(): this is UntypedTreeViewAlpha;
|
|
230
|
+
/**
|
|
231
|
+
* {@inheritDoc TreeContextAlpha.isView}
|
|
232
|
+
* @deprecated Use {@link TreeContextAlpha.isView | isView()} instead.
|
|
218
233
|
*/
|
|
219
|
-
isBranch(): this is
|
|
234
|
+
isBranch(): this is UntypedTreeViewAlpha;
|
|
220
235
|
}
|
|
221
236
|
/**
|
|
222
|
-
* {@link
|
|
237
|
+
* An identifier for a commit in a {@link UntypedTreeViewAlpha}'s {@link UntypedTreeViewAlpha.branchHistory | history}.
|
|
238
|
+
* @alpha
|
|
239
|
+
*/
|
|
240
|
+
export type CommitRevision = string;
|
|
241
|
+
/**
|
|
242
|
+
* Metadata describing a single commit in a {@link UntypedTreeViewAlpha}'s history.
|
|
243
|
+
* @sealed @alpha
|
|
244
|
+
*/
|
|
245
|
+
export interface TreeBranchCommitMetadata {
|
|
246
|
+
/**
|
|
247
|
+
* The revision UUID that uniquely identifies this commit within the branch's history.
|
|
248
|
+
*/
|
|
249
|
+
readonly revision: CommitRevision;
|
|
250
|
+
/**
|
|
251
|
+
* Arbitrary, application-defined metadata that was {@link RunTransactionParamsAlpha.customMetadata | attached}
|
|
252
|
+
* to this commit when it was created, flattened into a single object.
|
|
253
|
+
*
|
|
254
|
+
* @remarks
|
|
255
|
+
* This is `undefined` for commits that were not annotated.
|
|
256
|
+
*
|
|
257
|
+
* A commit may be produced by nested transactions, each of which may supply metadata. This property combines
|
|
258
|
+
* them: where two of them used the same property, the outermost transaction wins, and between siblings the
|
|
259
|
+
* later one wins. Use {@link TreeBranchCommitMetadata.customTree} to recover which transaction supplied what.
|
|
260
|
+
*/
|
|
261
|
+
readonly custom: JsonCompatibleReadOnlyObject | undefined;
|
|
262
|
+
/**
|
|
263
|
+
* The {@link CustomMetadataTree | tree} of metadata attached to this commit, reflecting the nesting of
|
|
264
|
+
* the transactions that produced it.
|
|
265
|
+
*
|
|
266
|
+
* @remarks
|
|
267
|
+
* The structural counterpart to {@link TreeBranchCommitMetadata.custom}, and `undefined` whenever it is.
|
|
268
|
+
* Prefer `custom` unless you need to know which transaction supplied a particular property.
|
|
269
|
+
*/
|
|
270
|
+
readonly customTree: CustomMetadataTree | undefined;
|
|
271
|
+
/**
|
|
272
|
+
* The metadata for the commit that this commit was based on, or `undefined` if this commit has no parent
|
|
273
|
+
* (i.e. it is the oldest commit in the branch's history).
|
|
274
|
+
*
|
|
275
|
+
* @remarks
|
|
276
|
+
* This method may return a different value over time if the parent commit is trimmed from the branch's history.
|
|
277
|
+
*/
|
|
278
|
+
getParent(): TreeBranchCommitMetadata | undefined;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Provides APIs for querying information about the history of a {@link UntypedTreeViewAlpha}.
|
|
223
282
|
* @remarks
|
|
224
|
-
* The
|
|
283
|
+
* The history of a branch is the sequence of commits leading up to its current state.
|
|
284
|
+
* @sealed @alpha
|
|
285
|
+
*/
|
|
286
|
+
export interface TreeBranchHistory {
|
|
287
|
+
/**
|
|
288
|
+
* The number of commits in this branch's history.
|
|
289
|
+
* @remarks
|
|
290
|
+
* This number grows when any of the following occurs:
|
|
291
|
+
* - A new edit is made on this branch (either through editing or by reverting an existing commit on this branch).
|
|
292
|
+
* - A branch that contains commits not already on this branch is merged into this branch.
|
|
293
|
+
* - The branch is rebased onto another branch that contains commits not already on this branch.
|
|
294
|
+
* This number shrinks when past commits are trimmed from the history.
|
|
295
|
+
*/
|
|
296
|
+
readonly length: number;
|
|
297
|
+
/**
|
|
298
|
+
* Returns metadata for the current head commit of this branch.
|
|
299
|
+
* @returns The metadata for the head commit, or `undefined` if the branch has no commits.
|
|
300
|
+
*/
|
|
301
|
+
getHead(): TreeBranchCommitMetadata | undefined;
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* An untyped view of a {@link UntypedTreeView} with alpha-level APIs.
|
|
305
|
+
* @remarks
|
|
306
|
+
* The untyped view for a specific {@link TreeNode} may be acquired by calling `TreeAlpha.context` and checking {@link TreeContextAlpha.isView | isView()}.
|
|
225
307
|
*
|
|
226
|
-
*
|
|
308
|
+
* An untyped view does not necessarily know the schema of its SharedTree. To convert it to a {@link TreeViewAlpha | view with a schema}, use {@link UntypedTreeViewAlpha.hasRootSchema | hasRootSchema()}.
|
|
227
309
|
* @sealed @alpha
|
|
228
310
|
*/
|
|
229
|
-
export interface
|
|
311
|
+
export interface UntypedTreeViewAlpha extends UntypedTreeView, TreeContextAlpha {
|
|
230
312
|
/**
|
|
231
|
-
* Events for the branch
|
|
313
|
+
* Events for the view's underlying branch.
|
|
232
314
|
*/
|
|
233
315
|
readonly events: Listenable<TreeBranchEvents>;
|
|
234
316
|
/**
|
|
235
|
-
*
|
|
236
|
-
|
|
317
|
+
* APIs for querying the history of the branch being viewed.
|
|
318
|
+
*/
|
|
319
|
+
readonly branchHistory: TreeBranchHistory;
|
|
320
|
+
/**
|
|
321
|
+
* Returns true if this view has the given schema as its root schema.
|
|
322
|
+
* @remarks This is a type guard which allows this view to become strongly typed as a {@link TreeViewAlpha | view} of the given schema.
|
|
237
323
|
*
|
|
238
324
|
* To succeed, the given schema must be invariant to the schema of the view - it must include exactly the same allowed types.
|
|
239
325
|
* For example, a schema of `Foo | Bar` will not match a view schema of `Foo`, and likewise a schema of `Foo` will not match a view schema of `Foo | Bar`.
|
|
240
326
|
* @example
|
|
241
327
|
* ```typescript
|
|
242
|
-
* if (
|
|
243
|
-
* const { root } =
|
|
328
|
+
* if (view.hasRootSchema(MySchema)) {
|
|
329
|
+
* const { root } = view; // `view` is now a TreeViewAlpha<MySchema>
|
|
244
330
|
* // ...
|
|
245
331
|
* }
|
|
246
332
|
* ```
|
|
247
333
|
*/
|
|
248
334
|
hasRootSchema<TSchema extends ImplicitFieldSchema>(schema: TSchema): this is TreeViewAlpha<TSchema>;
|
|
249
|
-
fork():
|
|
335
|
+
fork(): UntypedTreeViewAlpha;
|
|
336
|
+
/**
|
|
337
|
+
* Switches this view to a new underlying branch with the given commit as the head, updating the view state accordingly.
|
|
338
|
+
*
|
|
339
|
+
* @param revision - The {@link TreeBranchCommitMetadata.revision | revision} to rewind to.
|
|
340
|
+
* Can be obtained by navigating the commits on the {@link UntypedTreeViewAlpha.branchHistory | branch history}.
|
|
341
|
+
*
|
|
342
|
+
* @remarks
|
|
343
|
+
* Unlike {@link UntypedTreeViewAlpha.revertTo | revertTo}, this does not apply a change to the underlying branch.
|
|
344
|
+
* The original underlying branch will be disposed.
|
|
345
|
+
* Consider {@link UntypedTreeViewAlpha.fork | forking} before rewinding.
|
|
346
|
+
* Not valid to invoke on the main branch or a {@link (ITreeAlpha:interface).createSharedBranch | shared branch}.
|
|
347
|
+
*/
|
|
348
|
+
rewindTo(revision: CommitRevision): void;
|
|
349
|
+
/**
|
|
350
|
+
* Applies a new change which reverts all changes made since the given `revision`.
|
|
351
|
+
* This is a no-op if the given revision is the head commit of the underlying branch being viewed.
|
|
352
|
+
*
|
|
353
|
+
* @param revision - The {@link TreeBranchCommitMetadata.revision | revision} to restore the state of.
|
|
354
|
+
* Can be obtained by navigating the commits on the {@link UntypedTreeViewAlpha.branchHistory | branch history}.
|
|
355
|
+
* @param options - Optional {@link RevertToOptionsAlpha | options} for the revert.
|
|
356
|
+
*
|
|
357
|
+
* @remarks
|
|
358
|
+
* The generated change is subject to the same merge semantics as the {@link Revertible.(revert:1) | reverts of individual commits}:
|
|
359
|
+
* Concurrent changes that are sequenced before the revert will not be overwritten by the revert if they affect different parts of the document.
|
|
360
|
+
*
|
|
361
|
+
* Unlike {@link UntypedTreeViewAlpha.rewindTo | rewindTo}, this does not switch to a new branch.
|
|
362
|
+
*/
|
|
363
|
+
revertTo(revision: CommitRevision, options?: RevertToOptionsAlpha): void;
|
|
250
364
|
/**
|
|
251
|
-
* {@link TreeContextAlpha.(runTransaction:1) | Run a transaction} on
|
|
365
|
+
* {@link TreeContextAlpha.(runTransaction:1) | Run a transaction} on this view of the SharedTree.
|
|
252
366
|
* @param transaction - The function to run as the body of the transaction, which may optionally return a {@link TransactionCallbackStatusAlpha | value or rollback signal}.
|
|
253
367
|
* @remarks
|
|
254
368
|
* If the transaction is rolled back, a corresponding {@link TreeBranchEvents.changed | `changed`} event will also be emitted for the rollback.
|
|
255
369
|
*/
|
|
256
370
|
runTransaction<TSuccessValue, TFailureValue>(transaction: () => TransactionCallbackStatusAlpha<TSuccessValue, TFailureValue>, params?: RunTransactionParamsAlpha): TransactionValueResult<TSuccessValue, TFailureValue>;
|
|
257
371
|
/**
|
|
258
|
-
* An overload of {@link
|
|
372
|
+
* An overload of {@link UntypedTreeViewAlpha.(runTransaction:1) | runTransaction } which does not return a value.
|
|
259
373
|
*
|
|
260
374
|
* @privateRemarks
|
|
261
375
|
* TODO: Consider updating these methods to avoid the need for overloads.
|
|
@@ -263,12 +377,12 @@ export interface TreeBranchAlpha extends TreeBranch, TreeContextAlpha {
|
|
|
263
377
|
*/
|
|
264
378
|
runTransaction(transaction: () => VoidTransactionCallbackStatusAlpha | void, params?: RunTransactionParamsAlpha): TransactionVoidResult;
|
|
265
379
|
/**
|
|
266
|
-
* An asynchronous version of {@link
|
|
380
|
+
* An asynchronous version of {@link UntypedTreeViewAlpha.(runTransaction:1) | runTransaction}.
|
|
267
381
|
* @remarks See {@link TreeContextAlpha.(runTransactionAsync:1) | runTransactionAsync} for additional information about asynchronous transactions.
|
|
268
382
|
*/
|
|
269
383
|
runTransactionAsync<TSuccessValue, TFailureValue>(transaction: () => Promise<TransactionCallbackStatusAlpha<TSuccessValue, TFailureValue>>, params?: RunTransactionParamsAlpha): Promise<TransactionValueResult<TSuccessValue, TFailureValue>>;
|
|
270
384
|
/**
|
|
271
|
-
* An overload of {@link
|
|
385
|
+
* An overload of {@link UntypedTreeViewAlpha.(runTransactionAsync:1) | runTransactionAsync } which does not return a value.
|
|
272
386
|
*
|
|
273
387
|
* @privateRemarks
|
|
274
388
|
* TODO: Consider updating these methods to avoid the need for overloads.
|
|
@@ -288,25 +402,32 @@ export interface TreeBranchAlpha extends TreeBranch, TreeContextAlpha {
|
|
|
288
402
|
*/
|
|
289
403
|
applyChange(change: JsonCompatibleReadOnly): void;
|
|
290
404
|
/**
|
|
291
|
-
* Determines if there are changes on the given
|
|
292
|
-
* @param
|
|
405
|
+
* Determines if there are changes on the given view that are not present on this view.
|
|
406
|
+
* @param view - The view to compare to.
|
|
293
407
|
*
|
|
294
|
-
* The new edits, if any, can be applied to this
|
|
295
|
-
* or by {@link
|
|
408
|
+
* The new edits, if any, can be applied to this view by {@link UntypedTreeView.rebaseOnto | rebasing this view onto the given view}
|
|
409
|
+
* or by {@link UntypedTreeView.merge | merging the given view into this view}.
|
|
296
410
|
*
|
|
297
411
|
* @throws UsageError if the branches are unrelated.
|
|
298
412
|
*/
|
|
299
|
-
isMissingEditsFrom(
|
|
413
|
+
isMissingEditsFrom(view: UntypedTreeView): boolean;
|
|
300
414
|
/**
|
|
301
|
-
* Computes the net change that would result if this
|
|
302
|
-
* Note that this method does not actually perform the rebase and therefore has no effect on this
|
|
415
|
+
* Computes the net change that would result if this view were {@link UntypedTreeView.rebaseOnto | rebased onto} the given view.
|
|
416
|
+
* Note that this method does not actually perform the rebase and therefore has no effect on this view.
|
|
303
417
|
*
|
|
304
|
-
* @param
|
|
305
|
-
* @returns The net change that would result if this
|
|
418
|
+
* @param view - The view that would be rebased onto.
|
|
419
|
+
* @returns The net change that would result if this view were rebased onto the given view,
|
|
306
420
|
* or `undefined` if rebasing would have no impact.
|
|
307
421
|
*/
|
|
308
|
-
computeNetChangeIfRebasedOnto(
|
|
422
|
+
computeNetChangeIfRebasedOnto(view: UntypedTreeView): JsonCompatibleReadOnly | undefined;
|
|
309
423
|
}
|
|
424
|
+
/**
|
|
425
|
+
* Compatibility alias for {@link UntypedTreeViewAlpha}.
|
|
426
|
+
*
|
|
427
|
+
* @deprecated Use {@link UntypedTreeViewAlpha} instead.
|
|
428
|
+
* @alpha
|
|
429
|
+
*/
|
|
430
|
+
export type TreeBranchAlpha = UntypedTreeViewAlpha;
|
|
310
431
|
/**
|
|
311
432
|
* An editable view of a (version control style) branch of a shared tree based on some schema.
|
|
312
433
|
*
|
|
@@ -317,7 +438,7 @@ export interface TreeBranchAlpha extends TreeBranch, TreeContextAlpha {
|
|
|
317
438
|
* Application authors are encouraged to read {@link https://github.com/microsoft/FluidFramework/blob/main/packages/dds/tree/docs/user-facing/schema-evolution.md | schema-evolution.md}
|
|
318
439
|
* and choose a schema compatibility policy that aligns with their application's needs.
|
|
319
440
|
*
|
|
320
|
-
* See also {@link TreeViewAlpha}, {@link TreeViewBeta} and {@link
|
|
441
|
+
* See also {@link TreeViewAlpha}, {@link TreeViewBeta} and {@link UntypedTreeView} for additional APIs that are in earlier stages of development.
|
|
321
442
|
*
|
|
322
443
|
* @privateRemarks
|
|
323
444
|
* From an API design perspective, `upgradeSchema` could be merged into `viewWith` and/or `viewWith` could return errors explicitly on incompatible documents.
|
|
@@ -366,9 +487,9 @@ export interface TreeView<in out TSchema extends ImplicitFieldSchema> extends ID
|
|
|
366
487
|
*
|
|
367
488
|
* When using {@link TreeViewConfigurationAlpha} with a {@link ITreeViewConfigurationAlpha.stagedUpgradePolicy},
|
|
368
489
|
* staged schema upgrades matching the configured policy are included in the target stored schema.
|
|
369
|
-
*
|
|
370
|
-
*
|
|
371
|
-
*
|
|
490
|
+
* Staged upgrades that are already enabled in the document are also included by default. Set
|
|
491
|
+
* {@link (StagedSchemaUpgradePolicy:interface).includeAlreadyEnabledUpgrades} to `false` when
|
|
492
|
+
* creating the policy to only include staged upgrades selected explicitly by the policy.
|
|
372
493
|
*
|
|
373
494
|
* @example Enabling a staged allowed type for documents, selected by a feature flag
|
|
374
495
|
*
|
|
@@ -436,12 +557,164 @@ export interface TreeView<in out TSchema extends ImplicitFieldSchema> extends ID
|
|
|
436
557
|
*/
|
|
437
558
|
readonly schema: TSchema;
|
|
438
559
|
}
|
|
560
|
+
/**
|
|
561
|
+
* A discrepancy between a view schema and a document's stored schema.
|
|
562
|
+
*
|
|
563
|
+
* @remarks
|
|
564
|
+
* The `mismatch` property discriminates the different discrepancy shapes.
|
|
565
|
+
*
|
|
566
|
+
* @sealed @beta
|
|
567
|
+
*/
|
|
568
|
+
export type SchemaDiscrepancy = {
|
|
569
|
+
/**
|
|
570
|
+
* Indicates that a field allows different node types in the view and stored schemas.
|
|
571
|
+
*/
|
|
572
|
+
readonly mismatch: "allowedTypes";
|
|
573
|
+
/**
|
|
574
|
+
* The field with the discrepancy.
|
|
575
|
+
*
|
|
576
|
+
* `"root"` identifies the root field. Otherwise, `nodeType` identifies the containing
|
|
577
|
+
* node schema and `fieldKey` identifies its field. `fieldKey` is undefined for a map
|
|
578
|
+
* node's implicit field.
|
|
579
|
+
*/
|
|
580
|
+
readonly location: "root" | {
|
|
581
|
+
readonly nodeType: string;
|
|
582
|
+
readonly fieldKey: string | undefined;
|
|
583
|
+
};
|
|
584
|
+
/**
|
|
585
|
+
* Non-staged node type identifiers allowed by the view schema but not the stored schema.
|
|
586
|
+
*/
|
|
587
|
+
readonly view: readonly string[];
|
|
588
|
+
/**
|
|
589
|
+
* Staged node type identifiers allowed by the view schema but not the stored schema.
|
|
590
|
+
*
|
|
591
|
+
* @remarks These types provide rollout context but do not cause the discrepancy.
|
|
592
|
+
*/
|
|
593
|
+
readonly stagedView?: readonly string[];
|
|
594
|
+
/**
|
|
595
|
+
* Node type identifiers allowed by the stored schema but not the view schema.
|
|
596
|
+
*/
|
|
597
|
+
readonly stored: readonly string[];
|
|
598
|
+
/**
|
|
599
|
+
* Whether the view field is a staged optional field.
|
|
600
|
+
*
|
|
601
|
+
* @remarks Omitted when false.
|
|
602
|
+
*/
|
|
603
|
+
readonly viewIsStagedOptional?: true;
|
|
604
|
+
} | {
|
|
605
|
+
/**
|
|
606
|
+
* Indicates that a field has different field kinds in the view and stored schemas.
|
|
607
|
+
*/
|
|
608
|
+
readonly mismatch: "fieldKind";
|
|
609
|
+
/**
|
|
610
|
+
* The field with the discrepancy.
|
|
611
|
+
*
|
|
612
|
+
* `"root"` identifies the root field. Otherwise, `nodeType` identifies the containing
|
|
613
|
+
* node schema and `fieldKey` identifies its field. `fieldKey` is undefined for a map
|
|
614
|
+
* node's implicit field.
|
|
615
|
+
*/
|
|
616
|
+
readonly location: "root" | {
|
|
617
|
+
readonly nodeType: string;
|
|
618
|
+
readonly fieldKey: string | undefined;
|
|
619
|
+
};
|
|
620
|
+
/**
|
|
621
|
+
* The field kind required by the view schema.
|
|
622
|
+
*/
|
|
623
|
+
readonly view: string;
|
|
624
|
+
/**
|
|
625
|
+
* The field kind recorded in the stored schema.
|
|
626
|
+
*/
|
|
627
|
+
readonly stored: string;
|
|
628
|
+
/**
|
|
629
|
+
* Whether the view field is a staged optional field.
|
|
630
|
+
*
|
|
631
|
+
* @remarks Omitted when false.
|
|
632
|
+
*/
|
|
633
|
+
readonly viewIsStagedOptional?: true;
|
|
634
|
+
} | {
|
|
635
|
+
/**
|
|
636
|
+
* Indicates that a leaf node accepts different value types in the view and stored schemas.
|
|
637
|
+
*/
|
|
638
|
+
readonly mismatch: "valueSchema";
|
|
639
|
+
/**
|
|
640
|
+
* The identifier of the leaf node schema with the discrepancy.
|
|
641
|
+
*/
|
|
642
|
+
readonly nodeType: string;
|
|
643
|
+
/**
|
|
644
|
+
* The value schema required by the view, or undefined when it does not constrain values.
|
|
645
|
+
*/
|
|
646
|
+
readonly view: string | undefined;
|
|
647
|
+
/**
|
|
648
|
+
* The value schema recorded in the stored schema, or undefined when it does not constrain values.
|
|
649
|
+
*/
|
|
650
|
+
readonly stored: string | undefined;
|
|
651
|
+
} | {
|
|
652
|
+
/**
|
|
653
|
+
* Indicates that a node is represented by different node kinds in the view and stored schemas.
|
|
654
|
+
*/
|
|
655
|
+
readonly mismatch: "nodeKind";
|
|
656
|
+
/**
|
|
657
|
+
* The identifier of the node schema with the discrepancy.
|
|
658
|
+
*/
|
|
659
|
+
readonly nodeType: string;
|
|
660
|
+
/**
|
|
661
|
+
* The node kind required by the view schema.
|
|
662
|
+
*/
|
|
663
|
+
readonly view: string;
|
|
664
|
+
/**
|
|
665
|
+
* The node kind recorded in the stored schema.
|
|
666
|
+
*/
|
|
667
|
+
readonly stored: string;
|
|
668
|
+
};
|
|
669
|
+
/**
|
|
670
|
+
* {@link SchemaCompatibilityStatus} with additional beta APIs.
|
|
671
|
+
*
|
|
672
|
+
* @sealed @beta
|
|
673
|
+
*/
|
|
674
|
+
export interface SchemaCompatibilityStatusBeta extends SchemaCompatibilityStatus {
|
|
675
|
+
/**
|
|
676
|
+
* Details about the schema discrepancies that prevent this view from accessing the tree.
|
|
677
|
+
*
|
|
678
|
+
* @remarks
|
|
679
|
+
* This property is undefined when {@link SchemaCompatibilityStatus.canView} is true and present
|
|
680
|
+
* when `canView` is false.
|
|
681
|
+
* It can include application-defined schema identifiers and field keys.
|
|
682
|
+
*
|
|
683
|
+
* @example Interpreting an allowed-types discrepancy
|
|
684
|
+
*
|
|
685
|
+
* If a document's stored schema allows `string` for `Todo.title`, but the view schema expects
|
|
686
|
+
* `number`, the discrepancy identifies the field and the type permitted by each schema:
|
|
687
|
+
*
|
|
688
|
+
* ```typescript
|
|
689
|
+
* const sf = new SchemaFactory("com.example");
|
|
690
|
+
* class Todo extends sf.object("Todo", {
|
|
691
|
+
* title: sf.number,
|
|
692
|
+
* }) {}
|
|
693
|
+
*
|
|
694
|
+
* const view = asBeta(tree.viewWith(new TreeViewConfiguration({ schema: Todo })));
|
|
695
|
+
* if (!view.compatibility.canView) {
|
|
696
|
+
* // [{
|
|
697
|
+
* // mismatch: "allowedTypes",
|
|
698
|
+
* // location: { nodeType: "com.example.Todo", fieldKey: "title" },
|
|
699
|
+
* // view: ["com.fluidframework.leaf.number"],
|
|
700
|
+
* // stored: ["com.fluidframework.leaf.string"],
|
|
701
|
+
* // }]
|
|
702
|
+
* console.error(view.compatibility.discrepancies);
|
|
703
|
+
* }
|
|
704
|
+
* ```
|
|
705
|
+
*/
|
|
706
|
+
readonly discrepancies: readonly SchemaDiscrepancy[] | undefined;
|
|
707
|
+
}
|
|
439
708
|
/**
|
|
440
709
|
* {@link TreeView} with additional beta APIs.
|
|
441
710
|
* @sealed @beta
|
|
442
711
|
*/
|
|
443
|
-
export interface TreeViewBeta<in out TSchema extends ImplicitFieldSchema> extends TreeView<TSchema>,
|
|
444
|
-
|
|
712
|
+
export interface TreeViewBeta<in out TSchema extends ImplicitFieldSchema> extends TreeView<TSchema>, UntypedTreeView {
|
|
713
|
+
/**
|
|
714
|
+
* {@inheritDoc TreeView.compatibility}
|
|
715
|
+
*/
|
|
716
|
+
readonly compatibility: SchemaCompatibilityStatusBeta;
|
|
717
|
+
fork(): ReturnType<UntypedTreeView["fork"]> & TreeViewBeta<TSchema>;
|
|
445
718
|
/**
|
|
446
719
|
* Run a synchronous transaction which groups sequential edits to the tree into a single atomic edit if possible.
|
|
447
720
|
*
|
|
@@ -488,7 +761,7 @@ export interface TreeViewBeta<in out TSchema extends ImplicitFieldSchema> extend
|
|
|
488
761
|
* {@link TreeView} with proposed changes to the schema aware typing to allow use with `UnsafeUnknownSchema`.
|
|
489
762
|
* @sealed @alpha
|
|
490
763
|
*/
|
|
491
|
-
export interface TreeViewAlpha<in out TSchema extends ImplicitFieldSchema | UnsafeUnknownSchema> extends Omit<TreeViewBeta<ReadSchema<TSchema>>, "root" | "initialize" | "fork" | "runTransaction" | "runTransactionAsync">,
|
|
764
|
+
export interface TreeViewAlpha<in out TSchema extends ImplicitFieldSchema | UnsafeUnknownSchema> extends Omit<TreeViewBeta<ReadSchema<TSchema>>, "root" | "initialize" | "fork" | "runTransaction" | "runTransactionAsync">, UntypedTreeViewAlpha {
|
|
492
765
|
get root(): ReadableField<TSchema>;
|
|
493
766
|
set root(newRoot: InsertableField<TSchema>);
|
|
494
767
|
/**
|
|
@@ -498,17 +771,29 @@ export interface TreeViewAlpha<in out TSchema extends ImplicitFieldSchema | Unsa
|
|
|
498
771
|
* Only valid to call when this view's {@link SchemaCompatibilityStatus.canInitialize} is true.
|
|
499
772
|
*
|
|
500
773
|
* Enables staged schema upgrades declared by {@link ITreeViewConfigurationAlpha.stagedUpgradePolicy} when generating the initial stored schema.
|
|
501
|
-
* Once a staged schema upgrade has been enabled in a document's stored schema, loading that document
|
|
502
|
-
* with a view that does not include equivalent staged members in its construction-time policy will cause
|
|
503
|
-
* a subsequent `upgradeSchema` call to throw a `UsageError` because the stored schema already contains
|
|
504
|
-
* the upgraded members and the new target would narrow it.
|
|
505
774
|
*
|
|
506
775
|
* Applications should typically call this function before attaching a `SharedTree`.
|
|
507
776
|
* @param content - The content to initialize the tree with.
|
|
508
777
|
*/
|
|
509
778
|
initialize(content: InsertableField<TSchema>): void;
|
|
779
|
+
/**
|
|
780
|
+
* Checks whether a staged schema upgrade has been applied to the document's stored schema.
|
|
781
|
+
*
|
|
782
|
+
* @param upgrade - The upgrade token to check.
|
|
783
|
+
*
|
|
784
|
+
* @returns The {@link StagedUpgradeStatus} of the upgrade.
|
|
785
|
+
*
|
|
786
|
+
* @remarks
|
|
787
|
+
* Use this to determine whether a document has already been upgraded, for example when deciding
|
|
788
|
+
* whether to include an upgrade token in the view configuration after a feature flag rollback.
|
|
789
|
+
*
|
|
790
|
+
* Results are derived from this view's schema and the current stored schema.
|
|
791
|
+
* The full schema is checked even when the view is incompatible with the stored schema, so the
|
|
792
|
+
* result includes all locations declared by the view schema.
|
|
793
|
+
*/
|
|
794
|
+
isStagedUpgradeEnabled(upgrade: SchemaUpgrade): StagedUpgradeStatus;
|
|
510
795
|
readonly events: Listenable<TreeViewEvents & TreeBranchEvents>;
|
|
511
|
-
fork(): ReturnType<
|
|
796
|
+
fork(): ReturnType<UntypedTreeView["fork"]> & TreeViewAlpha<TSchema>;
|
|
512
797
|
}
|
|
513
798
|
/**
|
|
514
799
|
* Information about a view schema's compatibility with the document's stored schema.
|
|
@@ -596,7 +881,7 @@ export interface SchemaCompatibilityStatus {
|
|
|
596
881
|
readonly canInitialize: boolean;
|
|
597
882
|
}
|
|
598
883
|
/**
|
|
599
|
-
* Events for {@link
|
|
884
|
+
* Events for {@link UntypedTreeView}.
|
|
600
885
|
* @sealed @alpha
|
|
601
886
|
*/
|
|
602
887
|
export interface TreeBranchEvents {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../../src/simple-tree/api/tree.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE/F,OAAO,KAAK,EACX,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,iBAAiB,EACjB,MAAM,qBAAqB,CAAC;AAO7B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../../src/simple-tree/api/tree.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE/F,OAAO,KAAK,EACX,cAAc,EACd,cAAc,EACd,kBAAkB,EAGlB,sBAAsB,EACtB,iBAAiB,EACjB,oBAAoB,EACpB,MAAM,qBAAqB,CAAC;AAO7B,OAAO,KAAK,EACX,sBAAsB,EACtB,4BAA4B,EAC5B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,aAAa,EAAc,MAAM,kBAAkB,CAAC;AAClE,OAAO,KAAK,EACX,mBAAmB,EACnB,eAAe,EACf,oCAAoC,EACpC,aAAa,EACb,UAAU,EACV,0BAA0B,EAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CA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