Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Releases: appcues/snabbdom-virtualize

0.7.0

25 Jul 18:18
Compare
Choose a tag to compare

Fixes/Improvements

  • #21 - handles multi-line classes
  • #26 - no longer drops whitespace but collapses it, per spec
  • #28 - now handles numerically referenced HTML entities (e.g. © -> ©)
  • #27 - handles control characters in attributes correctly
  • #24 - upgrades snabbdom peer dependency and snabbdom imports, so we're compatible with the newest version

Since we're updating our snabbdom peer dependency to a version that is not backwards compatible, I've performed a minor version number increase.

Thanks to @grimalschi, @mightyiam and @brettcrowell for their help with these issues.

0.6.0

29 Aug 16:51
Compare
Choose a tag to compare
  • Fixes #13, which allows this to work with snabbdom patch calls correctly.
  • Fixes #17, which allows for server-side support by adding a new context option.
  • Handles HTML entities that are set in element attribute values.

0.5.4

28 Jun 15:42
Compare
Choose a tag to compare
  • Handles inline style values with "!important". It used to parse out the value with !important, which would fail when snabbdom tries setting the value since setting `el.style.color = 'red !important' is invalid.

0.5.3

28 Jun 07:45
Compare
Choose a tag to compare
  • Upgrades html-parse-stringify2 version to support comments in HTML strings.
  • Added missing license file.
  • Pinned socket.io version to fix tests failing in IE9 being run via karma.

0.5.2

13 May 17:11
Compare
Choose a tag to compare
v0.5.2

0.5.2

0.5.1

12 May 20:10
Compare
Choose a tag to compare
  • Bug fix for correctly handling HTML entities: when virtualizing HTML that contains escaped HTML entities, we'll unescape them as part of the virtualization process.
  • Bug fix for parsing tags with attributes with quotation marks in them. Basically just upgraded the html-parse-stringify dependency which included the required fix.

0.5.0

12 May 19:29
Compare
Choose a tag to compare
  • Starting to use a patched version of html-parse-stringify that fixes a few parsing issues.
  • Adding support for options to be passed to the virtualize function. Specifically adding a hooks.create option that will call a function for each VNode that is created during the virtualization process. See the README.

0.4.0

04 May 23:30
Compare
Choose a tag to compare
  • Big improvments to the way we're virtualizing strings of HTML to snabbdom vnodes - see #3.
  • Can also now import just the function for virtualizing strings or just the function for virtualizing DOM nodes:
  import virtualize from 'snabbdom-virtualize/strings';
  import virtualize from 'snabbdom-virtualize/nodes';

0.3.0

21 Feb 22:09
Compare
Choose a tag to compare

Adding support for multiple top-level nodes in the input string.

0.2.1

08 Feb 21:01
Compare
Choose a tag to compare

Just fixing up the npm package.