Skip to content

feat(collections/unstable): add "union" to DeepMergeOptions.arrays#7049

Open
DonBLong wants to merge 1 commit intodenoland:mainfrom
DonBLong:feat/collections/deep-merge/arrays-union
Open

feat(collections/unstable): add "union" to DeepMergeOptions.arrays#7049
DonBLong wants to merge 1 commit intodenoland:mainfrom
DonBLong:feat/collections/deep-merge/arrays-union

Conversation

@DonBLong
Copy link

Adds a "union" MergingStrategy for arrays only, through a new exported type ArraysMergingStrategy. Implementation uses the union function imported from "./union.ts"

closes: #7048

@DonBLong DonBLong requested a review from kt3k as a code owner March 13, 2026 16:05
@CLAassistant
Copy link

CLAassistant commented Mar 13, 2026

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link

codecov bot commented Mar 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.39%. Comparing base (260f5b8) to head (d30e9e7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7049      +/-   ##
==========================================
+ Coverage   94.38%   94.39%   +0.01%     
==========================================
  Files         628      629       +1     
  Lines       50175    50286     +111     
  Branches     8840     8868      +28     
==========================================
+ Hits        47357    47468     +111     
  Misses       2251     2251              
  Partials      567      567              

☔ 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.

@DonBLong DonBLong force-pushed the feat/collections/deep-merge/arrays-union branch from 8fde6b3 to 444e16e Compare March 14, 2026 10:33
Adds a `"union"` `MergingStrategy` for `arrays` only, through a new exported type `ArraysMergingStrategy`.
Implementation uses the `union` `function` imported from `"./union.ts"`
@DonBLong DonBLong force-pushed the feat/collections/deep-merge/arrays-union branch from 444e16e to d30e9e7 Compare March 16, 2026 12:20
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.

Add "union" MergingStrategy to DeepMergingOptions.arrays in @std/collections/deep-merge

2 participants