-
Notifications
You must be signed in to change notification settings - Fork 946
Mark Auth error callbacks as deprecated #6262
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
Conversation
|
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1Affected ProductsNo changes between base commit (e5a4654) and merge commit (792a421).Test Logs |
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.
LG, thanks!
error
andcompleted
callbacks inonAuthStateChanged()
andonIdTokenChanged()
have always been no-op, even since before v9. Changing the docs to reflect this and to mark them as deprecated in preparation for removing them in a future major bump.@deprecated
tag on a single param, only on an entire function or interface, so I just put the word "Deprecated" in the comment. That means we won't get the big red box that devsite puts on deprecated items: https://firebase.google.com/docs/reference/js/analytics.item I don't think there's a way around it, I don't think devsite can put that box around params either, considering the way params are formatted.packages/auth/src/core/index.ts
is the actual source of truth for the docgen, so copied some comment formatting from the other file into here.@remarks
tag doesn't seem to have any effect on the actual body text in the reference doc: https://firebase.google.com/docs/reference/js/auth#onauthstatechanged However, in the table of contents at the top of that doc, it cuts off the part after the@remarks
tag for brevity within the table.