This repository has been archived by the owner on Dec 20, 2023. It is now read-only.
Releases: appcues/snabbdom-virtualize
Releases · appcues/snabbdom-virtualize
0.7.0
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
0.5.4
0.5.3
0.5.2
0.5.1
- 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
- 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 ahooks.create
option that will call a function for eachVNode
that is created during the virtualization process. See the README.
0.4.0
-
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';