Fork me on GitHub
#announcements
<
2023-01-12
>
borkdude14:01:48

https://github.com/clj-kondo/clj-kondo: static analyzer and linter for Clojure code that sparks joy clj-kondo 2023.01.12 • https://github.com/clj-kondo/clj-kondo/issues/1742: new linter :aliased-namespace-var-usage: warn on var usage from namespaces that were used with :as-alias. See https://twitter.com/borkdude/status/1613524896625340417/photo/1. • https://github.com/clj-kondo/clj-kondo/issues/1914: Don't warn about single arg use when there's a second arg in a reader conditional (https://github.com/mk) • https://github.com/clj-kondo/clj-kondo/issues/1912: Allow forward references in comment forms (https://github.com/mk) See https://twitter.com/borkdude/status/1603028023565062145. • https://github.com/clj-kondo/clj-kondo/issues/1926: Add keyword analysis for edn files. • https://github.com/clj-kondo/clj-kondo/issues/1922: don't crash on invalid type specification • https://github.com/clj-kondo/clj-kondo/issues/1902: provide :symbols analysis for navigation to symbols in quoted forms or EDN files. See https://twitter.com/borkdude/status/1612773780589355008. • https://github.com/clj-kondo/clj-kondo/issues/1939: no longer warn on unused namespace that was only used with :as-aliashttps://github.com/clj-kondo/clj-kondo/issues/1911: missing test assertion linter doesn't work in CLJS • https://github.com/clj-kondo/clj-kondo/issues/1891: support CLJ_KONDO_EXTRA_CONFIG_DIR environment variable to enable extra linters after project config

🎉 60
clj-kondo 26
catjam 2
ikitommi17:01:59

[metosin/malli "0.10.0"] is out! Malli is a high-performance data-driven data specification library for Clojure/Script. Most notable changes: • New optional time schemas for the JVM on top of java.time: :time/duration, :time/instant, :time/local-date, :time/local-date-time, :time/local-time, :time/offset-date-time, :time/offset-time, :time/zone-id, :time/zone-offset, :time/zoned-date-time ◦ contributions for making these work with CLJS too most welcome. Discussion https://github.com/metosin/malli/issues/49. • Automatic type inferring with :enum and :=, detects homogenous :string, :keyword, :symbol, :int and :double schemas • New malli.core/coercer and malli.core/coerce to both decode and validate a value, with exception throwing & cps variants • BREAKING: re-implementation of :map-of inferring, disabled by default, configurable via options, with solid defaults • BREAKING: Prefer to real Schemas instead of predicates in inferring (e.g. :int over 'int?) • New malli.experimental.describe ns to describe Schemas in english:

(is (= "ConsCell <nullable vector with exactly 2 items of type: integer, \"ConsCell\">"
     (med/describe [:schema {:registry {"ConsCell" [:maybe [:tuple :int [:ref "ConsCell"]]]}} "ConsCell"]))))
All changes: https://github.com/metosin/malli/blob/master/CHANGELOG.md#0100-2023-01-12 Code: https://github.com/metosin/malli Big thanks to all contributors, and to the whole #CLDK6MFMK community!

🎉 108
😍 18
12
10
🧠 6
malli 14
❤️ 8
escherize17:01:29

Incredible work 🙂

lepistane22:01:48

Thanks! nice

oliy08:01:32

Malli is a pleasure to use, thank you