Skip to content

Latest commit

 

History

History
62 lines (47 loc) · 1.91 KB

Changes.md

File metadata and controls

62 lines (47 loc) · 1.91 KB

Changes for ring-middleware-format

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 )