-
Notifications
You must be signed in to change notification settings - Fork 633
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
chore: simplify deprecation notice check #4577
Conversation
I find the existing check of removal version numbers is useful. I don't see the reason to remove it. |
It did. But not all deprecation notices contain versions (example). We currently compensate by skipping checking this file entirely, which means skipping the checking of possibly valid deprecation notices. |
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.
LGTM
Note: This is a temporary change. Once we migrate to JSR, I'll add a check that ensures deprecation notices contain a semver string. |
This change simplifies the deprecation notice check by making it just check whether a deprecation notice comes with a message. Deprecation notices have also been changed to no longer include brackets at the beginning of the sentence, which always seemed odd to me.
Previously, this check was stricter than it needed to be and has become a little outdated, given that the way we deprecate APIs is evolving.
The script execution time has reduced from ~5.6s to ~3.