Deprecate monger.js (moved to clojurewerkz.support.js)

This commit is contained in:
Michael S. Klishin 2012-05-03 01:06:41 +04:00
parent 451b29c718
commit 8142d02f01
3 changed files with 14 additions and 14 deletions

View file

@ -1,5 +1,15 @@
## Changes between 1.0.0-beta5 and 1.0.0-beta6
### monger.js is deprecated
`monger.js` namespace is kept for backwards compatibility but is deprecated in favor of [ClojureWerkz Support](http://github.com/clojurewerkz/support)
that now has exactly the same function in `clojurewerkz.support.js`. To add Support to your project with Leiningen, use
``` clojure
[clojurewerkz/support "0.3.0"]
```
### Validateur 1.1.0
[Validateur](https://github.com/michaelklishin/validateur) dependency has been upgraded to 1.1.0.

View file

@ -5,7 +5,7 @@
:dependencies [[org.clojure/clojure "1.3.0"]
[org.mongodb/mongo-java-driver "2.7.3"]
[com.novemberain/validateur "1.1.0"]
[clojurewerkz/support "0.2.0"]]
[clojurewerkz/support "0.3.0"]]
:test-selectors {:default (complement :performance)
:focus :focus
:indexing :indexing

View file

@ -7,18 +7,8 @@
;; the terms of this license.
;; You must not remove this notice, or any other, from this software.
(ns monger.js
(:require [clojure.java.io :as io]))
;;
;; Implementation
;;
(defn- normalize-resource
[^String path]
(if (.endsWith path ".js")
path
(str path ".js")))
(ns ^{:doc "Kept for backwards compatibility. Please use clojurewerkz.support.js from now on."} monger.js
(:require [clojurewerkz.support.js :as js]))
@ -28,4 +18,4 @@
(defn load-resource
(^String [^String path]
(slurp (io/resource (normalize-resource path)))))
(js/load-resource path)))