Releases: avescodes/lein-try
Release 0.4.1: Load data readers when executing outside of a project
This release fixes a long running bug (#13) where data readers were not loaded when lein-try was executed outside the context of an existing project.
Thanks to some excellent work by @xsc, lein-try now properly loads data readers (think custom reader literals like Datomic's #db/id[:db.part/user]
).
You should now be able to do the following:
$ cd $HOME
$ lein try com.datomic/datomic-free
# ...
user=> (require 'datomic.api)
nil
user=> #db/id[:db.part/user]
#db/id[:db.part/user -1000000]
Upgrading
This latest version of lein-try is available on clojars.
To upgrade, modify the lein-try
dependency version in your ~/.lein/profiles.clj
to "0.4.1"
:
{:user {:plugins [ ;; ...
[lein-try "0.4.1"]
;; ...
]}}
0.4.0: Square-brackets no more
This isn't a big release, but it is a breaking change.
As of 0.4.0 lein-try no longer supports square brackets ([ ]
) as a means of specifying dependency name/version pairs. Square brackets are simply too wonky in ZSH and BASH to continue risking that users encounter odd behavior because of them. See #16 for more info.
Where you used to say: lein try [clj-time "0.1.0"]
You must now say: lein try clj-time "0.1.0"
To upgrade, modify your ~/.lein/profiles.clj
to include [lein-try "0.4.0"]
like so:
{:user {:plugins [ ;; ...
[lein-try "0.4.0"]
; ...
]}}
Remove any Clojure version requirements
In an effort to maximize compatibility, we've removed the reliance on the Clojure 1.5's edn API.
Require Clojure 1.5.1+
Since the library relies on EDN, I've updated the plugins dependencies to include Clojure 1.5.1. Fixes #14.
There is no need to upgrade if lein-try is already working for you.
Try libraries without specifying a version
Thanks to #7 and #8 by @xsc, lein-try now lets you try libraries without specifying a version number. This will cause leiningen to load the latest release of the library in question.
To use this feature, just exclude the version number from your lein try
call:
$ lein try clj-time
Retrieving clj-time/clj-time/0.5.1/clj-time-0.5.1.pom from clojars
Retrieving clj-time/clj-time/0.5.1/clj-time-0.5.1.jar from clojars
# ...
user=>
You can even mix and match versions and no-versions.
$ lein try http-kit "2.1.8" clj-time
Retrieving http-kit/http-kit/2.1.8/http-kit-2.1.8.pom from clojars
Retrieving http-kit/http-kit/2.1.8/http-kit-2.1.8.jar
# ...
user=>
Updating
Update to this latest version by updating your ~/.lein/profiles.clj
to say:
{:user {:plugins [[lein-try "0.3.0"]]}}
Add support for Leiningen 2.1.3
This release adds support for Leiningen 2.1.3 (thanks @seancorfield)
Bumping minor version as the privacy of some functions became more restrictive.
Fix lein-try project support
This release integrates #4, a fix that prevents loss of classpath information when launching a REPL in the case you are using lein-try inside of a project.
To upgrade, change the version number of lein-try
in ~/.lein/profiles.clj
to 0.1.3
.
Enjoy!