Liking cljdoc? Tell your friends :D

Changes for ring-middleware-format

0.6.0 (2.3.2015)

  • Breaking change: All wrap-* functions now take options as optional map instead of keyword params.
  • Updated dependencies:
[org.clojure/core.memoize "0.5.7"] is available but we use "0.5.6"
[org.clojure/tools.reader "0.8.15"] is available but we use "0.8.13"
[com.cognitect/transit-clj "0.8.269"] is available but we use "0.8.259"

0.5.0 (27.12.2014)

  • Forked by Metosin
  • Fix transit with wrap-restful-response
  • Nil response body results in empty response body, instead of encoded nil e.g. json response "null"
  • Added predicate option to wrap-restful-params
  • Updated dependencies:
[ring "1.3.2"] is available but we use "1.3.0"
[cheshire "5.4.0"] is available but we use "5.3.1"
[org.clojure/tools.reader "0.8.13"] is available but we use "0.8.5"
[com.ibm.icu/icu4j "54.1.1"] is available but we use "53.1"
[com.cognitect/transit-clj "0.8.259"] is available but we use "0.8.247"

0.4.0

Features

  • Support for binary encodings
  • Support of Transact format over both JSON and Msgpack

Bugfixes

  • Uses Accept-Charset header to choose response charset

Other

  • Easier customizing of error handlers for format namespace

0.3.2 (2013-10-29)

Bugfixes

  • Removed deprecated usage of cheshire.custom (Simon Belak)
  • Added sanity check to make sure the encoding returned by ICU4J can actually be decoded by the JVM

0.3.1 (2013-08-19)

Features

  • Added :pretty option to JSON ( Ian Eure )

Bugfixes

  • Worked around incompatibility with org.apache.catalina.connector.CoyoteInputStream. Should work fine in Immutant now. ( Roman Scherer )
  • Do not serialize body if entire response is nil ( Justin Balthrop )

Other

  • Fallback to looking inside :headers if :content-type is not defined at the root

0.3.0

Breaking Changes

  • wrap-format-response encodes the body with the first format (:json by default) when unable to find an encoder matching the request instead of returning 306 HTTP error code

Features

  • Added custom error handling
  • Added a ring.middleware.format namespace for simplified usage
  • Added a :formats param to customize which formats are handled
  • Use clojure.tools.reader for safer reading of edn
  • Added :json-kw and :yaml-kw formats and wrapper to have keywords keys in :params and :body-params

Bugfixes

  • Use readers in *data-readers* for edn ( Roman Scherer )

Other

  • Better formatted doctrings ( Anthony Grimes )

0.2.4

Bugfixes

  • Allow empty request body as per Ring Spec ( Roman Scherer )

0.2.3

Bugfixes

  • Fixed bug with long request bodies when guessing character encoding

0.2.2

Bugfixes

  • Fixed bug with character encoding guessing

0.2.1

Features

  • Tries to guess character encoding when unspecified
  • Easier custom json types ( Jeremy W. Sherman )

Bugfixes

  • Do not try to merge vectors into :params ( Ian Eure )

0.2.0

Features

  • Chooses format response according to the sort order defined by Accept header ( Jani Rahkola )

Bugfixes

  • Properly lowercases header according to Ring spec ( Luke Amdor )
  • Safely handles code for clojure format ( Paul M Bauer )
  • safely handle empty request bodies ( Philip Aston )

Can you improve this documentation? These fine people already did:
Nils Grunwald, Juho Teperi, Tommi Reiman & Nils Grünwald
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close