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): omit 타입 변경 및 deepCopy 개선 #297

Merged
merged 1 commit into from
Jul 3, 2024
Merged

Conversation

ssi02014
Copy link
Contributor

@ssi02014 ssi02014 commented Jul 3, 2024

Overview

omit 타입 변경 및 deepCopy 개선

기존 deepCopy는 객체의 경우 for in문을 통해서 객체를 순회하기 때문에 symbol이 제거되었습니다.
이를 개선하기 위해 Reflect.ownKeys 를 사용하는 방향으로 수정합니다.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/ownKeys

PR Checklist

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

@ssi02014 ssi02014 added refactor 리팩토링 @modern-kit/utils @modern-kit/utils fix 버그 수정 및 코드 개선 labels Jul 3, 2024
@ssi02014 ssi02014 self-assigned this Jul 3, 2024
Copy link

changeset-bot bot commented Jul 3, 2024

🦋 Changeset detected

Latest commit: 08eb11a

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 ssi02014 requested a review from Sangminnn July 3, 2024 06:47
@ssi02014 ssi02014 merged commit 1192591 into main Jul 3, 2024
2 checks passed
@ssi02014 ssi02014 deleted the fix/omit branch July 3, 2024 06:47
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 refactor 리팩토링
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant