You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
3.1 KiB

5 years ago
  1. # Changes for riot-parser
  2. ### v4.0.3
  3. - Fix https://github.com/riot/riot/issues/2723 for real this time
  4. ### v4.0.2
  5. - Fix parsing of nested svg nodes https://github.com/riot/riot/issues/2723
  6. ### v4.0.1
  7. - Fix the creation of the `parts` array in nodes containing expressions
  8. ### v4.0.0
  9. - Stable release
  10. - Add more tests for the new feautures listed below
  11. ### v4.0.0-rc.2
  12. - Fix: support spread attributes together with other attribute expressions on the same DOM node
  13. ### v4.0.0-rc.1
  14. - Fix https://github.com/riot/riot/issues/2679
  15. - Add support for `<a {href}>` expression attributes shortcuts
  16. ### v0.8.1
  17. - Add the `src` folder to the npm publishing files
  18. ### v0.8.0
  19. - Add support for the spread attributes `<a {...foo.bar}>`
  20. - Fixed the `isCustom` boolean that will be added also to the root nodes
  21. ### v0.6.9
  22. - Remove the unecessary PUBLIC_JAVASCRIPT and PRIVATE_JAVASCRIPT nodes
  23. ### v0.5.0
  24. - Remove the the useless prefix option
  25. - Improve the coverage
  26. - Improve the quality of the source code
  27. ### v0.4.0
  28. - Add the [`dom-nodes`](https://github.com/riot/dom-nodes) dependecy to improve the output
  29. - Add the `isCustom`, `isBoolean`, `isVoid`, `isSelfClosing` and `isRaw` boolean node attributes
  30. ### v0.3.0
  31. - Fix treeBuilder issues
  32. - Improve coverage
  33. - Improve code maintainability
  34. ### v0.2.0
  35. - Add `voidTags` to the exports
  36. ### v0.1.0
  37. - Enhance the javascript parsing: the javascript node will contain nested nodes containing the private and the public javascript methods
  38. - Add the PUBLIC_JAVASCRIPT and PRIVATE_JAVASCRIPT nodes
  39. - Change the `attr` to `attributes` and `expr` to `expressions` keys
  40. ### v0.0.6
  41. - Tree-builder support for 'if/else/elseif' tags (avoid unexpected closing tag errors).
  42. - Fix to text nodes only escaping the fist block of whitespace.
  43. ### v0.0.5
  44. - Now, attribute names are lowercased in the builder, only for empty namespaces (i.e. not svg).
  45. ### v0.0.4
  46. - Included TEXTAREA as special tag that can contain only raw text and expressions.
  47. - For SVG tags, now the `ns` property is the full URI http://www.w3.org/2000/svg.
  48. - The `children` property of TAGs is renamed to `nodes`.
  49. ### v0.0.3
  50. - The default builder is integrated in this module and injected in the parser.
  51. - Only two versions, node CommonJS (transpiled to ES5) and ES6 modules (untranspiled).
  52. - The `nodeTypes` property of TagParser is removed, now is in a separated submodule.
  53. - Exposing `skipES6TL` to skip ES6 Template Literals.
  54. - Reduction of code size, `skipRegex` is imported from npm.
  55. - Source files (ES6) are moved to the "lib/" directory.
  56. - Remove dependency on `Object.assign`.
  57. - Updated devDependencies.
  58. ### v0.0.2 (UNPUBLISHED)
  59. - Added suport for SVG en the tests.
  60. - Added test/builder/tree-builder2.js as sample.
  61. - Support for self-closing script/style tags.
  62. - The `replace` property of attributes and text is discarded and there's a new property `unescape` is an array containing the positions of the escape characters (relative to the whole buffer).
  63. - Matching literal regexes is a bit faster now.
  64. - Fixes incorrect regex that matches literal regexes.
  65. ### v0.0.1
  66. - First public release
  67. # TODO
  68. - Support for case sensitive properties in SVG elements.