Skip to content

Releases: stackhtml/hstream

v3.1.1

16 Jun 12:14
v3.1.1
a345fdb
Compare
Choose a tag to compare
  • Update css-what, resolving denial of service warning

v3.1.0

16 Jun 12:13
v3.1.0
a334d58
Compare
Choose a tag to compare
  • Add support for partial class matching, e.g. .foo -> <div class="foo bar"></div>
  • Fix complex attribute selectors, e.g. [class^="hello"]
  • Fix crash on attributes with newline characters

v3.0.0

11 Feb 16:29
01fd75e
Compare
Choose a tag to compare
  • Update dependencies. This major version bump is out of caution in case the parsing for the underlying HTML or CSS selector libraries changed.

v2.0.0

24 Jan 10:47
68d3122
Compare
Choose a tag to compare
  • Update dependencies. hstream now requires Node.js 8 or up.

v1.2.0

02 Mar 11:17
3457524
Compare
Choose a tag to compare
  • Add ability to append or prepend to attributes (e9b71c3)

    hstream({
      '#app': {
        class: { prepend: 'beep ', append: ' boop' }
      }
    })
  • Remove attributes by setting attrName: null (32480ba)

  • Edit attributes by passing a function (32480ba)

    hstream({
      '#app': {
        title: function (prev) { return prev.toUpperCase() }
      }
    })
  • Edit html contents by passing a function (b562c5f)

    hstream({
      'code': {
        _html: function (source) {
          return highlightHTML(source)
        }
      }
    })