Skip to content

Releases: pveyes/htmr

v0.8.4

02 Jul 07:42
Compare
Choose a tag to compare

Fixed typescript definition for 2nd argument

v0.8.3

02 Jul 07:42
Compare
Choose a tag to compare

Fixed issue where boolean attributes are not converted correctly

Previously converting this html won't work

<iframe allowfullscreen />

v0.8.2

02 Jul 07:44
Compare
Choose a tag to compare
  • Fixed bundle issue due to tsc
  • Added dangerouslySetChildren option #92

v0.8.1

09 May 12:04
Compare
Choose a tag to compare

Better typings for options.transform

v0.8.0

09 May 08:20
Compare
Choose a tag to compare
  • Publish typescript typings in npm package
  • Server side bundle is now built using tsc instead of rollup

v0.7.0

22 May 09:15
Compare
Choose a tag to compare

Breaking Changes

// before
convert(html, { map });
// after
convert(html, { transform });

Features

  • Add preserveAttributes option 047a0bf
  • Throw error on invalid input type (expect string) d074def

v0.6.3

22 May 09:18
Compare
Choose a tag to compare

Fix

  • Remove whitespace from thead & tfoot but not th/td (#34)

v0.6.2

22 May 09:19
Compare
Choose a tag to compare

Fix

  • remove whitespace in table elements 24988b5

v0.6.1

26 Jan 13:59
Compare
Choose a tag to compare

Fix

  • Remove module field in package.json causing webpack with target: 'node' to fail

v0.6.0

26 Jan 07:23
Compare
Choose a tag to compare

Breaking Changes

  • 2nd argument is now options object instead of map
// before
convert(html, map);
// after
convert(html, { map });

Fix

  • Decode html entities in attribute value
  • Decode html entities in text node for default mapper