forked from microsoft/FluidFramework
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tree: Add alpha tree configuration APIs (microsoft#22701)
## Description See changeset for details. Based on changes from microsoft#22566
- Loading branch information
1 parent
6a2b681
commit 40d3648
Showing
13 changed files
with
256 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
"fluid-framework": minor | ||
"@fluidframework/tree": minor | ||
--- | ||
--- | ||
"section": tree | ||
--- | ||
|
||
Add alpha API for providing SharedTree configuration options | ||
|
||
A new alpha `configuredSharedTree` had been added. | ||
This allows providing configuration options, primarily for debugging, testing and evaluation of upcoming features. | ||
The resulting configured `SharedTree` object can then be used in-place of the regular `SharedTree` imported from `fluid-framework`. | ||
|
||
```typescript | ||
import { | ||
ForestType, | ||
TreeCompressionStrategy, | ||
configuredSharedTree, | ||
typeboxValidator, | ||
} from "@fluid-framework/alpha"; | ||
// Maximum debuggability and validation enabled: | ||
const SharedTree = configuredSharedTree({ | ||
forest: ForestType.Expensive, | ||
jsonValidator: typeboxValidator, | ||
treeEncodeType: TreeCompressionStrategy.Uncompressed, | ||
}); | ||
// Opts into the under development optimized tree storage planned to be the eventual default implementation: | ||
const SharedTree = configuredSharedTree({ | ||
forest: ForestType.Optimized, | ||
}); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.