Skip to content

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

Merged
merged 4 commits into from
May 20, 2022
Merged

Mark Auth error callbacks as deprecated #6262

merged 4 commits into from
May 20, 2022

Conversation

hsubox76
Copy link
Contributor

@hsubox76 hsubox76 commented May 10, 2022

error and completed callbacks in onAuthStateChanged() and onIdTokenChanged() 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.

  • We can't use the actual @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.
  • The @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.

@changeset-bot
Copy link

changeset-bot bot commented May 10, 2022

⚠️ No Changeset found

Latest commit: e7f2c4d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@hsubox76 hsubox76 requested a review from egilmorez May 10, 2022 18:06
@google-oss-bot
Copy link
Contributor

google-oss-bot commented May 10, 2022

Size Report 1

Affected Products

  • firebase

    TypeBase (e5a4654)Merge (792a421)Diff
    firebase-auth-cordova.js471 kB472 kB+254 B (+0.1%)
    firebase-auth-react-native.js495 kB495 kB+254 B (+0.1%)
    firebase-auth.js417 kB417 kB+254 B (+0.1%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/PlrqWrCBo3.html

@google-oss-bot
Copy link
Contributor

google-oss-bot commented May 10, 2022

@google-oss-bot google-oss-bot added the doc-changes PRs that affect docs label May 10, 2022
Copy link
Contributor

@egilmorez egilmorez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG, thanks!

@hsubox76 hsubox76 merged commit 5d5d6ec into master May 20, 2022
@hsubox76 hsubox76 deleted the ch-auth-callback branch May 20, 2022 16:23
@firebase firebase locked and limited conversation to collaborators Jun 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
doc-changes PRs that affect docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants