Skip to content

1.6.0

Latest

Choose a tag to compare

@skyizwhite skyizwhite released this 24 Nov 14:06
6ee425e

What's Changed

  • Non-string values are now HTML-escaped (#25)
    • Symbols and other objects used as children or attribute values were written into the HTML unescaped. They are now converted to strings and escaped like strings.
    • A component that returns a string or symbol instead of an element is escaped as well, and a component that returns nil renders nothing (previously NIL).
    • Strings, numbers and keywords render the same as before. Use raw! for trusted HTML.
  • Dotted lists in element forms are now an error (#24)
    • (hsx (div . x)) used to expand unchanged, and (hsx (div a . b)) failed with an unrelated TYPE-ERROR. Both now signal hsx/dsl:malformed-hsx-form at macroexpansion. Dotted lists inside ordinary Lisp forms are unaffected.
  • Removed CSS minification from <style> (#26)
    • <style> is now treated like any other tag: strings are escaped and raw! content is emitted as-is, so (style (raw! "a > b { ... }")) works (it previously failed with a TYPE-ERROR).
    • If you want minified CSS, minify it yourself before passing it to raw!.
    • hsx/element:style-tag is no longer exported, and the cl-minify-css dependency was dropped.

Full Changelog: 1.5.1...1.6.0