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

feat(collections): option to merge undefined in deepMerge #6522

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

WWRS
Copy link
Contributor

@WWRS WWRS commented Mar 27, 2025

resolves #4752

Default is "replace", which is the existing behavior.

@WWRS WWRS requested a review from kt3k as a code owner March 27, 2025 16:18
Copy link

codecov bot commented Mar 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.22%. Comparing base (b5a5fe4) to head (88605c0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6522   +/-   ##
=======================================
  Coverage   95.21%   95.22%           
=======================================
  Files         577      577           
  Lines       43381    43385    +4     
  Branches     6487     6489    +2     
=======================================
+ Hits        41307    41312    +5     
+ Misses       2034     2033    -1     
  Partials       40       40           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

*
* @default {"replace"}
*/
undefined?: "replace" | "ignore";
Copy link
Member

Choose a reason for hiding this comment

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

strange that the key is a keyword undefined

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's true. Maybe undefineds would be better?

@WWRS WWRS force-pushed the deepmerge-undef branch from ec699a0 to 206ba3b Compare April 10, 2025 14:18
@WWRS WWRS force-pushed the deepmerge-undef branch from 206ba3b to 88605c0 Compare April 10, 2025 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature request(collections)] option to merge undefined in deepMerge
2 participants