-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid exporting SharedObject as public (#19717)
## Description Remove the requirement that factories are classes, then avoid exporting DDS classes and SharedObject (and some related types) as public: they are instead exported as `@alpha`. ## Breaking Changes Users of DDS concreate classes should migrate onto the corresponding interface types. Any code using APIs intended only for authoring of new DDSes (such as SharedObject, SharedObjectCore and EventEmitterWithErrorHandling) will have to use the unstable `@alpha` APIs, and should find alternatives or be up streamed into this repository. This also makes ContainerSchema read-only: as this type is intended for defining input to the these packages this should make the APIs more tolerant and thus be non-breaking, however its possible for some users of this type to use it in ways where this could be a breaking change: any such users should remove their mutations and/or use different types.
- Loading branch information
1 parent
d7d712c
commit ae1d0be
Showing
22 changed files
with
202 additions
and
266 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,10 @@ | ||
--- | ||
"fluid-framework": minor | ||
"@fluidframework/telemetry-utils": minor | ||
--- | ||
|
||
EventEmitterWithErrorHandling is no longer publicly exported | ||
|
||
EventEmitterWithErrorHandling is intended for authoring DDSes, and thus is only intended for use within the Fluid Framework client packages. | ||
It is no longer publicly exported: any users should fine their own solution or be upstreamed. | ||
EventEmitterWithErrorHandling is available for now as `@alpha` to make this migration less disrupting for any existing users. |
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,10 @@ | ||
--- | ||
"fluid-framework": minor | ||
"@fluidframework/shared-object-base": minor | ||
--- | ||
|
||
SharedObject classes are no longer exported as public | ||
|
||
`SharedObject` and `SharedObjectCore` are intended for authoring DDSes, and thus are only intended for use within the Fluid Framework client packages. | ||
They is no longer publicly exported: any users should fine their own solution or be upstreamed. | ||
`SharedObject` and `SharedObjectCore` are available for now as `@alpha` to make this migration less disrupting for any existing users. |
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,12 @@ | ||
--- | ||
"fluid-framework": minor | ||
"@fluidframework/map": minor | ||
"@fluidframework/tree": minor | ||
--- | ||
|
||
DDS classes are no longer publicly exported | ||
|
||
SharedMap and SharedTree now only export their factories and the interface types. | ||
The actual concrete classes which leak implementation details are no longer exported. | ||
Users of the `SharedMap` type should use `ISharedMap`. | ||
Users of the `SharedTree` type should use `ISharedTree`. |
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,8 @@ | ||
--- | ||
"fluid-framework": minor | ||
"@fluidframework/fluid-static": minor | ||
--- | ||
|
||
ContainerSchema is now readonly | ||
|
||
ContainerSchema type is intended for defining input to the these packages. This should make the APIs more tolerant and thus be non-breaking, however its possible for some users of ContainerSchema to use it in ways where this could be a breaking change: any such users should remove their mutations and/or use a different type. |
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.