-
Notifications
You must be signed in to change notification settings - Fork 30
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
feat(utils): add merge
and isPlainObject
#946
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
🦋 Changeset detectedLatest commit: 90c3790 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
PR Reviewer Guide 🔍(Review updated until commit 0642b3d)Here are some key observations to aid the review process:
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## v2 #946 +/- ##
==========================================
+ Coverage 78.35% 78.41% +0.06%
==========================================
Files 405 405
Lines 6640 6677 +37
==========================================
+ Hits 5203 5236 +33
- Misses 1437 1441 +4 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
Tonic UI DemoOn 2024-11-23 07:02:58 +0000, PR #946 (90c3790) was successfully deployed. You can view it at the following link: |
60e71c8
to
cd713f4
Compare
deepmerge
and isPlainObject
merge
and isPlainObject
/improve |
/review |
Persistent review updated to latest commit 65e7a61 |
/describe |
PR Description updated to latest commit (65e7a61)
|
PR Code Suggestions ✨Latest suggestions up to 2c81177
Previous suggestions✅ Suggestions up to commit 65e7a61
Suggestions up to commit 5136f4e
|
Persistent review updated to latest commit 2c81177 |
… for `_deepClone(source)`
/review |
/improve |
PR Code Suggestions ✨No code suggestions found for the PR. |
Persistent review updated to latest commit 0642b3d |
/ask enhance test coverae for the |
Ask❓enhance test coverae for the Answer:To enhance test coverage for the
By adding these test cases, you can ensure that the |
0d1d98f
to
83700a4
Compare
83700a4
to
90c3790
Compare
PR Type
enhancement, tests
Description
merge
function inshared.js
to merge objects with deep clone capability.isPlainObject
function inassertion.js
to check if a value is a plain object.merge
andisPlainObject
.isEmptyArray
,isEmptyObject
,ariaAttr
, anddataAttr
.Changes walkthrough 📝
assertion.js
Add `isPlainObject` function to assertion utilities
packages/utils/src/assertion.js
isPlainObject
function to check if a value is a plain object.shared.js
Add `merge` function with deep clone capability
packages/utils/src/shared.js
merge
function to merge objects.assertion.test.js
Add tests for `isPlainObject` and refine existing tests
packages/utils/src/tests/assertion.test.js
isPlainObject
.isEmptyArray
andisEmptyObject
.shared.test.js
Add tests for `merge` function and refine attribute tests
packages/utils/src/tests/shared.test.js
merge
function.ariaAttr
anddataAttr
.index.test.js
Update export tests to include new utilities
packages/utils/tests/index.test.js
isPlainObject
andmerge
.tonic-ui-945-utils.md
Document new utility functions in changeset
.changeset/tonic-ui-945-utils.md
merge
andisPlainObject
functions.