:leaves: Agnostic tree traversal library.
This release focuses on BFS, performance, byte loss and API consistency.
Welcome to BFS traversal 🎉
1.0.0
brings a x3/4
performance boost compared to 0.6.1
. The library has been completely rewritten to be more performant and optimizer-friendly:
Array#pop
when possible.Array#shift
.Context
internal flags are now boolean
s.We now expose a prebuilt minified version of 1087 bytes
gziped:
uglify
has been configured to mangle internal properties in order save more bytes.gzip
handles redundancies by design.The following changes have been made:
childrenKey
has been replaced by a getChildren
function that returns the children of a node.Context
operation, which was not exactly the case before.Context
does not expose the path
anymore. It's a greedy feature (especially for BFS) and it's something the user can achieve on its own if it's really needed.