diff --git a/README.md b/README.md index daccdd6..319887f 100644 --- a/README.md +++ b/README.md @@ -2,18 +2,22 @@ A backport of `clojure.spec` for Clojure 1.8. -## Usage +> **NEW!** `clojure-future-spec` is now safe to use from both 1.8 and 1.9+ environments. It’ll add nothing but won’t raise any conflicts either + +## Setup -Add this to your project.clj: +For 1.8 projects, add this to your project.clj: ```clj :dependencies [ [org.clojure/clojure "1.8.0"] - [clojure-future-spec "1.9.0-alpha16-1"] + [clojure-future-spec "1.9.0-alpha17"] [org.clojure/test.check "0.9.0"] ;; only if you need generators ] ``` +## Usage + There’re four main namespaces: ### clojure.spec.alpha @@ -48,6 +52,14 @@ Copy of all new functions added to `clojure.core` in Clojure 1.9 (like `boolean? (require '[clojure.future :refer :all]) ``` +*NEW!* `clojure.future` will define nothing when evaluated in 1.9+ environment. You can now write libraries that do this: + +```clj +(require '[clojure.future :refer all]) +``` + +and it’ll work in both 1.8 and 1.9+ without any conflicts. + ## License Distributed under the Eclipse Public License either version 1.0 or (at diff --git a/project.clj b/project.clj index 1f42ba8..2d4fe9a 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject clojure-future-spec "1.9.0-alpha16-1" +(defproject clojure-future-spec "1.9.0-alpha17" :description "Backport of clojure.spec for Clojure 1.8" :url "https://github.com/tonsky/clojure-future-spec" :license {:name "Eclipse Public License"