Commit graph

894 commits

Author SHA1 Message Date
Michiel Borkent
823bc8ca22 0.7.0 2021-12-10 11:19:19 +01:00
Michiel Borkent
73d466e7d6
Fix SCI#649 aget reflection (#1100)
Fix issue with aget reported in babashka/sci#649 by @MrEbbinghaus
2021-12-09 22:38:38 +01:00
Michiel Borkent
806517c2ba graal config 2021-12-09 17:52:51 +01:00
Michiel Borkent
efacc16e3b graal config 2021-12-09 17:50:41 +01:00
Michiel Borkent
b67d539ab0 fields 2021-12-09 17:42:55 +01:00
Michiel Borkent
713358dca8 SCI: instance field access // MultiFn interop 2021-12-09 17:28:04 +01:00
Michiel Borkent
b32b7d7de9 sci bump, memfn 2021-12-09 13:05:45 +01:00
Michiel Borkent
19ad756261 Support applyTo interop for clojure.spec 2021-12-08 22:42:26 +01:00
Michiel Borkent
f754578075 Add coax tests 2021-12-08 21:31:58 +01:00
Michiel Borkent
6d14ed61f1 Add better-cond to CI tests 2021-12-08 18:46:53 +01:00
Michiel Borkent
54cd1fa85f Add core specs warning 2021-12-08 18:08:02 +01:00
Michiel Borkent
f5fd11fd78 Don't remove core specs when they are in deps map 2021-12-08 17:20:05 +01:00
Michiel Borkent
8b3e89fbcc Don't remove core specs 2021-12-08 17:11:29 +01:00
Michiel Borkent
76c9d633ff Warn on clojure.spec.alpha 2021-12-08 16:04:32 +01:00
Michiel Borkent
ef8e4f48b9 add StackTraceElement->vec 2021-12-08 15:00:24 +01:00
Michiel Borkent
e466f832b8
inst-ms + clojure.instant ns (#1098) 2021-12-08 13:51:31 +01:00
Michiel Borkent
e703669c79
Add java.util.StringTokenizer (#1092) 2021-12-06 11:31:30 +01:00
Michiel Borkent
f761d84312 Add new functions from clojure 1.11 except clojure.java.math 2021-12-02 20:47:09 +01:00
Michiel Borkent
2079f0a554 Add print-deps test 2021-11-29 23:42:36 +01:00
Michiel Borkent
99262e7ce8 Add babashka.core 2021-11-28 15:56:26 +01:00
Michiel Borkent
2a2d4befe5 Add babashka.core 2021-11-28 15:56:17 +01:00
Nik
080c60c08e
[#1081] make next.jdbc's result-set namespace accessible from babashka (#1082) 2021-11-28 09:36:42 +01:00
Nik
f06a749249
Add support for SQLite via a BABASHKA_FEATURE_SQLITE feature flag (#1079)
* implement native sqlite support as a feature flag following [1]

([1] is mentioned as a checklist of sorts as to how to add a new 
feature flag in [2])

[1] 13f65f05ae
[2] https://github.com/babashka/babashka/blob/master/doc/build.md

* bump to latest sqlite-jdbc, remove some no longer needed config+libs

based on feedback from borkdude here [1], bump xerial/sqlite-jdbc
3.36.0.3, which includes the graalvm classes and resource config
previously implemented via ericdallo/sqlite-jni-graal-fix and a `-H`
flag in `script/compile`

[1]: https://github.com/babashka/babashka/pull/1079#issuecomment-980533178
2021-11-28 09:34:54 +01:00
Michiel Borkent
4566905a5c
Add compatibility with hato and clj-http-lite insecure feature (#1080)
Added classes:

- java.net.CookiePolicy
- java.net.http.HttpTimeoutException
- javax.net.ssl.HostnameVerifier
- javax.net.ssl.HttpsURLConnection
- javax.net.ssl.KeyManagerFactory
- javax.net.ssl.SSLSession
- javax.net.ssl.TrustManagerFactory
- java.security.KeyStore
- java.util.zip.Inflater
- java.util.zip.ZipException
2021-11-27 15:58:24 +01:00
Michiel Borkent
e419c569a8
Support satisfies? on protocol values (#1076) 2021-11-24 17:38:38 +01:00
Michiel Borkent
a95c51998f
limit space of InetAddress4/6 2021-11-23 11:34:30 +01:00
Michiel Borkent
29b693181c Merge branch 'master' into reader-resolver 2021-11-22 22:02:02 +01:00
Michiel Borkent
369ee94c90
Add java.net.Inet4Address and java.net.Inet6Address (#1072) 2021-11-22 10:42:50 +01:00
Michiel Borkent
d897baff28 reader-resolver 2021-11-21 23:51:21 +01:00
Michiel Borkent
8ae4fc5128 sci: default-reader-fn 2021-11-21 21:19:52 +01:00
Michiel Borkent
d04e897ef4 clojure.core/read improvements: support :eof + :read-cond 2021-11-21 14:37:14 +01:00
Michiel Borkent
0428d983d9 update to newest sci 2021-11-19 21:46:16 +01:00
Michiel Borkent
1ebe142655 use sci/copy-ns 2021-11-19 18:43:18 +01:00
Michiel Borkent
44e8ea36fd Update with fs/with-temp-dir 2021-11-19 18:43:18 +01:00
Michael Glaesemann
5940b95cd2
Add javax.crypto classes necessary for calculating hmac shas. (#1066)
* Add javax.crypto classes necessary for calculating hmac shas.

* Add hmac-256-sha test for javax.crypto.
2021-11-18 08:49:59 +01:00
Michiel Borkent
52f9dc8f28
Add various tools.build related classes (#1062)
Co-authored-by: Hugo Duncan <hugo@hugoduncan.org>
2021-11-13 11:11:42 +01:00
Michiel Borkent
948c38c035 Add support for BasicFileAttributes 2021-11-13 11:05:21 +01:00
Michiel Borkent
aaaab5f6eb [#1061] Calling close on DirectoryStream fails 2021-11-13 10:44:16 +01:00
Michiel Borkent
321c47297d [#1061] Calling close on DirectoryStream fails 2021-11-13 10:38:21 +01:00
Bob
fb1a1cfbfb
[#1046] add PGProperty fields to reflection config 2021-11-07 21:44:10 +01:00
Michiel Borkent
2bb7499fd5 [#1055] Segfault when reifying FileVisitor with visitFileFailed 2021-11-07 12:05:16 +01:00
Michiel Borkent
7c7053119a Expose babashka.deps/clojure 2021-11-06 13:01:35 +01:00
Michiel Borkent
19415f6363 Fix remaining args when invoking -m 2021-11-02 13:46:51 +01:00
Karol Wójcik
147e12f041
Add clojure.lang.IPersistentList (#1048) 2021-11-01 13:58:53 +01:00
Michiel Borkent
e819cd1fb5 Update babashka.fs 2021-10-20 21:31:34 +02:00
Bob
5a80e1603e
- correct --init to be a global option (#1036)
- test --init before subcommands and task names
2021-10-18 15:39:08 +02:00
Bob
bf3b6d2dca
add support for --init as a file to be loaded before evaluation actions (#1033) 2021-10-17 10:44:31 +02:00
Michiel Borkent
83f2441bfd [#1030] Add fs/unzip 2021-10-12 17:23:09 +02:00
Michiel Borkent
405c34b668
Add java.security.Provider and java.security.Security (#1028)
This adds about 80k to the binary.
2021-10-11 17:28:12 +02:00
Michiel Borkent
bc63da1612
babashka fs: add unzip function (#1027) 2021-10-07 12:39:33 +02:00
Bob
d4ac7365e0
[#1015] print locals only when debug option is enabled (#1021) 2021-09-29 09:24:51 +02:00
Michiel Borkent
7063021f19
SCI: use public stacktrace logic (#1017) 2021-09-26 23:48:36 +02:00
Bob
7df81f1273
make core.async and rewrite-clj integral (#1014)
* make core.async integral (not a feature)

tasks (in particular, parallel tasks) require core.async

* make rewrite_clj integral (not a feature)

* cleanup mistakes
2021-09-23 18:15:01 +02:00
Michael Glaesemann
7cb972fdec
Include java.util.stream.BaseStream in classes. (#1013) 2021-09-23 16:01:42 +02:00
Bob
407bd74a00
[#1004] XML edn reading and populating *data-readers* for feature deps (#1012)
* add XML edn reading and make *data-readers* closer to Clojure

- initial value of *data-readers*: empty map
- add XML readers to feature-flagged edn-readers for parsing *input*
- add edn-readers to *data-readers* to emulate data_readers.clj handling

* add YAML round-trip testing

* set root val of *data-readers* at top level
2021-09-20 18:31:57 +02:00
Kimmo Koskinen
89d07602e8
Add ZipFile (#1010) 2021-09-15 14:34:58 +02:00
Michiel Borkent
11f0e1a566 Get rid of single segment namespace 2021-09-12 12:39:58 +02:00
Michiel Borkent
a43e75ffd6
Add PipedInput/OutputStream (#1001) 2021-09-07 11:30:52 +02:00
Michiel Borkent
23ba52a813
[#979] More java net http tests and tweaks (#996) 2021-09-01 11:36:24 +02:00
Michael Glaesemann
125e227976
Java http insecure context (#994)
* Add support for creating insecure context.

* Add BABASHKA_FEATURE_JAVA_NET_HTTP flag.

* Clean up java.net.http tests
2021-08-31 17:37:11 +02:00
Michiel Borkent
b71278cc68
[#979] JDK 11 Http Client
Co-authored-by: Michael Glaesemann <grzm@seespotcode.net>
2021-08-31 11:13:11 +02:00
Bob
242c3d442f
Logging feature flag and tools.logging.readable (#981) (#987)
* put tools.logging behind a feature flag

* add tools.logging.readable

- move logging namespace to feature folder
- add logging.readable namespace
- add tests for logging.readable

* cleanup logging changes

- add logging env var to compile script
- remove unconditional require of logging namespace

* move old-config capture to before alter

* remove feature check from logging tests
2021-08-29 23:43:53 +02:00
Bob
4ee84947c9
use tagged-literal for unknown EDN tags when creating *input* (#975) (#976)
* use tagged-literal as default for unknown tags when using -I (or --stream without -i)

* use tagged-literal as default for unknown tags
2021-08-25 17:57:17 +02:00
Bob
a85d593767
make the REPL requires available to command-line scripts (#972) 2021-08-22 23:20:41 +02:00
Eric Dallo
72d3afa698
Migrate GraalVM configuration to jar (#973) 2021-08-22 23:19:28 +02:00
Michiel Borkent
d4f5e57866 [#959] Add *print-readably* and *flush-on-newline* 2021-08-16 22:57:59 +02:00
Michiel Borkent
f1fa47837a
[#969] Add java.lang.reflect.Method (getName only) (#970) 2021-08-13 11:25:00 +02:00
Bob
116d73f0b0
- add :ns meta to more vars (#966)
- add a couple more tests for Coercions
2021-08-08 15:38:56 +02:00
Bob
05e963bb6f
varify some core dynamic vars (#957) (#965)
* refer clojure core ns from sci.impl.vars instead
of sci.impl.namespaces

* add :ns meta to dynamic vars in b.i.clojure.core
2021-08-06 13:11:10 +02:00
Michiel Borkent
ff8ad66350 CHANGELOGS [skip ci] 2021-08-02 23:41:15 +02:00
Michiel Borkent
be29d791a8 [#733] print-deps tests 2021-08-02 23:34:38 +02:00
Michiel Borkent
3f72507f77
[#957] Repair ns meta 2021-07-31 14:44:26 +02:00
Michiel Borkent
84430c60f8
[#720, #733] print-deps (#958) 2021-07-27 11:29:00 +02:00
Michiel Borkent
25390103fd [#953] Support full reflection on printwriter 2021-07-23 10:59:28 +02:00
Michiel Borkent
7e0b19ad43 Update babashka.fs 2021-07-22 20:17:46 +02:00
Michiel Borkent
7fac0f1eb9
[#947] Vault tests, part 1 (#949) 2021-07-21 12:35:38 +02:00
Michiel Borkent
9c338c9b7f Add timbre/merge-config! 2021-07-18 11:19:47 +02:00
Eugen Stan
d25dd17510
Added InterruptedExcpetion to bb (#943) 2021-07-16 09:52:08 +02:00
Eugen Stan
c1eb47a262
Added IllegalStateException to automatic imports (#942) 2021-07-16 09:48:13 +02:00
Eugen Stan
95a6bc0d54
Added IllegalStateException to bb (#941) 2021-07-15 22:16:25 +02:00
Michiel Borkent
f058463685 Thanks @justone for the better name [skip ci] 2021-07-15 10:36:07 +02:00
Michiel Borkent
2c7e559351 0.5.0 but with trace 2021-07-14 22:51:18 +02:00
Michiel Borkent
cdc4a4987d FIX THE BLOAT 2021-07-14 22:06:19 +02:00
Michiel Borkent
3d45f62dd2 [#935] Add logging tests 2021-07-14 12:43:12 +02:00
Michiel Borkent
588cda9eac [#934] Environment variables not picked up by tools.deps 2021-07-13 11:31:36 +02:00
Michiel Borkent
e996351dc9 Add clojure.tools.logging + timbre 2021-07-12 22:59:07 +02:00
Michiel Borkent
28f986e201 [#934] pick up env vars from :extra-env in deps step 2021-07-12 16:59:10 +02:00
Michiel Borkent
0832b0a480 Fully support PushbackReader 2021-07-10 11:40:19 +02:00
Michiel Borkent
d47290e996
[#922,#927] pprint/formatter-out + cl-format with-out-str support (#930) 2021-07-10 11:32:21 +02:00
Michiel Borkent
46892580c2
[#921, #922] clojure.data.json support, first steps 2021-07-07 21:17:57 +02:00
Michiel Borkent
1efed2c3c7 minor help edit [skip ci] 2021-07-04 20:41:09 +02:00
Michiel Borkent
3cf3a83c49 [#914] clojure with :dir option doesn't resolve deps in :dir (2) 2021-07-04 12:16:16 +02:00
Bob
47bcb4be5e
add heap size and 'expert' flags to help text (#908) 2021-06-30 18:21:35 +02:00
Michiel Borkent
e47e77c3d6 Add java.io.FileInputStream 2021-06-21 19:42:04 +02:00
Michiel Borkent
d90f4e7bac
sci: pull apart bindings in eval (#900) 2021-06-21 12:00:53 +02:00
Michiel Borkent
e143eb1cb1 [#899] Fix JVM test 2021-06-20 14:26:40 +02:00
Michiel Borkent
af754d013f [#899] (read-line) is buggy in REPL 2021-06-20 13:32:33 +02:00
Michiel Borkent
af036f9d3a
Passing form on Windows with question mark breaks evaluation #889 2021-06-16 21:18:31 +02:00
Michiel Borkent
732d2b5a8b
Allow .notify / .wait interop call #879 2021-06-10 12:04:23 +02:00
Michiel Borkent
12d6afc885 STM: add commute 2021-06-09 22:47:17 +02:00
Michiel Borkent
9385805423
STM (#882) 2021-06-09 15:47:34 +02:00
Michiel Borkent
15e54ef0a1
Add support for slingshot #675 (#881)
* Add java.util.Arrays/copyOfRange for slingshot

* add exception for tests

* Add slingshot tests
2021-06-09 10:39:43 +02:00
Michiel Borkent
9af436a0d4
Add java.net.InetSocketAddress (#878) 2021-06-07 20:20:28 +02:00
Michiel Borkent
3764b52f3a Implement custom deref outside of sci 2021-06-03 00:25:57 +02:00
Michiel Borkent
beb7d8a9a8
Add java.lang.StackTraceElement 2021-06-01 11:45:12 +02:00
Michiel Borkent
42bf790068
[#872] Add java.lang.ProcessHandle$Info (#873)
And java.util.Optional
2021-05-31 00:06:21 +02:00
Michiel Borkent
82625b57dd Tasks: fix edge case 2021-05-30 12:30:06 +02:00
Michiel Borkent
ac576bd6e7 [#865] Stable namespace 2021-05-30 11:36:30 +02:00
Michiel Borkent
94fc8298e6 [#865] Use print-meta when emitting tasks 2021-05-30 11:27:11 +02:00
Michiel Borkent
3eafacac2b sci: set! for CLJS 2021-05-25 15:44:56 +02:00
rng-dynamics
512a6f2220
feat: print data of uncaught ExceptionInfo to output (#854)
* feat: print data of uncaught ExceptionInfo to output

* println -> prn, add tests
2021-05-20 22:49:58 +02:00
Michiel Borkent
ae9eaa4bc4 Pods: transit fns 2021-05-19 21:32:25 +02:00
Michiel Borkent
a942befc65
Add more agent vars (#857) 2021-05-19 14:00:48 +02:00
Andrea Richiardi
7e3b1f58d5
Use sequential? for identifying if the script output needs splitting (#853) 2021-05-19 00:07:39 +02:00
Michiel Borkent
9f48048472 [#847] Better error handling for parallel tasks (2) 2021-05-18 13:19:09 +02:00
Michiel Borkent
e18f4302a8
[#847] Better error handling for parallel tasks 2021-05-18 12:39:21 +02:00
Michiel Borkent
5ce7f2d67d babashka.pods: transit read+write handlers 2021-05-17 11:45:11 +02:00
Michiel Borkent
a832b85ab5 browse-url: Use open in macOS without specifying location 2021-05-15 23:22:02 +02:00
Thiago Kenji Okada
69e58440ab
Improve clojure.java.browse (#846)
* Remove xdg-open hardcoded path in impl.clojure.java.browse

Binaries in Linux are not guarantee to be located on /usr/bin.

For example, NixOS the binaries are located in
/run/current-system/sw/bin/xdg-open (that is actually just a symlink to
/nix/store). The distro may also not have xdg-open installed at /,
instead the user may put it somewhere else like $HOME/bin.

This commit fixes this by using not hardcoding the PATH of xdg-open,
instead relying on shell path to search it.

* Implement clojure.java.browse/*open-url-script*

This allows usage of a custom URL script, like:

```clojure
(binding [*open-url-script* (atom "my-browse-url-script")]
  (browse-url "https://google.com"))
```

*open-url-script* is an atom just to keep compatibility with Clojure.

Described here: https://clojuredocs.org/clojure.java.browse/*open-url-script*
2021-05-15 22:10:52 +02:00
Michiel Borkent
6aca41a48a
[#829] Allow thread-first in combination with shell 2021-05-13 13:10:56 +02:00
Michiel Borkent
7462d86afd [#837] Add babashka.task System property 2021-05-13 11:53:28 +02:00
Michiel Borkent
5014012bd6 [#836] Add :error-fn option to shell 2021-05-13 11:45:27 +02:00
Michiel Borkent
5554619a9d Selmer: util/set-missing-value-formatter! 2021-05-11 22:13:50 +02:00
Michiel Borkent
4ffd08f360 [#835] Expose escaping functions from selmer.util 2021-05-11 13:19:31 +02:00
Michiel Borkent
c18be0a157 Import NullPointerException 2021-05-11 10:15:42 +02:00
Thiago Kenji Okada
14e053e0a3
Add BABASHKA_MUSL build variable (#834)
This allows building a Babashka binary using musl C libraries instead,
instead of hardcoding this accordingly to the CPU arch.
2021-05-11 00:10:11 +02:00
Michiel Borkent
43ba26e11a musl workaround 2021-05-10 23:31:08 +02:00
Michiel Borkent
6edc26c834
[#831] Workaround for musl stack size issues 2021-05-10 18:29:26 +02:00
Michiel Borkent
36e50e0f0d Add help for tasks and run 2021-05-08 23:51:15 +02:00
Michiel Borkent
fe9370e04b Tasks: inherit parallel option 2021-05-08 16:21:54 +02:00
Michiel Borkent
f3a441ee3c minor 2021-05-08 11:06:34 +02:00
Michiel Borkent
9a8bf7d0c3 [#825] Handle uneval-ed expressions in bb tasks 2021-05-08 11:02:05 +02:00
Dirk Wetzel
69ee221eda
Add class java.util.zip.ZipOutputStream (#824) 2021-05-07 16:17:09 +02:00
Michiel Borkent
d52ad92cb4 Add java.text.ParseException 2021-05-07 11:26:38 +02:00
Michiel Borkent
59cbfe43e0 Add java.text.ParserException 2021-05-07 11:22:37 +02:00
Michiel Borkent
bf6f19dc97 Tasks: don't print context on shell error 2021-05-06 13:58:49 +02:00
Michiel Borkent
f49178786c [#818] Tasks: don't call System/exit 2021-05-06 13:28:24 +02:00
Michiel Borkent
cbd8a2d07d
[#821] Include Selmer 2021-05-06 12:53:59 +02:00
Michiel Borkent
3e74aac4a5 Add NullPointerException class 2021-05-04 12:00:03 +02:00
Michiel Borkent
042934cc3c Ignore :min-bb-version when resolving deps 2021-05-04 11:11:55 +02:00
Michiel Borkent
e0e3aa422e [#770] Add test 2021-05-03 11:06:32 +02:00
Michiel Borkent
cf570cd913 Tasks: get rid of res local 2021-05-02 23:12:48 +02:00
Michiel Borkent
d0d18f9837 Tasks: integrate in doc subcommand 2021-05-02 20:48:40 +02:00
Michiel Borkent
76a6760516 Add some classes 2021-05-02 20:14:19 +02:00
Michiel Borkent
70e0566647 Tasks: detect cycles 2021-05-02 15:04:07 +02:00
Michiel Borkent
12c29eb308 Tasks: detect cycles 2021-05-02 14:51:51 +02:00
Michiel Borkent
fb3d24b23c Tasks: better error msg for unresolved task 2021-05-02 14:31:57 +02:00
Michiel Borkent
87b9d93911
[#622] with-precision 2021-05-02 11:41:57 +02:00
Michiel Borkent
6d540e2f06 Rename --verbose to --debug 2021-05-02 11:16:00 +02:00
Michiel Borkent
d1bbf844de Add --verbose to global opts 2021-05-02 11:00:44 +02:00
Michiel Borkent
3bcc392760 Tasks: add explicit run function 2021-04-30 11:55:24 +02:00
Michiel Borkent
f0adfb450e Tasks: remove log-level 2021-04-30 11:17:48 +02:00
Michiel Borkent
06be620d71
[#805] Support :enter and :leave hooks + current-task fn (#813) 2021-04-30 11:11:12 +02:00
Michiel Borkent
e26f26c1ba [#811] Fix --classpath when no additional args are passed 2021-04-28 20:14:39 +02:00
Michiel Borkent
66867e1ddb [#807] Ignore local and global deps.edn 2021-04-28 12:09:05 +02:00
Michiel Borkent
514fc84cde [#810] Support :extra-paths and :extra-deps in tasks 2021-04-27 23:32:37 +02:00
Michiel Borkent
7ab0ccd19e minor [skip ci] 2021-04-27 11:13:57 +02:00
Michiel Borkent
d7075ffad0 Tasks: fix listing of tasks 2021-04-26 10:59:05 +02:00
Michiel Borkent
386cbd4ad6 Tasks: add clojure to logging 2021-04-25 23:47:42 +02:00
Michiel Borkent
6da8fc99b8 Tasks: sort by occurence 2021-04-25 23:10:48 +02:00
Michiel Borkent
c5d61996d4 Tasks: support :continue in shell fn 2021-04-25 13:34:26 +02:00
Michiel Borkent
21bb768e9f Tasks: fix execution of fully qualified symbol 2021-04-25 11:42:11 +02:00
Michiel Borkent
647ef40250 Tasks: accept alias in fully qualified namespace 2021-04-25 11:27:34 +02:00
Michiel Borkent
f7e881479b Tasks: support :continue in shell 2021-04-25 00:24:33 +02:00
Michiel Borkent
a2f7bb835e Tasks: default log level = :error 2021-04-24 23:48:42 +02:00
Michiel Borkent
4f0795f522 Tasks: logging 2021-04-24 23:35:03 +02:00
Michiel Borkent
12cb5d637c [#802] Support resolving docstring from function 2021-04-24 23:19:37 +02:00
Michiel Borkent
bd08635793 Default log level :info 2021-04-24 18:10:31 +02:00
Michiel Borkent
ea62c99853 default log level 2021-04-24 17:47:28 +02:00
Michiel Borkent
4c5e7cc86d Tasks: simplify logging 2021-04-24 17:35:41 +02:00
Michiel Borkent
b71b5d2c50 Tasks: logging 2021-04-24 17:16:59 +02:00
Michiel Borkent
cb07196de9 Tasks: add :log option 2021-04-24 14:47:03 +02:00
Michiel Borkent
5ff9d8328a [#796] Support map literal in task 2021-04-24 13:05:27 +02:00
Michiel Borkent
3e9ddc55bb [#663] :min-bb-version 2021-04-24 12:54:41 +02:00
Michiel Borkent
6806398722 [#800] Fix task priority 2021-04-24 11:51:03 +02:00
Michiel Borkent
657a88c348 [#780] Ignore empty classpath entries 2021-04-22 12:33:17 +02:00
Michiel Borkent
15e71b0807
[#780] Fix uberjar CLI parsing and throw when no classpath is provided 2021-04-22 11:56:13 +02:00
Michiel Borkent
0014840506 Tasks: don't tokenize when string refers to file 2021-04-19 23:18:00 +02:00
Michiel Borkent
db8e839de1 Remove set support in tasks 2021-04-16 16:14:01 +02:00
Michiel Borkent
337096cde7 Tasks: set means parallel 2021-04-15 12:22:31 +02:00
Michiel Borkent
f3630d2fb3
[#790] Add java.security.SecureRandom 2021-04-15 00:04:19 +02:00
Michiel Borkent
e0b1c1b01e
[#784] Support binf.cljc library by adding ByteBuffer and Charset-related classes (#789) 2021-04-14 23:27:31 +02:00
Michiel Borkent
0ecee5bf94 [#785] :requires option 2021-04-12 22:55:10 +02:00
Michiel Borkent
478dd780b7 Add shutdown-tree 2021-04-12 17:37:29 +02:00
Michiel Borkent
80a06a62f9 Tasks: fix parallel 2021-04-12 11:55:56 +02:00
Michiel Borkent
e86aac02f9 Use pr-str in tasks 2021-04-12 10:35:41 +02:00
Michiel Borkent
00b33dab4d CHANGELOG 2021-04-12 09:47:28 +02:00
Michiel Borkent
ac307708ba parallel 2021-04-12 00:02:52 +02:00
Michiel Borkent
f18ec3feeb Fix parallel tasks 2021-04-11 23:20:27 +02:00
Michiel Borkent
e1cfdc6e23 Fix parallel 2021-04-11 23:07:48 +02:00
Michiel Borkent
2b2e602eac bb tasks: support parallel via future 2021-04-11 21:25:15 +02:00
Michiel Borkent
bd0495f88b tasks output test 2021-04-11 12:49:42 +02:00
Michiel Borkent
45109685e1 Get rid of :when for now 2021-04-10 16:50:20 +02:00
Michiel Borkent
36abd4152a List tasks test 2021-04-10 16:07:06 +02:00
Michiel Borkent
0ae56e7098 Fix bug in topological sorting 2021-04-10 15:57:03 +02:00
Michiel Borkent
1020a8c335
[#788] First cut of bb tasks 2021-04-10 14:42:58 +02:00
Andrea Richiardi
a0ace650f1
[#776] Use get-classpath when build an uberjar
It was previously using the classpath coming from the parameters/env. We need to use
cp/get-classpath for taking into consideration the classpath coming from bb.edn.
2021-04-07 10:21:09 +02:00
Michiel Borkent
1870e2729e
[#769] rewrite-clj support 2021-04-04 16:22:45 +02:00
Michiel Borkent
2aa8c88822 fix help text [skip ci] 2021-04-02 18:10:29 +02:00
Michiel Borkent
6a7baf2a90 v0.3.1 2021-03-30 18:06:56 +02:00
Michiel Borkent
02cecb259d help 2021-03-30 17:57:07 +02:00
Michiel Borkent
e95a10cf6b help 2021-03-30 11:41:12 +02:00
Michiel Borkent
c9826b9694 help 2021-03-30 11:32:30 +02:00
Michiel Borkent
6f133ed9f2 help 2021-03-30 11:31:58 +02:00
Michiel Borkent
093f9828f0 help 2021-03-30 11:29:46 +02:00
Michiel Borkent
69c1b65689 help 2021-03-30 11:27:23 +02:00
Michiel Borkent
4e667679a5 CHANGELOG [skip ci] 2021-03-29 23:57:13 +02:00
Michiel Borkent
c1670e8670 Improve doc 2021-03-28 22:48:44 +02:00
Michiel Borkent
40d34c27d7 help [skip ci] 2021-03-28 17:33:40 +02:00
Michiel Borkent
d71c3622ec
bb.edn: first iteration 2021-03-28 17:30:44 +02:00
Michiel Borkent
bfe139eacc add vars 2021-03-27 11:52:33 +01:00
Michiel Borkent
ac2bc23365 Fix tests 2021-03-15 22:44:16 +01:00
Michiel Borkent
2d81c3a8e3 Add FileInputStream 2021-03-15 22:37:03 +01:00
Michiel Borkent
db908004c7 Revert "Reduce size"
This reverts commit 1d3392e60e.
2021-03-14 18:43:06 +01:00
Michiel Borkent
1d3392e60e Reduce size 2021-03-14 18:34:12 +01:00
Michiel Borkent
aacbcc3602 Add java.util.regex.Matcher to increase compatibility with version-clj. 2021-03-14 17:38:04 +01:00
Michiel Borkent
0b332431d3 Fix proxy instance check 2021-03-13 18:08:36 +01:00
Michiel Borkent
c79d48cdde Fix proxy exception 2021-03-13 17:49:19 +01:00
Michiel Borkent
7262e1e709 note [skip ci] 2021-03-13 17:30:54 +01:00
Michiel Borkent
7c608452b5 clean [skip ci] 2021-03-13 17:30:08 +01:00
Michiel Borkent
a426cddd4a proxy + protocols 2021-03-13 17:25:24 +01:00
Michiel Borkent
c0e512e304 proxy 2021-03-13 17:04:35 +01:00
Wilker Lúcio
6a911fc54f
Augment proxy to fulfill custom maps interfaces (#755) 2021-03-13 16:37:51 +01:00
Michiel Borkent
ae047b5809 Support this in proxy 2021-03-13 14:59:44 +01:00
Michiel Borkent
ea88219ad6 Fix 2021-03-13 12:47:25 +01:00
Michiel Borkent
8551817724 Narrow scope of reify 2021-03-13 12:44:12 +01:00
Michiel Borkent
f58748ebbe Remove proxy-super 2021-03-13 11:18:53 +01:00
Michiel Borkent
5555ea4ede APersistentMap test 2021-03-12 20:31:58 +01:00
Michiel Borkent
fa92537bdf Preliminary proxy support 2021-03-12 14:47:18 +01:00
Michiel Borkent
6a47a4dc29 Preliminary proxy support 2021-03-12 14:47:03 +01:00
Michiel Borkent
45faf1ec63
Add java.io.OutputStreamWriter and java.io.PrintStream 2021-03-12 10:24:29 +01:00
Wilker Lúcio
39284ae707
Add IndexOutOfBoundsException and Map$Entry (#751)
* Add IndexOutOfBoundsException, IHashEq and Map$Entry

* Remove IHashEq interface
2021-03-10 23:21:35 +01:00
Wilker Lúcio
2ad4d3342c
Map type extensions (#749) 2021-03-08 22:58:43 +01:00
Michiel Borkent
fcb2554ff3 CHANGELOG [skip ci] 2021-03-08 10:46:38 +01:00
Michiel Borkent
0d59c0f43b Reify improvements 2021-03-07 13:56:12 +01:00
Michiel Borkent
bc8739a57e sci: reify 2021-03-07 12:34:01 +01:00
Michiel Borkent
d72aa3158a sci#540: one reify to rule them all 2021-03-07 11:43:35 +01:00
Michiel Borkent
874593bae9 Add clojure.lang.Associative 2021-03-06 16:02:41 +01:00
Michiel Borkent
1391f028bf sci: update to new reify config 2021-03-06 11:17:39 +01:00
Michiel Borkent
e64dbc7691
Support reifying clojure.lang.IFn and clojure.lang.ILookup (#740) 2021-02-28 18:23:45 +01:00
Michiel Borkent
8733bcb795
Add classes for instance checks (#739) 2021-02-27 10:15:28 +01:00
Michiel Borkent
dab1020622 [#736] Update link in nREPL server [skip ci] 2021-02-24 21:03:16 +01:00
Michiel Borkent
1736adb171 Use default print-right-margin 2021-02-15 14:09:43 +01:00
Michiel Borkent
e4a9660670 [#728] Update fs lib with split-paths 2021-02-10 10:07:28 +01:00
Michiel Borkent
77daea7362
[#712] Upgrade to GraalVM 21.0.0 (#725) 2021-02-07 12:23:20 +01:00
Michiel Borkent
24032734e7 fs 2021-02-06 21:24:25 +01:00
Michiel Borkent
4daef2fbcc fs [skip ci] 2021-02-06 17:51:19 +01:00
Michiel Borkent
52f2728735 fs update 2021-02-06 14:11:16 +01:00
Michiel Borkent
6c5f20f786 fs: fix delete-tree 2021-02-06 10:11:53 +01:00
Michiel Borkent
549c2166b4 fs 2021-02-05 23:29:23 +01:00
Michiel Borkent
9220b983c5 Fix gaka tests 2021-02-03 23:06:18 +01:00
Michiel Borkent
931fadabb2
[#487] Include clojure.test.check as preparation for clojure.spec 2021-01-24 21:07:07 +01:00
Michiel Borkent
c4bb42df3e
[#646] Add hiccup.core and hiccup2.core 2021-01-23 22:47:35 +01:00
Michiel Borkent
6dc6cbab12 Add clojure.lang.Ratio 2021-01-23 15:47:28 +01:00
Michiel Borkent
497bfb01da
[#594] Include clojure.core.match 2021-01-23 14:02:00 +01:00
Michiel Borkent
0f97da2d9c Add IllegalArgumentException 2021-01-23 13:45:09 +01:00
Michiel Borkent
bb4ef582d6 Add instance check for clojure.lang.Fn 2021-01-20 12:52:56 +01:00
Michiel Borkent
fecefc3f92 Note 2021-01-19 15:21:25 +01:00
Michiel Borkent
428b946f45 minor 2021-01-19 14:33:01 +01:00
Michiel Borkent
6a3594deeb core.match compat 2021-01-19 14:09:52 +01:00
Michiel Borkent
3d27677186 [#707] Add pp from clojure.pprint 2021-01-10 15:40:13 +01:00
Michiel Borkent
ee22efdb40
Carve 2021-01-02 15:03:06 +01:00
Michiel Borkent
e309b49e1b Rename 2021-01-01 11:26:31 +01:00
Michiel Borkent
c371e50a2b
Sci: get rid of end-line and end-col metadata 2020-12-24 16:22:09 +01:00
Michiel Borkent
697c5b6152 sci: rename error key 2020-12-20 23:25:03 +01:00
Michiel Borkent
e88dc25709 sci: restructure internal ns 2020-12-16 13:03:35 +01:00
Michiel Borkent
44d632718d Rename clojure to --clojure 2020-12-13 18:02:30 +01:00
Michiel Borkent
a95808bf9e [#677, #678] Correct namespace name 2020-12-13 15:56:24 +01:00
Michiel Borkent
7b8745806f
[#677, #678] babashka.deps add-deps + clojure + clojure subcommand 2020-12-13 11:41:20 +01:00
Michiel Borkent
1489e003f2 [#670] Add split-classpath 2020-12-06 11:41:05 +01:00
Michiel Borkent
a04a09c018 [#670] Expose get-classpath 2020-12-06 11:01:37 +01:00
Kevin W. van Rooijen
b269b37ecf
Add babashka.classpath/classpath (#669) 2020-12-06 10:57:24 +01:00
Michiel Borkent
409380dbc3 Bind *print-level* in pREPL 2020-12-03 11:12:46 +01:00
Michiel Borkent
67c33b2270
[#664] Prepl 2020-11-26 12:06:49 +01:00
Michiel Borkent
52f1296467
[#658] Remove cheshire smile functions 2020-11-20 17:36:06 +01:00
Michiel Borkent
04500f2448 Import Iterable 2020-11-19 09:22:25 +01:00
Michiel Borkent
86ea4bbc9a Add Iterable 2020-11-18 22:53:21 +01:00
Michiel Borkent
c94b4f9148 sci + nrepl using REPL variables 2020-11-18 22:49:51 +01:00
Michiel Borkent
a74cb810f5 Fix class 2020-11-18 21:46:24 +01:00
Michiel Borkent
76aa7f8f9b Add Seqable instance check 2020-11-18 21:16:29 +01:00
Michiel Borkent
e65457cf29 Use REPL variables from sci 2020-11-18 20:38:05 +01:00
Michiel Borkent
9cdd81c37b Get rid of :needs-ctx everywhere 2020-11-18 17:46:21 +01:00
Michiel Borkent
7bf2230f1b Revert "Add PipedInputStream and PipedOutputStream"
This reverts commit 51133263f2.
2020-11-17 21:50:39 +01:00
Burin Choomnuan
51133263f2 Add PipedInputStream and PipedOutputStream 2020-11-17 10:28:46 +01:00
Jakub Holy
b73940861f
Add feature/oracledb (#638)
NOTE: Using the Oracle driver directly requires some GraalVM settings
while the helidon wrapper provides those and thus works out of the box.
2020-11-11 22:29:42 +01:00
Michiel Borkent
76dd775991 Protocol test 2020-11-11 00:00:17 +01:00
Michiel Borkent
d4f9e89577
Add more interfaces to build protocols for 2020-11-10 23:40:28 +01:00
Michiel Borkent
2d77fd6254 [#630] Fix stream example 2020-11-03 11:42:28 +01:00
Michiel Borkent
d8da037af9 [#627] Expose pprint/simple-dispatch 2020-11-01 20:15:14 +01:00
Michiel Borkent
5ec6915c45 Process tweaks 2020-10-21 13:47:04 +02:00
Michiel Borkent
756d25c6a6 [#619] Add more cheshire vars 2020-10-21 10:25:22 +02:00
Michiel Borkent
ec731a4d47 Process updates 2020-10-21 10:23:26 +02:00
Michiel Borkent
c69b64c61c babashka/process updates 2020-10-20 23:51:42 +02:00
Michiel Borkent
1c10221f86 babashka/process updates 2020-10-20 23:50:48 +02:00
Michiel Borkent
8c73a02915 [babashka/process#2] *escape-fn* 2020-10-19 23:46:21 +02:00
Michiel Borkent
9027055cc7 [#521] babashka.process 2020-10-19 16:15:54 +02:00
Michiel Borkent
200d444745
[#603] Partial support for multiple classes in reify 2020-10-18 17:15:16 +02:00
Michiel Borkent
5ba2c34794 [#607] Add clojure.pprint/write 2020-10-17 22:10:31 +02:00
Michiel Borkent
b3fbe7e12e [#601] Support clojure.java.io/Coercions 2020-10-17 21:13:21 +02:00
Kevin W. van Rooijen
13f65f05ae
Add optional clojure-lanterna feature 2020-10-12 17:42:18 +02:00