28 KiB
Changelog
For a list of breaking changes, check here.
0.3.2
- Include rewrite-clj into babashka #769 .
0.3.1
Babashka proper:
- Support
bb.ednproject config with:pathsand:deps. See docs. - Rewrite CLI arg parsing to to subcommand style invocations:
bb --uberjarbecomesbb uberjar - Support fully qualified symbol in
--mainoption #758. See docs. - Support new
docoption to retrieve a docstring from the command line
Babashka.fs:
- Create target dir automatically in
copy-tree
Babashka.nrepl:
Babashka.process:
Deps.clj:
- Catch up with Clojure CLI 1.10.3.814 #40
Sci:
0.3.0
New
- Linux support for AArch64 #241. This means you can now run babashka on Raspberry Pi 64bit and Chromebooks with ARM 64-bit processors!
A major thanks to CircleCI for enabling AArch64 support in the babashka organization and GraalVM for supporting this platform.
Enhancements / fixes
- Fix
print-methodwhen writing to stdout #667 - Fix interop with
System/out#754 - Support version-clj v2.0.1 by adding
java.util.regex.Matcherto the reflection config - Distribute linux and macOS archives as
tar.gz. The reason is thatunzipis not pre-installed on most unix-y systems. (@grazfather)
Babashka.fs:
- Fix globbing on Windows
- Fix Windows tests
- Fix issue with
copy-treewhen dest dir doesn't exist yet
Thanks @lread for his help on fixing issues with Windows.
Sci:
- Support
:reload-all#552 - Narrow
reifyto just one class. See discussion in sci#549. - Add preliminary support for
proxy(mainly to support pathom3 smart maps) sci#550.
Thanks to @wilkerlucio and @GreshamDanielStephens for their help and discussions.
v0.2.13
Enhancements / fixes
- Add more interfaces to be used with
reify(@wilkerlucio) (mostly to support smart maps with pathom3)
Babashka.curl:
- Use
--data-binarywhen sending files or streams #35
Babashka.fs:
- Add
create-linkandsplit-paths(@eamonnsullivan) - Add
split-extandextension(@kiramclean) - Add
regular-file?(@tekacs) - Globbing is always recursive but should not be #18
Sci:
- Allow combinations of interfaces and protocols in
reify#540 (@GreshamDanielStephens) - Fix metadata on non-constant map literal expression #546
0.2.12
Enhancements / fixes
- Fix false positive cyclic dep problem with doric lib #741
0.2.11
Enhancements / fixes
- Use default
*print-right-margin*value fromclojure.pprint - Upgrade httpkit to 2.5.3 #738
- Upgrade tools.cli to 1.0.206
- Add several classes to be used with
defprotocol(PersistentVector,PersistentHashSet, ...) - Support reifying
clojure.lang.IFnandclojure.lang.ILookup
Sci:
- Detect cyclic load dependencies #531
- Pick fn arity independent of written order #532 (@GreshamDanielStephens)
(instance? clojure.lang.IAtom 1)returnstrue#537- Add
dissoc!(@wilkerlucio) - Add
force - Fix
ns-unmapon referred var #539
Babashka.nrepl:
0.2.10
Sci:
0.2.9
New
- Include babashka.fs
Enhancements / fixes
- Upgrade to GraalVM 21.0.0 #712
Babashka.nrepl:
- Implement pprint support #18 (@kolharsam, @grazfather, @bbatsov)
Sci:
- Fix error reporting in case of arity error #518
- Shadowing record field names in protocol functions #513
- Fix destructuring in protocol method for record #512
- Faster processing of maps, sets and vectors #482
- Prioritize current namespace vars in syntax quote #509
- Fix ns-publics to not include refers #520
- Add
refer-clojuremacro #519
v0.2.8
New
- Include clojure.core.match #594
- Include hiccup #646
- Include clojure.test.check #487. Included namespaces:
- clojure.test.check
- clojure.test.check.generators
- clojure.test.check.properties
Fixed / enhanced
- Fix symbol resolution in syntax quote when overwriting core var
- Performance enhancements
v0.2.7
New
- Add Alpine Docker images #699 (@lispyclouds)
- Add
ppfromclojure.pprint#707
Fixed / enhanced
- Fix issue with unzipping nested directory babashka/pod-registry#4
- Test cannot be defined conditionally #705
- Add
--download-diroption to install script #688 (instance? clojure.lang.Fn x)now works- (.keySet {:a 1}) returns nil #711
- Various performance enhancements
- Babashka.curl: allow keywords as header names #32 (@xificurC)
v0.2.6
New
- Implement pod registry to automatically obtain pods when used in script. #690
- Buddy pod #656
- Etaoin pod 0.0.1 release
- Filewatcher pod 0.0.1 release
- Fswatcher pod (@lispyclouds)
Fixed / enhanced
- Auto-resolved map fix #684
- Handle whitespace after read-cond splice
- Several performance improvements
Thanks
Special thanks to @lispyclouds for hammocking on the pod registry and working on the new fswatcher pod.
v0.2.5
This release adds a new babashka.deps namespace which offers tools.deps
integration. See
docs.
New
- Add
get-classpathandsplit-classpathtobabashka.classpathnamespace. #670. See docs. - Expose
add-depsinbabashka.deps#677. See docs. - Expose
clojureinbabashka.deps#678. See docs. - Implement
--clojureoption to invoke a JVM clojure process similar to the official Clojure CLI. See docs.
Fixed / enhanced
v0.2.4
Thanks to Nextjournal for funding work on prepl. Thanks to the community for taking the time to create issues, discussions and code contributions. Thanks to sponsors on OpenCollective and Github for continued financial support.
New
- pREPL implementation #664. See docs. The pREPL is used by NextJournal to expose a babashka notebook environment.
- News page where you can follow the latest developments around babashka.
- Expose
pprint/simple-dispatch#627 - Support nested libspecs borkdude/sci#399
- Add OracleDB feature flag #638 (@holyjak)
- Docker build documentation improvements #643 (@holyjak)
- Implement
get-thread-bindings,var-getandvar-set - Print used port when starting nREPL server (@plexus)
Fixed / enhanced
- Can't call symbol literal as function #622
:orin destructuring broken forfalsecase- Support aliases in protocol fns borkdude/sci#440
- Reader metadata preservation and evaluation fixes #654, borkdude/sci#447, borkdude/sci#448
- Optimization for constant colls borkdude/sci#452
ns-unmapdoesn't work for imported classes borkdude/sci#432- Fix parsing of trailing uneval in reader conditional borkdude/edamame#65
symbolworks on sci var borkdude/sci#453
Changed
- Remove cheshire smile functions #658
babashka.curlnow calls curl with--compressedby default babashka/babashka.curl#28
v0.2.3 (2020-10-21)
Thanks to @tzzh, @Heliosmaster, @lispyclouds and @kwrooijen for contributing to this release. Thanks to Clojurists Together for sponsoring this release. Thanks to Adgoji and other sponsors on OpenCollective and Github for their ongoing support.
New
- babashka/process: a Clojure library for working with
java.lang.Process - pod-tzzh-mail: a pod for sending mail by @tzzh
- pod-babashka-lanterna: a pod for creating TUI apps
- pod.xledger.sql-server: a pod for interacting with SQL Server
- Add
lazy-cat#605 - Support error output in babashka.nrepl babashka.nrepl#28 (@tzzh)
- Add lanterna feature flag (@kwrooijen)
- Add socket support to pods babashka/pods#2
- Add
curlto babashka/babashka Docker image to supportbabashka.curl(@hansbugge) - Add
transit+jsonformat support to pods babashka/pods#21 - Add
bound?borkdude/sci#430 - Add portal example
- Add
*print-namespace-maps*borkdude/sci#428 - Support
clojure.java.io/Coercionsprotocol #601 - Add
clojure.pprint/write#607 - Add pretty-printer vars from
cheshire.core#619
Fixed
pprint/print-tableshould write tosci/out#611System/exitdoesn't work in REPL #605- Fix pod destroy function #615
- Bind
*file*in nREPL server babashka/babashka.nrepl#31 - Support
map->constructor on defrecords borkdude/sci#431 - Import should return class #610
Changed
- The Docker image is now based on Ubuntu instead of Alpine.
v0.2.2 (2020-09-30)
This is a patch release for
babashka/babashka.pods#20,
but it also introduces new support around reify.
New
- Support
java.nio.file.FileVisitorandjava.io.FilenameFilterwithreify#600. Nice side effect: this makes babashka compatible with the fs library:$ export BABASHKA_CLASSPATH=$(clojure -Spath -Sdeps '{:deps {clj-commons/fs {:mvn/version "1.5.2"}}}') $ bb -e '(ns foo (:require [me.raynes.fs :as fs])) (map str (fs/glob "*.md"))' ("/Users/borkdude/Dropbox/dev/clojure/glam/README.md") - Add classes
java.util.zip.ZipInputStreamandjava.util.zip.ZipEntry. This makes babashka compatible with glam, a work in progress package manager.
Fixed
- Ensure ns map exists for namespaces used only "code" vars babashka/babashka.pods#20. This fixes compatibility with bootleg.
v0.2.1 (2020-09-25)
Thanks to @RickMoynihan, @joinr, @djblue, @lread, @teodorlu, @tzzh and @zoren for contributing to this release. Thanks to Clojurists Together for sponsoring this release.
New
- Include
org.httpkit.client, a high performance async http client #561 - Include
org.httpkit.server, an HTTP server #556. This namespace should be considered experimental and may stay or be removed in a future version of babashka, depending on feedback from the community. See example - Add
java.io.FileNotFoundException,java.security.DigestInputStream,java.nio.file.FileVisitOptionclasses - Support implementing
IDeref,IAtomandIAtom2on records sci#401 - Support compatibility with version-clj #565 @lread and @borkdude
- Support YAML roundtrip through
*input*#583 - Support
clojure.core/find-varsci#420 @RickMoynihan - Support
clojure.pprint/cl-format#571 - AWS pod
Fixed / enhanced
- Fix location printing in REPL (
--repl) #598 - Babashka.curl sends form params incorrectly as multipart babashka.curl#25
- Update Windows build instructions #574
- Set minimum macOS version in build explicitly #588
- Fix NPE in error handling logic #587
- Fix namespace switch in REPL (
--repl) #564 - Fix location of errors in REPL (
--repl) #589 - Support multi-arity methods in
defprotocolsci#406 - Constructor call not recognized in protocol impl sci#419
- Improve handling of top-level do in macro expansion sci#421
- Performance improvements suggested by @joinr sci#415
- Throw when trying to redefine referred var sci#398
pprintis now backed byclojure.pprint/pprintinstead of fipp #571
v0.2.0 (2020-08-28)
Thanks to @cldwalker, @dehli, @djblue, @GomoSDG, @grahamcarlyle, @j-cr, @jeroenvandijk, @justone, @kwrooijen, @lread, @patrick-galvin and @wodin for contributing to this release. Thanks to Clojurists Together for sponsoring this release.
New
- Add support for
clojure.datafy,DatafiableandNavigable#468. To play with the newclojure.datafysupport, you can use portal:$ bb -cp `clj -Spath -Sdeps '{:deps {djblue/portal {:mvn/version "0.4.0"}}}'` - Add support for building and running uberjars #536. See docs.
- Print context, locals and stack trace on exception #543.
- Expose more transit vars #525 (@djblue)
- Add
add-tap,tap>,remove-tap,class?,iterator-seq,remove-watch,realized? - Add
clojure.walk/macroexpand-all - Add
java.lang.ProcessHandleand better support for killing subprocesses via Java interop. See test script. - Add
clojure.lang.ArityExceptionand tests to support the circleci/bond library #524 (@cldwalker). - Add
java.time.format.DateTimeParseException
Fixed
- Fix order of namespaces in uberscript #535
- Fix reading resources from jar files #528
- Switch from canonical to absolute paths in
:filefield on var metadata #532 - Babashka shows wrong filename when error is from required ns #508
- Eval metadata on var created with
defnborkdude/sci#36 - Metadata fn on var fails if calling the var itself borkdude/sci#363
- Allow re-binding of core vars in with-redefs borkdude/sci#375
- Fix
falsedynamic binding value (which was read asnil) borkdude/sci#379 - Fix setting of
*warn-on-reflection*in nREPL session babashka/babashka.nrepl#25 - Fix protocols with multiple methods on defrecords borkdude/sci#367 (@patrick-galvin)
v0.1.3 (2020-06-27)
Thanks @llacom, @AndreTheHunterand @xingzheone for contributing to this release.
New
- Add eldoc support in babashka.nrepl (@borkdude and @llacom)
- Add
java.time.temporal.{TemportalAdjuster, TemporalAmount}classes - Add
clojure.java.browse/browse-url#495 - Add classes for cli-matic library (@AndreTheHunter)
- Add
babashka.versionsystem property #479 - Add
java.net.ConnectExceptionclass - Add
babashka.filesystem property to support__name__ = "__main__"pattern (see docs) #478.
Fixed
- Make
clojure.test/reporta dynamic var #482, #491 - Make
clojure.test/test-vara dynamic var - Allow arbitrary Clojure code in tagged literals (previously only EDN was allowed)
- Fix http-server example (@xingzheone)
- Fix bug in
alter-var-root: it used thread-local binding in updating root value - Fix for invoking
bb -f file.cljwhenfile.cljwas empty
v0.1.2 (2020-06-14)
Thanks @jeroenvandijk for contributing to this release.
- Support
:extend-via-metadataoption in protocols - Fix classpath issue for Windows #496
- Add
double-array,short-arrayandclojure.lang.BigIntfor compatibility with clojure.data.generators - Add support for
*print-level* - Add version info in
:describemessage of babashka.nrepl #471 - Add compatibility for honeysql
(most notable change: support
importfor records)
v0.1.1 (2020-06-10)
Thanks @Chowlz and @mharju for contributing to this release.
This release brings compatibility with the
camel-snake-kebab and
aero libraries due to the introduction of
defprotocol, defrecord and other enhancements.
New
- Add
java.io.Console. This is useful for letting users type in passwords. - Add initial support for
defprotocolanddefrecord - Add
default-data-readers
Enhancements / fixes
- Fix interop with result of
.environmentmethod onProcessBuilder#460 - Disable signal handlers via environment variable for AWS Lambda #462 (@Chowlz). See README.md.
- babashka.curl: fix double quote escaping issue on Windows
- Fix resolving var in syntax-quote from other namespace brought in via
:refer io/resourceshould returnnilfor non-relative paths instead of throwing- Fix field access interop when wrapped in parens:
(Integer/SIZE)
v0.1.0 (2020-06-01)
Thanks @martinklepsch and @cldwalker for contributing to this release.
- Add more
java.timeclasses. This makes babashka fully compatible with the cljc.java-time library. - Add
java.lang.Floatclass - Add
java.nio.file.PathMatcherclass. This allows one to implement a glob function. - Support alternative interop form:
(. Integer -SIZE) ;;=> 32 - #454: syntax check on amount of arguments to
def - #458: add
clojure.datanamespace
Prior to v0.1.0
Details about releases prior to v0.1.0 can be found here.
Breaking changes
v0.2.4
- Remove cheshire smile functions #658
v0.2.3
- The Docker image is now based on Ubuntu instead of Alpine.
v0.0.90
- The
next.jdbcnamespace and PostgresQL driver, introduced inv0.0.89, are no longer part of the standardly distributedbbbinary. This is now available behind a feature flag. See feature flag documentation. - babashka/babashka.curl#16:
Exceptional status codes or nonzero
curlexit codes will throw exceptions by default. You can opt out with:throw false.
v0.0.79
- babashka.curl#9:
Functions in
babashka.curllikeget,post, etc. now always return a map with:status,:body, and:headers.
v0.0.71
- #267 Change behavior of
reader conditionals: the
:cljbranch is taken when it occurs before a:bbbranch.
v0.0.44 - 0.0.45
- #173: Rename
*in*to*input*(in theusernamespace). The reason for this is that it shadowedclojure.core/*in*when used unqualified.
v0.0.43
- #160: Add support for
java.lang.ProcessBuilder. See docs. This replaces theconchnamespace.