In this post I'll give updates about open source I worked on during July and August 2024.
To see previous OSS updates, go here.
I'd like to thank all the sponsors and contributors that make this work possible. Without you, the below projects would not be as mature or wouldn't exist or be maintained at all.
Current top tier sponsors:
Open the details section for more info about sponsoring.
Sponsor info
If you want to ensure that the projects I work on are sustainably maintained, you can sponsor this work in the following ways. Thank you!
If you're used to sponsoring through some other means which isn't listed above, please get in touch.
On to the projects that I've been working on!
Updates
Here are updates about the projects/libraries I've worked on last month.
- clj-kondo: static analyzer and linter for Clojure code that sparks joy.
- Unreleased:
- #2386: fix regression introduced in #2364 in
letfn
(unreleased) - v2024.08.29:
- #2303: Support array class notation of Clojure 1.12 (
byte/1
) - #916: New linter:
:destructured-or-binding-of-same-map
which warns about :or
defaults referring to bindings of same map, which is undefined and may result in broken behavior - #2362: turn min-version warning into lint warning
- #1603: Support Java classes in
:analyze-call
hook - #2369: false positive unused value in quoted list
- #2374: Detect misplaced return Schemas (@frenchy64)
- #2364: performance: code that analyzed fn arity is ran twice
- #2355: support
:as-alias
with current namespace without warning about self-requiring namespace - v2024.08.01:
- #2359:
@x
should warn with type error about x
not being an IDeref, e.g. with @inc
- #2345: Fix SARIF output and some enhancements (@nxvipin)
- #2335: read causes side effect, thus not an unused value
- #2336:
do
and doto
type checking (@yuhan0) - #2322: report locations for more reader errors (@yuhan0)
- #2342: report unused maps, vectors, sets, regexes, functions as
:unused-value
- #2352: type mismatch error for
or
without arguments - #2344: copying configs and linting dependencies can now be done in one go with
--dependencies --copy-configs
- #2357:
:discouraged-namespace
can have :level
per namespace
- babashka: native, fast starting Clojure interpreter for scripting.
- Mostly bumped library dependencies and improvements in SCI
- edamame: Configurable EDN/Clojure parser with location metadata
- Support new Clojure 1.12 array notation
- SCI: Configurable Clojure/Script interpreter suitable for scripting and Clojure DSLs
- Fix #923: check for duplicate keys in dynamic set or map literals
- Fix #926: Support
add-watch
on vars in CLJS
- cherry: Experimental ClojureScript to ES6 module compiler
- nbb: Scripting in Clojure on Node.js using SCI
- Bump org.babashka/cli
- Bump SCI
- quickdoc: Quick and minimal API doc generation for Clojure
- Fix #39: fix link when var is named multiple times in docstring
- http-server: serve static assets
- #13: add an ending slash to the dir link, and don't encode the slashes (@KDr2)
- #16: support range requests
- CLI: Turn Clojure functions into CLIs!
- Fix #102:
format-table
correctly pads cells containing ANSI escape codes
- deps.clj: A faithful port of the clojure CLI bash script to Clojure
- Upgrade/sync with clojure CLI v1.11.4.1474
- deps.clj is now available as
clojure.exe
via the clj-msi installer and the official installation method on plain Windows!
- fs - File system utility library for Clojure
- #132: add
read-link
to resolve symbolic link, without target of link needing to exist
- tools: a set of bbin installable scripts
- Updated antq
- Added
--minimize
option to the ddiff script
- http-client: babashka's http-client
- Ensure that http-client works with Clojure 1.10 as the minimum supported Clojure version
- sci.nrepl: nREPL server for SCI projects that run in the browser
- Mostly changes to accomodate running sci.nrepl with clerk viewer functions
- clerk: Moldable Live Programming for Clojure
- Mostly worked on making viewer functions available from
.cljs
files and allow working on them via a nREPL session
- squint: CLJS syntax to JS compiler
Other projects
These are (some of the) other projects I'm involved with but little to no activity happened in the past month.
Click for more details
- html: Html generation library inspired by squint's html tag
- neil: A CLI to add common aliases and features to deps.edn-based projects.
- rewrite-edn: Utility lib on top of rewrite-clj with common operations to update EDN while preserving whitespace and comments
- instaparse-bb: Use instaparse from babashka
- scittle: Execute Clojure(Script) directly from browser script tags via SCI
- bbin: Install any Babashka script or project with one command
- process: Clojure library for shelling out / spawning sub-processes
- babashka.json: babashka JSON library/adapter
- tools-deps-native and tools.bbuild: use tools.deps directly from babashka
- squint-macros: a couple of macros that stand-in for applied-science/js-interop and promesa to make CLJS projects compatible with squint and/or cherry.
- sci.configs: A collection of ready to be used SCI configs.
- grasp: Grep Clojure code using clojure.spec regexes
- lein-clj-kondo: a leiningen plugin for clj-kondo
- http-kit: Simple, high-performance event-driven HTTP client+server for Clojure.
- babashka.nrepl: The nREPL server from babashka as a library, so it can be used from other SCI-based CLIs
- jet: CLI to transform between JSON, EDN, YAML and Transit using Clojure
- pod-babashka-go-sqlite3: A babashka pod for interacting with sqlite3
- pod-babashka-fswatcher: babashka filewatcher pod
- lein2deps: leiningen to deps.edn converter
- sql pods: babashka pods for SQL databases
- cljs-showcase: Showcase CLJS libs using SCI
- babashka.book: Babashka manual
- rewrite-clj: Rewrite Clojure code and edn
- pod-babashka-buddy: A pod around buddy core (Cryptographic Api for Clojure).
- gh-release-artifact: Upload artifacts to Github releases idempotently
- carve - Remove unused Clojure vars
- 4ever-clojure - Pure CLJS version of 4clojure, meant to run forever!
- pod-babashka-lanterna: Interact with clojure-lanterna from babashka
- joyride: VSCode CLJS scripting and REPL (via SCI)
- clj2el: transpile Clojure to elisp
- deflet: make let-expressions REPL-friendly!
- deps.add-lib: Clojure 1.12's add-lib feature for leiningen and/or other environments without a specific version of the clojure CLI
Published: 2024-08-30
Tagged:
clojure
oss updates
In this post I'll give updates about open source I worked on during May and June 2024.
To see previous OSS updates, go here.
I'd like to thank all the sponsors and contributors that make this work possible. Without you, the below projects would not be as mature or wouldn't exist or be maintained at all.
Current top tier sponsors:
Open the details section for more info about sponsoring.
Sponsor info
If you want to ensure that the projects I work on are sustainably maintained, you can sponsor this work in the following ways. Thank you!
If you're used to sponsoring through some other means which isn't listed above, please get in touch.
On to the projects that I've been working on!
Updates
Here are updates about the projects/libraries I've worked on last month.
- html: Html generation library inspired by squint's html tag
- A NEW library for html generation that is both safe, performant, generates easy to understand code and works the same across CLJ and CLJS.
- babashka: native, fast starting Clojure interpreter for scripting. Released v1.3.191 with the following changes:
- Fix #1688:
use-fixtures
should add metadata to *ns*
- Fix #1692: Add support for
ITransientSet
and org.flatland/ordered-set
- Bump org.flatland/ordered to
1.15.12
. - Partially Fix #1695:
--repl
arg handling should consume only one arg (itself) (@bobisageek) - Partially Fix #1695: make
*command-line-args*
value available in the REPL (@bobisageek) - Fix #1686: do not fetch dependencies/invoke java for
version
, help
, and describe
options (@bobisageek) - #1696: add
clojure.lang.DynamicClassLoader
constructors (@bobisageek) - #1696: add
clojure.core/*source-path*
(points to the same sci var as *file*
) (@bobisageek) - #1696: add
clojure.main/with-read-known
(@bobisageek) - #1696: add
clojure.core.server/repl-read
(@bobisageek) - #1696: make the
cognitect-labs/transcriptor
library work (@bobisageek) - #1700: catch exceptions from resolving symbolic links during
bb.edn
lookup (@bobisageek) - Support
java.nio.channels.ByteChannel
+ several other related interop - Bump
nrepl/bencode
to 1.2.0
- Bump
babashka/fs
- Bump
org.babashka/http-client
to 0.4.18
- clj-kondo: static analyzer and linter for Clojure code that sparks joy.
- Fix #2335: read causes side effect, thus not an unused value
- Fix #2336:
do
and doto
type checking (@yuhan0) - Fix #2322: report locations for more reader errors (@yuhan0)
- Imports were copied to
.clj-kondo/imports
but weren't pick up correctly. Thanks @frenchy64 for reporting the bug. - #2333: Add location to invalid literal syntax errors
- #2323: New linter
:redundant-str-call
which detects unnecessary str
calls. Off by default. - #2302: New linter:
:equals-expected-position
to enforce expected value to be in first (or last) position. See docs - #1035: Support SARIF output with
--config {:output {:format :sarif}}
- #2307: import configs to intermediate dir
- #2309: Report unused
for
expression - #2315: Fix regression with unused JavaScript namespace
- #2304: Report unused value in
defn
body - #2227: Allow
:flds
to be used in keys destructuring for ClojureDart - #2316: Handle ignore hint on protocol method
- #2322: Add location to warning about invalid unicode character
- #2319: Support
:discouraged-var
on global JS values, like js/fetch
- squint: CLJS syntax to JS compiler
- #536: HTML is not escaped in dynamic expression
- #537: Fix
not
: wrap argument in parens - Return interop expression in function body
- Prefer value from props map over explicit value
#html
improvements, support :&
for spreading props- #492: defclass static methods and fields
- #526: Fix export of class name with dashes
- #517: Preserve state over REPL evals
- #513: Fix
shuffle
core function random distribution and performances - #517: Fix re-definition of class with
defclass
in REPL - #522: fix
nil
#html
rendering issue
- neil: A CLI to add common aliases and features to deps.edn-based projects.
Released version 0.3.65 with the following changes:- #209: add newlines between dependencies
- #185: throw on non-existing library
- Bump
babashka.cli
- Fetch latest stable
slipset/deps-deploy
, instead of hard-coding (@vedang) - Several emacs package improvements (@agzam)
- cherry: Experimental ClojureScript to ES6 module compiler
- Fix #130: fix predefined
:aliases
for cherry.embed - Support
IDeref
, ISwap
, IReset
in deftype
- clojure-mode: Clojure/Script mode for CodeMirror 6.
- Fix #54: support slurping from within string literal
- pottery: A clojure library to interact with gettext and PO/POT files
- Contributed a few improvements to dealing with reader conditionals
- nbb: Scripting in Clojure on Node.js using SCI
- Fix
cljs.pprint/print-table
+ with-out-str
- Fixed
cljs.test/testing
macro to display strings correctly on test failure (@jaidetree)
- CLI: Turn Clojure functions into CLIs!
- Fix #98: internal options should not interfere with :restrict
- deps.clj: A faithful port of the clojure CLI bash script to Clojure
- Upgrade/sync with clojure CLI v1.11.3.1463
Other projects
These are (some of the) other projects I'm involved with but little to no activity happened in the past month.
Click for more details
- rewrite-edn: Utility lib on top of rewrite-clj with common operations to update EDN while preserving whitespace and comments
- instaparse-bb: Use instaparse from babashka
- scittle: Execute Clojure(Script) directly from browser script tags via SCI
- http-client: babashka's http-client
- bbin: Install any Babashka script or project with one command
- SCI: Configurable Clojure/Script interpreter suitable for scripting and Clojure DSLs
- fs - File system utility library for Clojure
- process: Clojure library for shelling out / spawning sub-processes
- babashka.json: babashka JSON library/adapter
- tools-deps-native and tools.bbuild: use tools.deps directly from babashka
- edamame: Configurable EDN/Clojure parser with location metadata
- http-server: serve static assets
- squint-macros: a couple of macros that stand-in for applied-science/js-interop and promesa to make CLJS projects compatible with squint and/or cherry.
- sci.configs: A collection of ready to be used SCI configs.
- grasp: Grep Clojure code using clojure.spec regexes
- lein-clj-kondo: a leiningen plugin for clj-kondo
- http-kit: Simple, high-performance event-driven HTTP client+server for Clojure.
- babashka.nrepl: The nREPL server from babashka as a library, so it can be used from other SCI-based CLIs
- jet: CLI to transform between JSON, EDN, YAML and Transit using Clojure
- quickdoc: Quick and minimal API doc generation for Clojure
- pod-babashka-go-sqlite3: A babashka pod for interacting with sqlite3
- pod-babashka-fswatcher: babashka filewatcher pod
- lein2deps: leiningen to deps.edn converter
- sql pods: babashka pods for SQL databases
- cljs-showcase: Showcase CLJS libs using SCI
- babashka.book: Babashka manual
- rewrite-clj: Rewrite Clojure code and edn
- pod-babashka-buddy: A pod around buddy core (Cryptographic Api for Clojure).
- gh-release-artifact: Upload artifacts to Github releases idempotently
- carve - Remove unused Clojure vars
- 4ever-clojure - Pure CLJS version of 4clojure, meant to run forever!
- pod-babashka-lanterna: Interact with clojure-lanterna from babashka
- joyride: VSCode CLJS scripting and REPL (via SCI)
- clj2el: transpile Clojure to elisp
- deflet: make let-expressions REPL-friendly!
- deps.add-lib: Clojure 1.12's add-lib feature for leiningen and/or other environments without a specific version of the clojure CLI
Published: 2024-06-30
Tagged:
clojure
oss updates
In this post I'll give updates about open source I worked on during March and April 2024.
To see previous OSS updates, go here.
I'd like to thank all the sponsors and contributors that make this work possible. Without you, the below projects would not be as mature or wouldn't exist or be maintained at all.
Current top tier sponsors:
Open the details section for more info about sponsoring.
Sponsor info
If you want to ensure that the projects I work on are sustainably maintained, you can sponsor this work in the following ways. Thank you!
If you're used to sponsoring through some other means which isn't listed above, please get in touch.
On to the projects that I've been working on!
Updates
Here are updates about the projects/libraries I've worked on last month.
- squint: CLJS syntax to JS compiler
- #509: Optimization: use arrow fn for implicit IIFE when possible
- Optimization: emit
const
in let expressions, which esbuild optimizes better - Don't wrap arrow function in parens, see this issue
- Fix #499: add support for emitting arrow functions with
^:=>
metadata - Fix #505: Support
:rename
in :require
- Fix #490: render css maps in html mode
- Fix #502: allow method names in
defclass
to override squint built-ins - Fix #496: don't wrap strings in another set of quotes
- Fix rendering of attribute expressions in HTML (should be wrapped in quotes)
- Compile destructured function args to JS destructuring when annotated with
^:js
. This benefits working with vitest and playwright. - #481: BREAKING, squint no longer automatically copies all non-compiled files to the
:output-dir
. This behavior is now explicit with :copy-resources
, see docs. - Add new
#html
reader for producing HTML literals using hiccup. See docs and playground example. - #483: Fix operator precedence problem
- neil: A CLI to add common aliases and features to deps.edn-based projects.
Released version 0.3.65 with the following changes:- #209: add newlines between dependencies
- #185: throw on non-existing library
- Bump
babashka.cli
- Fetch latest stable
slipset/deps-deploy
, instead of hard-coding (@vedang) - Several emacs package improvements (@agzam)
- clj-kondo: static analyzer and linter for Clojure code that sparks joy.
Released 2024.03.13- Fix memory usage regression introduced in 2024.03.05
- #2299: Add documentation for
:java-static-field-call
. - #1732: new linter:
:shadowed-fn-param
which warns on using the same parameter name twice, as in (fn [x x])
- #2276: New Clojure 1.12 array notation (
String*
) may occur outside of metadata - #2278:
bigint
in CLJS is a known symbol in extend-type
- #2288: fix static method analysis and suppressing
:java-static-field-call
locally - #2293: fix false positive static field call for
(Thread/interrupted)
- #2296: publish multi-arch Docker images (including linux aarch64)
- #2295: lint case test symbols in list
Unreleased changed: - #1035: Support SARIF output with
--config {:output {:format :sarif}}
- #2309: report unused for expression
- #2135: fix regression with unused JavaScript namespace
- #2302: New linter:
:equals-expected-position
to enforce expected value to be in first (or last) position. See docs - #2304: Report unused value in
defn
body
- CLI: Turn Clojure functions into CLIs!
Released version 0.8.58-59- Fix #96: prevent false defaults from being removed/ignored
- Fix #91: keyword options and hyphen options should not mix
- Fix #89: long option never represents alias
- rewrite-edn: Utility lib on top of rewrite-clj with common operations to update EDN while preserving whitespace and comments
Released 0.4.8 with the following update:- Add newline after adding new element to top level map with
assoc-in
- nbb: Scripting in Clojure on Node.js using SCI
- nbb bundle JS output will ignore
nbb.edn
- #351: Update bun docs/example.
- Add
cljs.core/exists?
- clojure-mode: Clojure/Script mode for CodeMirror 6.
- instaparse-bb: Use instaparse from babashka
- Serialize regexes in parse results
- scittle: Execute Clojure(Script) directly from browser script tags via SCI
Released v0.6.17- #77: make dependency on browser (
js/document
) optional so scittle can run in webworkers, Node.js, etc. - #69: executing script tag with src + whitespace doesn't work
- #72: add clojure 1.11 functions like
update-vals
- #75: Support reader conditionals in source code
- cherry: Experimental ClojureScript to ES6 module compiler
- #127: fix duplicate
cherry-cljs
property in package.json
which caused issues with some bundlers - Bump squint common compiler code
- clerk
- #646 Fix parsing + location issue which fixes compatibility with honey.sql
- http-client: babashka's http-client
Released 0.4.17-19- #55: allow
:body
be java.net.http.HttpRequest$BodyPublisher
- Support a Clojure function as
:client
option, mostly useful for testing - #49: add
::oauth-token
interceptor - #52: document
:throw
option
- bbin: Install any Babashka script or project with one command
These fixes have been made by @rads: - SCI: Configurable Clojure/Script interpreter suitable for scripting and Clojure DSLs
- Fix #626: add
cljs.core/exists?
- Fix #919: :js-libs + refer + rename clashes with core var
- Fix #906:
merge-opts
loses :features
or previous context
- deps.clj: A faithful port of the clojure CLI bash script to Clojure
- Fix Windows issue related to relative paths (which took me all day, argh!)
- fs - File system utility library for Clojure
- #122:
fs/copy-tree
: fix copying read-only directories with children (@sohalt) - #127: Inconsistent documentation for the
:posix-file-permissions
options (@teodorlu)
- babashka: native, fast starting Clojure interpreter for scripting.
- Fix #1679: bump timbre and fix wrapping
timbre/log!
- Add
java.util.concurrent.CountDownLatch
- Add
java.lang.ThreadLocal
- Bump versions of included libraries
Other projects
These are (some of the) other projects I'm involved with but little to no activity happened in the past month.
Click for more details
Published: 2024-04-30
Tagged:
clojure
oss updates