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

Expand custom #1

Closed
wants to merge 48 commits into from
Closed

Conversation

RebeccaStevens
Copy link

Based off TehShrike#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)

TehShrike and others added 30 commits October 24, 2019 11:28
One example was using spaces for indentation.  Noticed by @midnightcodr and reported in TehShrike#174
Fix inconsistent indentation
…erged

Also reverse the if check so you don't have to think your way through two negations and an OR

Inspired by TehShrike#176
This is to help ensure that markdown files are rendered similarly by different renders.
update rollup plugins as well
@RebeccaStevens
Copy link
Author

Oops wrong repo

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.

2 participants