这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@mesqueeb
Copy link
Contributor

🎁 Pull Request

  • Used a clear / meaningful title for this pull request
  • Tested the changes in your own code (on your projects)
  • Added / Edited tests to reflect changes (tst folder)
  • Have read the Contributing part of the Readme
  • Passed npm test

Fixes

fixes #90

Why have you made changes?

Object.Assign wasn't using deep merge

What changes have you made?

  • Added new AssignDeep to use a deep merge

What tests have you updated?

haven't updated the tests yet

Is there any breaking changes?

  • Yes, I changed the public API & documented it
  • Yes, I changed existing tests
  • No, I added to the public API & documented it
  • No, I added to the existing tests
  • I don't know

Anything else worth mentioning?

The PR process is a bit overwhelming and I just needed something up and running fast, that's why I made it on my fork.

This PR was made just in case, but feel free to close it because I didn't add tests. 😉

@mesqueeb mesqueeb requested a review from millsp as a code owner February 12, 2020 07:39
Copy link
Owner

@millsp millsp left a comment

Choose a reason for hiding this comment

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

Hi @mesqueeb

I need a few thing for pulling this:

  • The tests must pass. This is a heavy type so it's possible it does not.
  • Your changes must go into the Assign.ts file.
  • Add a deep option on Assign, like for Merge

Cheers

@mesqueeb mesqueeb closed this Feb 12, 2020
@mesqueeb mesqueeb reopened this Feb 12, 2020
@mesqueeb mesqueeb closed this Feb 12, 2020
@mesqueeb
Copy link
Contributor Author

@pirix-gh
these are the errors I get on npm test
image

@mesqueeb
Copy link
Contributor Author

@pirix-gh I did:

  • Add a deep option on Assign, like for Merge

and I did this in Assign.ts, like you asked.

The tests don't work, but it's a problem with Object, not with my PR.
I thank you very much for your consideration!!
🎉

@millsp millsp closed this Feb 13, 2020
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.

Use Object.Merge with unlimited arguments

2 participants