Skip to content

v0.8.8

Pre-release
Pre-release
Compare
Choose a tag to compare
@candid82 candid82 released this 08 Jan 05:21
· 1493 commits to master since this release

General improvements

  • added joker.core/pprint function (very basic pretty printing)
  • added new command line parameter: -e <expression> will execute provided expression and exit
  • added new command line parameter: --hashmap-threshold <number>. Tells Joker the maximum number of slots in array map. A slot is used for either key or value. If there is more keys and values than provided number (defaults to 16), persistent hashmap will be used instead. Negative value means "no limit", so Joker will always use array maps. This parameter is useful when Joker is used to pretty print EDN data structures: setting it to negative value allows prevents Joker from using persistent hashmaps (which don't preserve keys order) and forces it to use array maps instead (which do preserve keys order). For example, the following command can be used to pretty print EDN data structure (read from stdin):
joker --hashmap-threshold -1 -e "(pprint (read))"

Linter improvements

  • added new rule :no-forms-threading to .joker file. If false, Joker won't issue a warning on threading macros with no forms (i.e. (-> a)). Defaults to true. See #36 for details.
  • removed Joker specific core functions when linting in Clojure(Script) (#33)
  • stacktraces are not printed in linter mode anymore (#41)

Fixes

  • case expressions are now implicitly quoted (#40)