1.1.0
This is a minor release that adds one new feature to node-route.
Features
- In 1.1.0 node-route now exports the
getRoute
function that takes a Node and produces an object that contains an ID for that Node. This function has always existed internally but is now exported. - Additionally the getRoute object can take an
options
object that contains the following options:collapseTextNodes
(Boolean): If true, TextNodes will not be counted when siblings of each other. This is to replicate how the browser parses HTML.