This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-07-14
Channels
- # announcements (4)
- # babashka (32)
- # beginners (24)
- # calva (3)
- # cider (37)
- # clj-commons (8)
- # clj-kondo (6)
- # clojure (51)
- # clojure-denver (7)
- # clojure-europe (48)
- # clojure-nl (1)
- # clojure-norway (2)
- # clojure-uk (2)
- # clojurescript (12)
- # core-async (10)
- # cursive (9)
- # datomic (42)
- # hyperfiddle (25)
- # jobs (4)
- # juxt (2)
- # lsp (10)
- # malli (11)
- # off-topic (32)
- # polylith (6)
- # practicalli (1)
- # react (2)
- # releases (1)
- # remote-jobs (2)
- # spacemacs (4)
- # xtdb (4)
org.clj-commons/pretty 2.0
https://github.com/clj-commons/pretty
Pretty prints things prettily; mostly, carefully formatted exception output using ANSI colors, smarter ordering, and name-demangling to take the pain out of figuring out what went wrong, and where.
This release moves the library to clj-commons, and changes the root namespace from
io.aviso
to clj-commons
. It strips down the library to its essentials, removing
the columns
, component
, and logging
namespaces entirely.
Changes:
• Stripped out a lot of redundant documentation
• Reworked the ansi
namespace to primarily expose the compose
function and not dozens of constants and functions
• ansi
determines whether to enable or disable ANSI codes at execution time
• ansi
now honors the NO_COLOR
environment variable
• Stripped out code for accessing the clipboard from the repl
namespace
• Some refactoring inside exceptions
namespace, including changes to the *fonts*
var
• Removed the logging
namespace and dependency on org.clojure/tools.logging
• Removed the component
namespace, but the example is still present in the documentation
• Ensure compatible with Clojure 1.10 and above (now tested in GitHub action)
• The "use -XX:-OmitStackTraceInFastThrow" warning is now formatted, and is output only once
• write-exception
was renamed to print-exception
• write-binary
and write-binary-delta
renamed to print-binary
and print-binary-delta
• compose
can now pad a span of text with spaces (on the left or right) to a desired width
• Binary output now includes color coding
@U04VDKC4G Thank you very much for taking this on! I'm seeing a few confusing things though: • The post here says "2.0", the badge on github says "1.0", the Releases page on github says "1.4" • Clicking on the badge to go to Clojars, I see "clj-commons/humanize" listed as the github repo for clj-commons/pretty • Clicking on the link "http://cljdoc.org/d/org.clj-commons/pretty" in Github takes me to a page about clj-commons/humanize • Trying to use version 2.0 of clj-commons/pretty did actually work 🎉
The 2.0 vs. 1.0 thing should be straightened out now; it was a bad push of humanize (with a cut-and-paste of pretty’s build.clj). Clojars deleted the offending jar.
org.clj-commons/humanize 1.0 Back from the dead! humanize is a small Clojure[Script] library to format things in a human-readable format, such as file sizes, time durations, and lists. https://github.com/clj-commons/humanize/ New in 1.0: • Refactored namespaces with move to clj-commons • Update dependencies and fix linter issues • Other minor improvements https://github.com/clj-commons/humanize/issues?q=is%3Aclosed+milestone%3A1.0