-
Notifications
You must be signed in to change notification settings - Fork 559
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
Shared Tree: Use minVersionForCollab instead of oldestCompatibleClient to specify min client version #25402
Changes from 13 commits
633221e
7b1debe
6dfa5d0
aebfb2a
5e2a9b2
43d759b
26ba203
7c92d92
d9c3f06
9ca796a
b735d1e
4cb35b6
5570285
91bc67c
6ea3d80
67fe66c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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. | ||
|
|
||
| ##### Migrating: applications using `AzureClient`/`OdspClient` | ||
|
Check failure on line 29 in .changeset/warm-windows-cross.md
|
||
TommyBrosman marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| If an application is using the declarative model (e.g., `AzureClient`/`OdspClient`), it should continue to call `configuredSharedTree` | ||
|
Check failure on line 31 in .changeset/warm-windows-cross.md
|
||
| but specify `minVersionForCollab` instead: | ||
|
|
||
| ```ts | ||
| const factory = configuredSharedTree({ ..., minVersionForCollab: "2.52.0" }); | ||
| ``` | ||
|
|
||
| ##### Migrating: applications calling `loadContainerRuntime` | ||
|
Check failure on line 38 in .changeset/warm-windows-cross.md
|
||
|
|
||
| If an application is initializing the `ContainerRuntime` directly, it should now specify the `minVersionForCollab` there: | ||
|
|
||
| ```ts | ||
| const runtime = await loadContainerRuntime({ ..., minVersionForCollab: "2.52.0" }); | ||
| ``` | ||
Uh oh!
There was an error while loading. Please reload this page.