- Improve the inline
<script>
tags check
- Add support for inline script tags (
<script src='path/to/the/script'>
)
- Fix make sure comments nodes will be generated via tree builder
- Add the extraction of comment nodes text
- Fix riot/riot#2836
- Update generated bundle fixing discrepancy between source files and bundled output
- Fix end value of the root node
- Add expose the internal constants to the public API
- Fix riot/riot#2723 for real this time
- Fix parsing of nested svg nodes riot/riot#2723
- Fix the creation of the
parts
array in nodes containing expressions
- Stable release
- Add more tests for the new feautures listed below
- Fix: support spread attributes together with other attribute expressions on the same DOM node
- Fix riot/riot#2679
- Add support for
<a {href}>
expression attributes shortcuts
- Add the
src
folder to the npm publishing files
- Add support for the spread attributes
<a {...foo.bar}>
- Fixed the
isCustom
boolean that will be added also to the root nodes
- Remove the unecessary PUBLIC_JAVASCRIPT and PRIVATE_JAVASCRIPT nodes
- Remove the the useless prefix option
- Improve the coverage
- Improve the quality of the source code
- Add the
dom-nodes
dependecy to improve the output - Add the
isCustom
,isBoolean
,isVoid
,isSelfClosing
andisRaw
boolean node attributes
- Fix treeBuilder issues
- Improve coverage
- Improve code maintainability
- Add
voidTags
to the exports
- Enhance the javascript parsing: the javascript node will contain nested nodes containing the private and the public javascript methods
- Add the PUBLIC_JAVASCRIPT and PRIVATE_JAVASCRIPT nodes
- Change the
attr
toattributes
andexpr
toexpressions
keys
- Tree-builder support for 'if/else/elseif' tags (avoid unexpected closing tag errors).
- Fix to text nodes only escaping the fist block of whitespace.
- Now, attribute names are lowercased in the builder, only for empty namespaces (i.e. not svg).
- Included TEXTAREA as special tag that can contain only raw text and expressions.
- For SVG tags, now the
ns
property is the full URI http://www.w3.org/2000/svg. - The
children
property of TAGs is renamed tonodes
.
- The default builder is integrated in this module and injected in the parser.
- Only two versions, node CommonJS (transpiled to ES5) and ES6 modules (untranspiled).
- The
nodeTypes
property of TagParser is removed, now is in a separated submodule. - Exposing
skipES6TL
to skip ES6 Template Literals. - Reduction of code size,
skipRegex
is imported from npm. - Source files (ES6) are moved to the "lib/" directory.
- Remove dependency on
Object.assign
. - Updated devDependencies.
- Added suport for SVG en the tests.
- Added test/builder/tree-builder2.js as sample.
- Support for self-closing script/style tags.
- The
replace
property of attributes and text is discarded and there's a new propertyunescape
is an array containing the positions of the escape characters (relative to the whole buffer). - Matching literal regexes is a bit faster now.
- Fixes incorrect regex that matches literal regexes.
- First public release
- Support for case sensitive properties in SVG elements.