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

refactor(semver): make outside() more readable #4095

Merged
merged 11 commits into from
Jan 9, 2024

Conversation

timreichen
Copy link
Contributor

@timreichen timreichen commented Jan 4, 2024

  • makes outside() more readable by replacing the algorithm with already existing functions.

As pointed out in #3948 (comment), this seems now to be a weird function to include in the semver mod.

@timreichen timreichen requested a review from kt3k as a code owner January 4, 2024 13:23
@github-actions github-actions bot added the semver label Jan 4, 2024
Copy link
Contributor

@iuioiua iuioiua left a comment

Choose a reason for hiding this comment

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

Are you able to add the test case mentioned in #3948 (comment) ?

@timreichen
Copy link
Contributor Author

Are you able to add the test case mentioned in #3948 (comment) ?

Done.

@github-actions github-actions bot added the cli label Jan 4, 2024
cli/parse_args.ts Outdated Show resolved Hide resolved
@github-actions github-actions bot removed the cli label Jan 4, 2024
@timreichen
Copy link
Contributor Author

Actually, would it make sense to additionally deprecate outside() and link to !testRange(), gtr and ltr? These are the three use cases outside() handles.

Copy link
Contributor

@iuioiua iuioiua left a comment

Choose a reason for hiding this comment

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

LGTM, as this removes the dependency on outside(), which might be worth deprecating.

Please see the comment on the new test that I've added. We should relocate, then tweak this test if the reported behaviour is agreed upon to be a bug (which both Tim and I already do).

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

@kt3k kt3k merged commit 8c55d22 into denoland:main Jan 9, 2024
12 checks passed
@timreichen timreichen deleted the semver_refactor_outside branch January 9, 2024 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants