Skip to content

Commit

Permalink
Release 0.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Deraen committed Sep 10, 2014
1 parent e69436f commit 0b7f8da
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
## 0.16.0 (x.9.2014)
## 0.16.0 (10.9.2014)

- Some cleaning
- Requires now clojure 1.6.0 for `clojure.walk`
- Support other formats in addition to JSON
- Uses now the [ring-middleware-format](https://github.com/ngrunwald/ring-middleware-format) to parse requests and encode responses
- Uses the [ring-middleware-format](https://github.com/ngrunwald/ring-middleware-format) to parse requests and encode responses
- Fixes #43: Middlewares added to route with :middlewares shouldn't leak to other routes in same context anymore

## 0.15.2 (4.9.2014)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ There is also `defapi` as a short form for the common case of defining routes wi
Middlewares (and other handlers) can publish their capabilities to consume & produce different wire-formats.
This information is passed to `ring-swagger` and added to swagger-docs & is available in the swagger-ui.

The default middleware on Compojure-API includes [ring-middleware-format](https://github.com/ngrunwald/ring-middleware-format)
The default middlewares on Compojure-API includes [ring-middleware-format](https://github.com/ngrunwald/ring-middleware-format)
which supports multiple formats. If the first element of `defapi` body is a map it will be used to pass parameters to
`api-middleware`, e.g. the formats which should be enabled.

Expand Down
4 changes: 2 additions & 2 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject metosin/compojure-api "0.15.2"
(defproject metosin/compojure-api "0.16.0"
:description "Compojure Api"
:url "https://github.com/metosin/compojure-api"
:license {:name "Eclipse Public License"
Expand All @@ -9,7 +9,7 @@
[prismatic/plumbing "0.3.3"]
[potemkin "0.3.8"]
[cheshire "5.3.1"]
[compojure "1.1.8"]
[compojure "1.1.9"]
[prismatic/schema "0.2.6"]
[metosin/ring-http-response "0.5.0"]
[metosin/ring-swagger "0.13.0"]
Expand Down
4 changes: 2 additions & 2 deletions src/compojure/api/middleware.clj
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@

(defn serializable?
"Predicate which return true if the response body is serializable.
That is, return type is set by :return compojure-api key or it's not
string, File or InputStream."
That is, return type is set by :return compojure-api key or it's
a collection."
[_ {:keys [body] :as response}]
(when response
(or (:compojure.api.meta/serializable? response)
Expand Down

0 comments on commit 0b7f8da

Please sign in to comment.