-
Notifications
You must be signed in to change notification settings - Fork 560
Shared Tree: Use minVersionForCollab instead of oldestCompatibleClient to specify min client version #25402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Shared Tree: Use minVersionForCollab instead of oldestCompatibleClient to specify min client version #25402
Changes from 14 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
633221e
- Changed all usages of FluidClientVersion to MinimumVersionForCollab.
TommyBrosman 7b1debe
- Tweaked changeset to comply with Vale.
TommyBrosman 6dfa5d0
Update .changeset/warm-windows-cross.md
TommyBrosman aebfb2a
New policy for oldestCompatibleClient:
TommyBrosman 5e2a9b2
Update .changeset/warm-windows-cross.md
TommyBrosman 43d759b
Apply suggestion from @CraigMacomber
TommyBrosman 26ba203
Apply suggestion from @CraigMacomber
TommyBrosman 7c92d92
PR feedback.
TommyBrosman d9c3f06
- Added minVersionForCollab on SharedTreeOptions as well as CodecWrit…
TommyBrosman 9ca796a
Minor: tweaked md line length.
TommyBrosman b735d1e
Update packages/dds/tree/src/treeFactory.ts
TommyBrosman 4cb35b6
Merge branch 'main' into set-st-flags
TommyBrosman 5570285
Merge branch 'set-st-flags' of https://github.com/TommyBrosman/FluidF…
TommyBrosman 91bc67c
Vale.
TommyBrosman 6ea3d80
Fixed tree-cli-app.
TommyBrosman 67fe66c
Regenerated fluid-framework.alpha.api.md.
TommyBrosman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,44 @@ | ||
| --- | ||
| "@fluidframework/tree": minor | ||
| "fluid-framework": minor | ||
| "__section": tree | ||
| --- | ||
| MinimumVersionForCollab is now used in place of tree's alpha FluidClientVersion | ||
|
|
||
| `FluidClientVersion`: No longer used as the type for Fluid Client versions in APIs/codecs (for example, `oldestCompatibleClient`). | ||
| Additionally, `FluidClientVersion` is now a const object with members that declare specific [`MinimumVersionForCollab`](https://fluidframework.com/docs/api/runtime-definitions/minimumversionforcollab-typealias) versions. | ||
|
Check failure on line 9 in .changeset/warm-windows-cross.md
|
||
| These are intended to be used with APIs that require a version (such as `TreeAlpha.exportCompressed`). | ||
|
|
||
| `CodecWriteOptions` and `SharedTreeOptions`: `oldestCompatibleClient` has been replaced by `minVersionForCollab`. | ||
| See migration guide below. | ||
|
|
||
| `TreeAlpha.exportCompressed`: The `options` parameter previously had `oldestCompatibleClient` and now has `minVersionForCollab`. | ||
| Migrating requires a rename. Existing `FluidClientVersion.*` values are now `MinimumClientVersion`s. | ||
|
|
||
| #### Migrating | ||
|
|
||
| If an application is calling `loadContainerRuntime` directly and previously specified the minimum client version when | ||
| initializing Shared Tree like: | ||
|
|
||
| ```ts | ||
| const factory = configuredSharedTree({ ..., oldestCompatibleClient: FluidClientVersion.v2_52 }); | ||
| ``` | ||
|
|
||
| Then the new implementation depends on how the application initializes Fluid. | ||
|
|
||
| ##### Applications using `AzureClient`/`OdspClient` | ||
|
|
||
| If an application is using the declarative model (for example, `AzureClient`/`OdspClient`), it should continue to call `configuredSharedTree` | ||
| but specify `minVersionForCollab` instead: | ||
|
|
||
| ```ts | ||
| const factory = configuredSharedTree({ ..., minVersionForCollab: "2.52.0" }); | ||
| ``` | ||
|
|
||
| ##### Applications calling `loadContainerRuntime` | ||
|
|
||
| If an application is initializing the `ContainerRuntime` directly, it should now specify the `minVersionForCollab` there: | ||
|
|
||
| ```ts | ||
| const runtime = await loadContainerRuntime({ ..., minVersionForCollab: "2.52.0" }); | ||
| ``` | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.