I was doing a lot of DOM manipulation and needed wrapAll so ended up implementing it, if it's something you'd like feel free to take... or if you know a native way to do it so that's it's not needed please share as well ;) Tky Thomas!
Optimization + tests for wrap/wrapAll
Fixed replaceWith for case where target had no previousSibling
There was a problem with replaceWith, it was inserting the new content after the previousSibling of the old content, this failed when the old content was the firstChild. Switched to just using node.replaceChild, updated the tests and probably saved some bytes.