Skip to content

0.7.0

Compare
Choose a tag to compare
@darwin darwin released this 12 Jun 20:34
· 549 commits to master since this release

Friendly rendering of functions

Major improvement of this release is custom formatting for ClojureScript functions.

Custom formatters for functions

A picture is worth thousand words:

Implemented features in this release:

  • formatting is applied to functions from ClojureScript only
  • distinction between named functions and unnamed (lambda) functions
  • display of namespace if available
  • support for reverting munged names
  • support for multiple arities
  • support for renaming macro-generated parameters with subscript indices
  • support for IFn protocols
  • access to native function object after expanding

In case of troubles you can disable custom formatting of functions by settings this pref prior installation:

(devtools.core/set-pref! :disable-cljs-fn-formatting true)

Detect if custom formatters are enabled

Sometimes people are too busy with their lives that they forget to enable custom formatters in their Chrome DevTools and then wonder what went wrong.

Newly we can detect this uncomfortable situation and confront the user with this warning (after opening the console):

You can disable this warning by setting this pref prior installation:

(devtools.core/set-pref! :dont-detect-custom-formatters true)

Feature groups

Newly you can use a keyword for specifying what features to install. Currently we support :all and :default feature groups.

So instead of listing all features by hand, you can substitute it with :all:

(devtools.core/install! :all)  
; equivalent to (devtools.core/install! [:custom-formatters :sanity-hints])
(devtools.core/install!)  
; equivalent to (devtools.core/install! :default)

Notable commits:

37dacef reimplement core install-related api same way as in dirac runtime
20c9d86 introduce :bypass-availability-checks tweak (close #15)
f15603a detect if custom-formatters are active and warn if not (close #16)
c406b8a implement formatting of cljs functions
b0d0098 allow :disable-cljs-fn-formatting

All new work: v0.6.1...v0.7.0