-
Notifications
You must be signed in to change notification settings - Fork 537
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
Remove the exposure of SharedDirectory API #20030
Remove the exposure of SharedDirectory API #20030
Conversation
⯆ @fluid-example/bundle-size-tests: -156 Bytes
Baseline commit: f27289d |
@@ -1027,7 +1027,7 @@ describeCompat("SharedDirectory orderSequentially", "NoCompat", (getTestObjectPr | |||
assert.notEqual(error, undefined, "No error"); | |||
assert.equal(error?.message, errorMessage, "Unexpected error message"); | |||
assert.equal(containerRuntime.disposed, false); | |||
assert.equal(sharedDir.countSubDirectory(), 0); | |||
assert.equal(sharedDir.countSubDirectory?.(), 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the only implementation of ISharedDirectory is SharedDirectory, so it seems like this methods should be able to be made non-optional on it, allowing these tests (and possible apps using it as well) to remain unchanined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be good to try and figure out why that method was made optional in the first place as its doc's don't say. Maybe there are third parties implementing the interface that can't implement that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reviewed the update history of this method, and it appears that the FFX repo did implement the IDirectory
interface. Somehow we made this method optional. https://github.com/microsoft/FluidFramework/pull/9766/files#r844412897
Add @jatgarg here
Co-authored-by: Scarlett Lee <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, mostly some organizational nits. We'll need to do some merging with concepts added in #20028. So keep an eye on that before merging.
packages/test/test-version-utils/api-report/test-version-utils.api.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can ISerializableValue
and ISerializedValue
be removed from the public API as well? Doesn't look like they're referenced anymore.
Moved them to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Devtools change is good. Left a general comment about the changeset though.
"fluid-framework": minor | ||
"@fluidframework/map": minor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a discussion about this on another PR, I'm on the side that we should try to be deliberate about this bit in a changeset. What we're doing here qualifies as a major change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops it is automatically merged in, I will create a small PR to update it.
A follow-up update of #20030
Hide the class implementation of
SharedDirectory
and update the corresponding exports, a follow up fix of #19717AB#5799