-
Notifications
You must be signed in to change notification settings - Fork 29
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 deepmerge
and isPlainObject
#946
base: v2
Are you sure you want to change the base?
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
🦋 Changeset detectedLatest commit: cd713f4 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 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
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 ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## v2 #946 +/- ##
==========================================
+ Coverage 78.35% 78.41% +0.05%
==========================================
Files 405 405
Lines 6640 6662 +22
==========================================
+ Hits 5203 5224 +21
- Misses 1437 1438 +1 ☔ View full report in Codecov by Sentry. |
Tonic UI DemoOn 2024-11-12 16:08:55 +0000, PR #946 (cd713f4) was successfully deployed. You can view it at the following link: |
CI Failure Feedback 🧐
✨ CI feedback usage guide:The CI feedback tool (
In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:
where Configuration options
See more information about the |
60e71c8
to
cd713f4
Compare
PR Type
Enhancement, Tests
Description
isPlainObject
function to determine if a value is a plain object.deepmerge
function to merge objects with options for cloning._deepClone
helper function for deep cloning objects.isPlainObject
anddeepmerge
functions.Changes walkthrough 📝
assertion.js
Add `isPlainObject` function for object validation
packages/utils/src/assertion.js
isPlainObject
function to check if a value is a plain object.shared.js
Implement `deepmerge` and `_deepClone` functions for object handling
packages/utils/src/shared.js
deepmerge
function to merge objects._deepClone
helper function for deep cloning 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 `deepmerge` and separate attribute tests
packages/utils/src/tests/shared.test.js
deepmerge
function.ariaAttr
anddataAttr
.index.test.js
Update expected exports to include new utilities
packages/utils/tests/index.test.js
isPlainObject
anddeepmerge
to expected exports.index.test.js
Update expected exports to include new utilities
packages/utils/src/tests/index.test.js
isPlainObject
anddeepmerge
to expected exports.