Skip to content

Commit 0b7f8da

Browse files
committed
Release 0.16.0
1 parent e69436f commit 0b7f8da

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
## 0.16.0 (x.9.2014)
1+
## 0.16.0 (10.9.2014)
22

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

89
## 0.15.2 (4.9.2014)
910

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ There is also `defapi` as a short form for the common case of defining routes wi
155155
Middlewares (and other handlers) can publish their capabilities to consume & produce different wire-formats.
156156
This information is passed to `ring-swagger` and added to swagger-docs & is available in the swagger-ui.
157157

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

project.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject metosin/compojure-api "0.15.2"
1+
(defproject metosin/compojure-api "0.16.0"
22
:description "Compojure Api"
33
:url "https://github.com/metosin/compojure-api"
44
:license {:name "Eclipse Public License"
@@ -9,7 +9,7 @@
99
[prismatic/plumbing "0.3.3"]
1010
[potemkin "0.3.8"]
1111
[cheshire "5.3.1"]
12-
[compojure "1.1.8"]
12+
[compojure "1.1.9"]
1313
[prismatic/schema "0.2.6"]
1414
[metosin/ring-http-response "0.5.0"]
1515
[metosin/ring-swagger "0.13.0"]

src/compojure/api/middleware.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262

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

0 commit comments

Comments
 (0)