Skip to content

1.1.0

Compare
Choose a tag to compare
@matthewp matthewp released this 01 Jun 13:05
· 18 commits to master since this release

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.