This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-12
Channels
- # announcements (6)
- # babashka (45)
- # beginners (4)
- # calva (19)
- # cider (2)
- # clj-kondo (10)
- # clj-yaml (10)
- # clojure (25)
- # clojure-boston (1)
- # clojure-conj (3)
- # clojure-europe (34)
- # clojure-losangeles (5)
- # clojure-nl (1)
- # clojure-norway (11)
- # clojure-uk (2)
- # clojurescript (84)
- # cursive (10)
- # datalevin (3)
- # figwheel-main (1)
- # fulcro (1)
- # jobs (5)
- # joyride (25)
- # lsp (17)
- # malli (18)
- # nbb (1)
- # off-topic (1)
- # re-frame (22)
- # remote-jobs (9)
- # scittle (3)
- # shadow-cljs (26)
- # sql (16)
- # tools-build (12)
- # xtdb (44)
https://github.com/clj-kondo/clj-kondo: static analyzer and linter for Clojure code that sparks joy ✨
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-alias
• https://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
[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!brilliant!