Skip to content

Commit

Permalink
Bump up version to 1.2.0-alpha2
Browse files Browse the repository at this point in the history
  • Loading branch information
ikitommi committed Jan 22, 2017
1 parent 25a81e6 commit 18444f3
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
31 changes: 30 additions & 1 deletion CHANGELOG.md
@@ -1,8 +1,12 @@
## 1.2.0-20161028.114958-3
## 1.2.0-alpha2 (22.1.2017)

**this is an alpha release, feedback welcome**

* Fix Cider indentation for route macros, by [Joe Littlejohn](https://github.com/joelittlejohn)
* Restructuring `:body` does not keywordize all keys,
* e.g. EDN & Transit keys are not transformed, JSON keys based on the JSON decoder settings (defaulting to `true`).
* `resource` under `context` requires exact routing match, fixes [#269](https://github.com/metosin/compojure-api/issues/269)
* Endpoints can return `compojure.api.routes/Routes`, returned routes don't commit to swagger-docs - as they can be generated at runtime
* **BREAKING**: Better request & response coercion
* in `compojure.api.middleware`, the `default-coercion-matchers` is removed in favour of `create-coercion` & `default-coercion-options`
* uses negotiated format information provided by [Muuntaja](https://github.com/metosin/muuntaja#request), fixes [#266](https://github.com/metosin/compojure-api/issues/266)
Expand Down Expand Up @@ -47,6 +51,31 @@ nil
(mw/create-coercion nil)
```

* Route-records printing is cleaned up

```clj
(context "/api" []
(GET "/ping" [] (ok))
(POST "/echo" []
:body [data {:name s/Str}]
:return {:name s/Str}
(ok data))
(context "/resource" []
(resource
{:get {:handler (constantly (ok))}})))
; #Route {:path "/api",
; :childs [#Route {:path "/ping"
; :method :get}
; #Route {:path "/echo",
; :method :post,
; :info {:parameters {:body {:name Str}},
; :responses {200 {:schema {:name Str}
; :description ""}}}}
; #Route {:path "/resource"
; :childs [#Route{:childs [#Route{:path "/"
; :method :get}]}]}]}
```

* Updated deps:

```clj
Expand Down
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -16,7 +16,9 @@ Stuff on top of [Compojure](https://github.com/weavejester/compojure) for making

[![Clojars Project](http://clojars.org/metosin/compojure-api/latest-version.svg)](http://clojars.org/metosin/compojure-api)

Want to play with the latest code? try `[metosin/compojure-api "1.2.0-20161028.114958-3"]`. See [CHANGELOG](https://github.com/metosin/compojure-api/blob/master/CHANGELOG.md) for details.
Latest non-alpha: `[metosin/compojure-api "1.1.10"]`.

See [CHANGELOG](https://github.com/metosin/compojure-api/blob/master/CHANGELOG.md) for details.

## For information and help

Expand Down
2 changes: 1 addition & 1 deletion project.clj
@@ -1,4 +1,4 @@
(defproject metosin/compojure-api "1.2.0-alpha1"
(defproject metosin/compojure-api "1.2.0-alpha2"
:description "Compojure Api"
:url "https://github.com/metosin/compojure-api"
:license {:name "Eclipse Public License"
Expand Down

0 comments on commit 18444f3

Please sign in to comment.