Releases: Respo/respo.cljs
Releases · Respo/respo.cljs
Drop Hiccup DSL support
Breaking
- Remove Hiccup syntax. Reasons: 1. it's conflicted with current list assumption; 2. no evidence that people are using that.
just code migrations
Refactor
- moved more code into
coir.edn
- drop dependencies of
polyfill.clj
since Respo is ClojureScript only
Update defcomp macro to support arity checking
Feature
- with the new macro, the compiler is able to detect arity of calling components
using list-> to mark lists
breaking change
now elements containing lists MUST be rendered with list->
, which is a macro:
(list-> :div {:style {}}
'([0 (span)]
[1 (div)]))
It breaks old code that renders list with an error:
Error: No protocol method IAssociative.-assoc defined for type cljs.core/LazySeq: ([0 {:name :link, :coord nil, :attrs ([:href "http://localhost:8100/main.css"] [:rel "stylesheet"] [:type "text/css"]), :style (), :event {}, :children ()}])
The benefit is some dirty code for checking lists is removed. No numbers for runtime performance changes. Good or bad...