Liking cljdoc? Tell your friends :D

Change Log

Unreleased

[v0.7.2] - 2019-01-01

Changed

  • Remove clojure tools.analyzer dependency
  • Temporarily disable pretty printing due to a bug affecting certain media queries.
  • Remove debux-stubs dependency

v0.7.1 - 2018-12-28

Changed

  • Split out site as a separate project.
  • Move examples to demo/examples

v0.7.0 - 2018-12-27

Breaking change

  • :auto-prefix in component meta is removed, instead use either global config via herb.core/init! or pass :prefix true and :vendors for a local override.
  • join-classes is renamed to join

Added

  • New global herb.core/init! function defined and currently takes only :vendors and :auto-prefix as possible options
  • Finish first draft of the tutorial page

Changed

  • Improve error handling, and use clojure.spec for various input validation
  • :auto-prefix now accepts strings as well as keywords
  • Add passing multiple elements in defglobal for a single rule:
    (defglobal [:body :html {:margin 0}])
    

Fixed

  • Change how the data-herb attr is parsed, fixing issue with namespace slashes not matching fully qualified name

v0.6.0 - 2018-10-13

Breaking change

  • global-style! runtime function has been replaced by defglobal macro

Changed

  • Upgrade dependencies
  • The herb data string is no longer used in production builds
  • Data-string now more resemble the fully qualified name of input function
  • Change project structure from multiple separate projects to a single project
  • Disable CSS pretty printing on production builds

Added

  • @supports queries via :supports metadata
  • @keyframes support via defkeyframes macro and accompanying <keyframes macro
  • vendor prefixes via :vendors and :auto-prefix metadata
  • defglobal macro that when used appends garden style vectors to head as CSS

v0.5.0 - 2018-06-17

Added

  • Clojure support
  • <style macro that returns realized styles instead of a classname
  • defgroup macro to wrap common pattern

Changed

  • Business logic now in cljc to simplify testing, using lein test instead of a javascript runner
  • Rename set-global-style! to global-style!
  • Rename :mode to :pseudo

v0.4.0 - 2018-03-31

Fixed

  • Issue with passing a keyword as a style key causing a crash

Added

  • New meta data :id that returns an id instead of a classname
  • Add set-global-style! helper fn that assists setting styles to global elements like ,
and so forth
  • Add join-classes helper fn that takes multiple class names and joins them.
  • Setup :advanced build, using munged function names in-place of fully qualified names

Changed
  • Introduce two new macros <class and <id and deprecate with-style
  • Changed identifier and data string to use input functions .-name field. This allows for nested forms.
  • Include NS in anonymous function identifiers and data string to make them easier to debug
  • Args are no longer used as a data string identifier, key is used instead since it would more likley conform to a readable identifier.

v0.3.5 - 2018-02-23

Changed

A change in the :extend metadata syntax:

;; Passing single function
^{:extend some-style-fn}

;; Passing fn with args
^{:extend [some-style-fn some-arg]}

;; passing multiple functions
^{:extend [[style-fn1 "green" 42] [style-fn]]}

Fixed

  • Fixed issue where multiple levels of extended style fns would not work.

v0.3.4 - 2018-02-19

Fixed

  • Fixed issue where an extra dash got added to the returned classname

v0.3.3 - 2018-02-17

Added

  • Unit tests

Changed

  • Improve anonymous function classname hashing
  • Passed keys now replace all non legal characters with underscore, making it more lenient.

v0.3.2 - 2018-02-15

Changed

  • Refactor large portions of the codebase

Fixed

  • Issue with :extend meta-data and multiple single functions with args

v0.3.1 - 2018-02-11

Added

  • Anonymous functions, with-style can now take named or unnamed functions. Anonymous functions gets the name name.space/anonymous-(hash). Hash is calculated from the combined string of returned style map and meta.

v0.3.0 - 2018-02-11

Breaking change

Macro NS has changed so, to require macro all requires of herb need to change from herb.macro to herb.core

Added

  • Support media queries

Changed

  • Move macro ns to core.clj, move rest into core.cljs

Fixed

  • Fixed issues with inheritance precedence

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close