Liking cljdoc? Tell your friends :D

Changelog

Fireworks: A color printer for Clojure, ClojureScript, and Babashka.

For a list of breaking changes, check here

Unreleased



0.5.0

2024-07-6

Added

  • :enable-terminal-font-weights as config option for enabling bold font weight in terminal environments which support it.
  • ?i macro for printing the info, then the result.
  • ?l macro for printing the label, then the result.
  • ?trace macro for tracing ->, ->>, 'some->', 'some->>'.
  • ?> macro for sending values to tap>, then returning value.

Changed

  • Use pprint if label for printing is a map.
  • Remove trailing bracket on form-to-be-evaled labels.
  • Shortened truncation syntax within colls which exceed :print-level
  • ?- macro now prints just the result.
  • ?-- macro now prints just a label, for user commentary.
  • ?log- macro now just prints the result, and returns the result.
  • Removed following macros: ?println, ?print, ?prn, ?pr, functionality replaced by :print-with call-site option

Fixed

  • Bug with clojure.core/max arity, if maps are empty.
  • Bug with :non-coll-result-length-limit config.
  • Colorization of metadata (kv gaps) in terminal context
  • Bug with :non-coll-mapkey-length-limit config.

Removed

  • ?log-- macro.


0.4.0

2024-05-22

Added

  • :metadata and :metadata2 tokens in theme -> [:theme :classes]

Changed

  • Metadata maps now formatted with left-justified values. In all stock themes, they are styled monotone, in a contrasting color, with all keys styled bold.

Fixed

  • Invalid user-theme warning.


0.3.0

2024-05-03

Added

  • Multiple variants of print-and-return macros - see readme for more info.

Changed

  • Evaled forms are now printed in monotone (themeable) color, and always truncated
  • File info is now printed as:
    • evaled form or user-supplied label (Optional)
    • namespace-info
    • linebreak
    • result.
  • fireworks.core/?> is now a "tap> and return" macro. It just taps the value and returns the result (no printing).
  • When using ?, ?-, or ?-- in ClojureScript, and the resulting value is a native js data structure, the result is printed with js/console.log.
  • Significant refactoring of fireworks.truncate namespace.


0.2.0

2024-03-02

Added

  • Relax length limit for non-coll result display values #3
  • Added :non-coll-result-length-limit config option
  • Added :non-coll-depth-1-length-limit config option

Changed

  • Rename fireworks.core/p* -> fireworks.core/p-data
  • Rename config option :mapkey-value-width-limit -> :non-coll-mapkey-length-limit
  • Rename config option :value-width-limit -> :non-coll-length-limit
  • Update dependency coordinates for typetag


0.1.1

2024-03-02

Fixed

  • Ability to change theme at call site via :mood.
  • #1 :metadata-position :block bug for non-coll values.


0.1.0

2024-03-01

Initial Release



Breaking changes

0.5.0

  • Use pprint if label for printing is a map.
  • Remove trailing bracket on form-to-be-evaled labels.
  • Shortened truncation syntax within colls which exceed :print-level
  • ?- macro now prints just the result.
  • ?-- macro now prints just a label, for user commentary.
  • ?log- macro now just prints the result, and returns the result.
  • Removed macros : ?println, ?print, ?prn, ?pr


0.4.0

  • Metadata maps now formatted with left-justified values.


0.3.0

  • File info is now printed as:

    • evaled form or user-supplied label (Optional)
    • namespace-info
    • linebreak
    • result.
  • fireworks.core/?> is now a "tap> and return" macro. It just taps the value and returns the result (no printing).



0.2.0

  • Rename fireworks.core/p* -> fireworks.core/p-data
  • Rename config option :mapkey-value-width-limit -> :non-coll-mapkey-length-limit
  • Rename config option :value-width-limit -> :non-coll-length-limit

Can you improve this documentation?Edit on GitHub

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

× close