-
Notifications
You must be signed in to change notification settings - Fork 565
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
TS definition and API doc for setSyncLogger #2260
Conversation
Because the API has not been published or documented yet we should be able to easily change its name. It's only used a handful of places in our own code. I would suggest that we simplify the naming before it goes out as a documented API:
Alternatively I think we should keep a list of breaking changes that we want to do for a future major version of Realm JS and I would add this renaming to that list. |
This doesn't need to be a breaking change. We can have a |
That's also a possibility, but it would be a breaking change to first publish types for I'm afraid to be bikeshedding here. We could just merge this, but if we want to follow a process of implementing a fast solution and documenting it when we learn from using it, we should be willing to take the hit of adapting the fast solution to the stuff we're learned along the way. If not - we should just document and provide types for functions like this, right away. |
I agree with @kraenhansen ... having the method named There is no reason to pollute the API with methods we intend to remove anyway, especially if they haven't been made public yet. |
We can't remove the method, but we can leave it undocumented and document just the new one. |
Required to be released together with https://github.com/realm/realm-js-private/pull/518 |
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.
Great!
This closes #2125 and https://github.com/realm/realm-js-private/issues/517
☑️ ToDos
[ ] 📝Compatibility
label is updated or copied from previous entry[ ] 🚦 Tests[ ] 📝 Public documentation PR created or is not necessary[ ] 💥Breaking
label has been applied or is not necessaryIf this PR adds or changes public API's:
[ ] Chrome debug API is updated if API is available on React Native