Skip to content

snabbdom fixes and refactoring

Compare
Choose a tag to compare
@tdumitrescu tdumitrescu released this 04 Dec 22:28
· 116 commits to master since this release

Primarily fixes each functionality for snabbdom, with tests and updates to ensure that child node lists are flat (comprised of single elements without superfluous nesting of arrays, which virtual-dom happily accepts but snabb does not). Most significantly the implementation of visitEach no longer uses Array.map but instead loops through nodes running Array.concat to keep lists flattened.

Internally, continues a longer-term cleanup project with some minor lib code refactoring and lots of test cleanup (expect.js replacing raw node.js asserts for better failure output, docstrings, etc).