Conversation
|
Oops I didn't search in other repositories, I think that will need another PR, would like to hear some inputs from maintainers before doing that. |
|
Taking a step back, wondering if we can use |
|
I think some libraries might store functions in the |
|
Sorry but I don‘t think this is possible. I tried structuredClone. It passed tests. It worked in several of the 100s of repos. Then in failed in some. Some things put functions on data. This requires lots and lots of tests to have parity with |
This comment has been minimized.
This comment has been minimized.
|
Hi team! Could you describe why this has been marked as external? Thanks, |
Initial checklist
Description of changes
Removed the remaining CJS dependency
extend, since unified itself is ESM-only, it would be great if all deps are also ESM so it doesn't need bundling to work in browser environments.The
extendpackage is being used as a deep merge utility, while its core functionality is being replaced byObject.assign(). I think a proper deep merge utility would do better, butextendhas some behaviours that may differs from existing deep merge utilities, so I rewrote the original utility with modern ESM, shouldn't cause any breaking changes.I had to lower the test coverage as some edge cases are not easily reached, let me know if this isn't desirable.