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

fix(utils): isInRange, range 로직 개선 및 한글화 #554

Merged
merged 1 commit into from
Oct 31, 2024
Merged

Conversation

ssi02014
Copy link
Contributor

Overview

fix(utils): isInRange, range 로직 개선 및 한글화

PR Checklist

  • All tests pass.
  • All type checks pass.
  • I have read the Contributing Guide document.
    Contributing Guide

@ssi02014 ssi02014 added @modern-kit/utils @modern-kit/utils fix 버그 수정 및 코드 개선 labels Oct 31, 2024
@ssi02014 ssi02014 self-assigned this Oct 31, 2024
Copy link

changeset-bot bot commented Oct 31, 2024

🦋 Changeset detected

Latest commit: 3e89cac

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@modern-kit/utils Patch

Not sure what this means? Click here to learn what changesets are.

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

@ssi02014
Copy link
Contributor Author

ssi02014 commented Oct 31, 2024

@Sangminnn isInRange의 옵션으로 EqualOptions 객체를 제거합니다. 중첩 객체가 사용성을 많이 떨어뜨리는 것 같습니다. 🥲
props 객체에서 바로 inclusiveMin/Max 옵션을 받도록 인터페이스를 수정합니다.

Comment on lines -48 to -49
if (isNil(min) || isNil(max)) {
throw new Error('min and max values are invalid.');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

타입스크립트로 작성되어 min, max 값을 검증하는 것은 불필요해 보여 제거합니다!

Copy link

codecov bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.05%. Comparing base (33cf068) to head (3e89cac).
Report is 58 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #554      +/-   ##
==========================================
- Coverage   97.41%   97.05%   -0.36%     
==========================================
  Files         164      173       +9     
  Lines        1470     1563      +93     
  Branches      361      392      +31     
==========================================
+ Hits         1432     1517      +85     
- Misses         34       41       +7     
- Partials        4        5       +1     
Components Coverage Δ
@modern-kit/react 94.72% <87.44%> (-0.49%) ⬇️
@modern-kit/utils 99.72% <98.14%> (-0.28%) ⬇️

@ssi02014 ssi02014 merged commit 5b0d154 into main Oct 31, 2024
3 checks passed
@ssi02014 ssi02014 deleted the fix/range branch October 31, 2024 09:54
@github-actions github-actions bot mentioned this pull request Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix 버그 수정 및 코드 개선 @modern-kit/utils @modern-kit/utils
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant