Skip to content

Releases: AngelMunoz/Hox

v1.3.0 - Allow parsing child elements

12 Feb 17:43
Compare
Choose a tag to compare

What's Changed

  • Allow parsing child elements
  • Add child notes to the inner most parsed child in the h function

Mostly this version enables scenarios where you had to add a new indentation level for wrapper elements which may be cumbersome and weird to type out, an example of the change is the following:

// old version
h(
  "ul.list-items",
  h("li.is-active", h("a.list-item[href=/]", "Home")),
  h("li", h("a.list-item[href=/about]", "About")),
  h("li", h("a.list-item[href=/contact]", "Contact"))
)
// new version
h(
  "ul.list-items",
  h("li.is-active > a.list-item[href=/]", "Home"),
  h("li > a.list-item[href=/about]", "About"),
  h("li > a.list-item[href=/contact]", "Contact")
)

This should help to have cleaner structures that follow element hierarchies that may be imposed for external css frameworks with less parenthesis and commas 😆

Full Changelog: v1.2.0...v1.3.0

v1.2.0 - Allow parsing empty attributes

05 Feb 06:11
Compare
Choose a tag to compare

This is a very small update, we can now parse attributes without values e.g.

div[uk-tab] -> <div uk-tab></div>

Full Changelog: v1.1.1...v1.2.0

v1.1.1 - More Perf updates

03 Feb 19:13
Compare
Choose a tag to compare

This Point release is mainly about a little bit more of performance updates.

we've tried to reduce the amount of copying new node instances thanks to the linked-list work we've added in the previous version.
Rather than returning new instances or performing the update-copy procedure where it was redundant this time we've tried to work with the existing node.

Full Changelog: v1.1.0...v1.1.1

v1.1.0

03 Feb 08:29
Compare
Choose a tag to compare

What's Changed

  • Perf oriented updates by in #2

BREAKING CHANGES

This is just for Library authors depending on Hox.Core.Node, users and consumers of the DSL/Feliz DSL are not affected

Users of Hox.Core.Node have to adapt to a change in the core type, rather than using an F# list, we changed to use a LinkedList<T> from the BCL, our usage in the Node Operations module and the rendering engine didn't really fit the case for F# lists.

Full Changelog: https://github.com/AngelMunoz/Hox/commits/v1.1.0