Skip to content

Commit 2eb32fc

Browse files
committed
#6937 Neo.mergeConfig() => back to replace as the default
1 parent adf70e8 commit 2eb32fc

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/Neo.mjs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,10 +353,8 @@ Neo = globalThis.Neo = Object.assign({
353353
return Neo.merge(Neo.clone(defaultValue, true), instanceValue);
354354
} else if (typeof strategy === 'function') {
355355
return strategy(defaultValue, instanceValue)
356-
} else if (strategy === 'replace') { // Explicitly handle 'replace'
357-
return instanceValue;
358-
} else { // Default to 'deep' if strategy is not recognized or undefined
359-
return Neo.merge(Neo.clone(defaultValue, true), instanceValue);
356+
} else { // Default to 'replace' or if strategy is not recognized
357+
return instanceValue
360358
}
361359
},
362360

0 commit comments

Comments
 (0)