https://github.com/borkdude/unused-deps/releases/tag/v0.1.0 - Find unused deps in a clojure project v0.1.0 β’ add support for git deps
Cool project! The README still says it's a limitation that it doesn't handle git deps, FYI.
fixed!
I'll have to figure out how to use it with a Polylith project. I think running it on each projects/<name>/deps.edn should work. Not sure how to test the :dev alias in the main deps.edn file tho'...
it currently doesn't have support for that (yet!)
note that it may report some false positives, typical ones are JDBC drivers that do not manifest themselves as a :require-ed thing in Clojure code. So don't blindly remove any dependencies it reports
feel free to post issues about stuff
Announcing https://github.com/outskirtslabs/sfv, a zero dependency lib for parsing and generating Structured Field Values (SFV) for HTTP headers (https://www.rfc-editor.org/rfc/rfc9651.html). This continues my efforts to extract helpful little web libraries from client projects into open source libs for the community. RFC 9651 specs out the SFV format for stuffing complex data into HTTP headers (for better or worse...). Several older headers have been updated to use this format, and future HTTP headers will also use it. This little lib is a handy tool to have in your toolbox when the time comes.
@ramblurr Got all the test working in bb, I'm running yours in bb CI now. I did have to make some tweaks to one test namespace though: https://github.com/babashka/babashka/pull/1864/files#diff-199053c7fccf4bc3154fa154473ceeac6e7c5cc0f95ca1304eb250c15f72074f
Oh interesting, maybe i should switch from apache codec to mvxcvi/alphabase for base32, didn't know about that lib
i could change to cheshire too.. its just a test file so I don't care about the bloat
would save you from maintaining the patch
oh that would be nice :) you could also try babashka.json which abstracts from the json implementation. or use a reader conditional or macro. up to you :)
try 943a4787e0c132bdb6e8ab3da9607b1337c9e27d without the test file patch π
works!
https://github.com/babashka/babashka/commit/42de349d59c0fa7078982a358081d7cd00a37f72
Nice! Small point of feedback on bb.edn, maybe you're aware but clojure and shell also take varargs so you don't have to stringify multiple args (only the first argument is tokenized automatically)
(and I guess I could try to add some stuff in bb so this lib works there too
$ bb -Sdeps '{:deps {com.outskirtslabs/sfv {:mvn/version "0.1.0"}}}' -e "(require '[ol.sfv :as sfv])"
----- Error --------------------------------------------------------------------
Type: clojure.lang.ExceptionInfo
Message: Could not resolve symbol: java.nio.charset.CodingErrorAction/REPORT
)Got it working locally in bb now.
Btw, the README says sfv/serialize-item but in the code it's called sfv/serialize
> and I guess I could try to add some stuff in bb so this lib works there too > ... > Got it working locally in bb now. β€οΈ I was about to open some issues about this! Many thanks.
https://0dependencies.dev/ gang represent Γ Damn, the site is dead now.
Webpage works here
It acts weird, but anyway
But they are probably using 0 deps so thatβs worth something?
probably some dependency on it acting up π
Maybe the npm one
@borkdude just so we are talking about the same thing, you are referring to this?
no, about: https://github.com/babashka/babashka/actions/runs/18194686850/job/51797711689 it's a couple of thousands of lines.
I guess koacha swallows this output, but I'm not using that in bb's tests
1c83246772c3baffd19ab5928e6646c62a0b53f3 should fix that for you
thanks!
@ramblurr would it be possible to suppress the very long output of ol.sfv.conformance-test ? it's a little bit overwhelming every time I look at failing bb test suite tests
Yes that should be possible