-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate ContainerRuntime class (#23331)
Precursor to #23329. We intend to mark the class `ContainerRuntime` as `@internal` which will give us great freedom to iterate on its internals freely - it is an implementation detail after all! To do so we need to put it on a deprecation path so any few remaining usages in partner code are migrated off `ContainerRuntime`, like so: * When using it as a type, replace it with an interface like `IContainerRuntime` (or in rare cases, `IRuntime`) * When using the static function `ContainerRuntime.loadRuntime` replace it with the free function `loadContainerRuntime`. --------- Co-authored-by: Alex Villarreal <[email protected]> Co-authored-by: Joshua Smithrud <[email protected]>
- Loading branch information
1 parent
35e9227
commit dc48446
Showing
12 changed files
with
93 additions
and
19 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,24 @@ | ||
--- | ||
"@fluidframework/aqueduct": minor | ||
"@fluidframework/container-runtime": minor | ||
--- | ||
--- | ||
"section": deprecation | ||
--- | ||
|
||
The ContainerRuntime class is now deprecated | ||
|
||
The class `ContainerRuntime` is deprecated and will no longer be exported starting in version 2.20.0. | ||
|
||
There are two possible migration paths to stop using `ContainerRuntime`: | ||
|
||
* When using it as a type, replace it with an interface like `IContainerRuntime` | ||
* When using the static function `ContainerRuntime.loadRuntime` replace it with the free function `loadContainerRuntime`. | ||
|
||
`BaseContainerRuntimeFactory` has some changes as well, since it exposed `ContainerRuntime` in several function signatures: | ||
|
||
* `instantiateFirstTime` - Takes the wider type `IContainerRuntime` instead of `ContainerRuntime` | ||
* `instantiateFromExisting` - Takes the wider type `IContainerRuntime` instead of `ContainerRuntime` | ||
* `preInitialize` - deprecated as well, since it returns `ContainerRuntime` | ||
|
||
These functions should never be called directly anyway - use `BaseContainerRuntimeFactory.instantiateRuntime` instead. |
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
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