Skip to content
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

Merged
merged 8 commits into from
Apr 17, 2024
Merged

Conversation

iuioiua
Copy link
Contributor

@iuioiua iuioiua commented Apr 12, 2024

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.

@kt3k
Copy link
Member

kt3k commented Apr 12, 2024

I find the existing check of removal version numbers is useful. I don't see the reason to remove it.

@iuioiua
Copy link
Contributor Author

iuioiua commented Apr 12, 2024

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.

@iuioiua iuioiua enabled auto-merge (squash) April 15, 2024 11:23
Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

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

LGTM

@iuioiua iuioiua merged commit 3f9d4a8 into main Apr 17, 2024
12 checks passed
@iuioiua iuioiua deleted the simplify-deprecation-check branch April 17, 2024 06:36
@iuioiua
Copy link
Contributor Author

iuioiua commented Apr 17, 2024

Note: This is a temporary change. Once we migrate to JSR, I'll add a check that ensures deprecation notices contain a semver string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants