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

Update deep merge interface (api) #217

Draft
wants to merge 40 commits into
base: v5
Choose a base branch
from

Conversation

RebeccaStevens
Copy link

@RebeccaStevens RebeccaStevens commented Nov 28, 2020

Based off #215

Changes

  • Cloning is now off by default
  • A custom clone function can now be provided
    • This is primarily to handle the case of cloning non-plain objects
  • Updated the exposed internals
    • add deepClone(value)
      • deep clones a value in the same way that cloneUnlessOtherwiseSpecified did except an options object isn't supplied, the same original one is used.
    • add deepMerge(x, y)
      • deep merges two values in the same way that top level deepmerge does except an options object isn't supplied, the same original one is used.
    • remove cloneUnlessOtherwiseSpecified(value)
      • function no longer exists - replaced by getSubtree (not exposed) and deepClone (exposed)

closes #212
fixes #201
closes #163

Rebecca Stevens added 30 commits November 17, 2020 13:34
This is to help ensure that markdown files are rendered similarly by different renders.
update rollup plugins as well
Travis has been running really slow lately
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant