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.

92 lines
3.2 KiB

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