You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 24, 2022. It is now read-only.
New clj-yaml needs Clojure 1.7+ so 1.6.0 is no longer supported.
[org.clojure/core.memoize "1.0.257"] is available but we use "0.7.1"
[ring/ring-core "1.9.5"] is available but we use "1.7.1"
[cheshire "5.10.2"] is available but we use "5.8.1"
[org.clojure/tools.reader "1.3.6"] is available but we use "1.3.2"
[clj-commons/clj-yaml "0.7.108"] is available but we use "0.6.0"
[com.cognitect/transit-clj "1.0.329"] is available but we use "0.8.313"
[com.ibm.icu/icu4j "70.1"] is available but we use "63.1"
Drop dependency on Icu4j and default to no charset detection
Previously ring-middleware-format tried to guess the charset if the request
Content-Type header didn't set it. However the charset detection code
has been broken since version 0.4.0, for over four years.
Because no one has noticed during four years that charset detection doesn't work,
it is now disabled by default.
Separate guess-charset namespace can be used with :charset option to
enable charset detection (which now works).
[ring/ring-core "1.5.1"] is available but we use "1.4.0"
[cheshire "5.6.3"] is available but we use "5.6.1"
[com.ibm.icu/icu4j "58.2"] is available but we use "57.1"
[clojure-msgpack "1.2.0"] is available but we use "1.1.3"
[com.cognitect/transit-clj "0.8.297"] is available but we use "0.8.285"
[ring "1.4.0"] is available but we use "1.3.2"
[cheshire "5.5.0"] is available but we use "5.4.0"
[org.clojure/tools.reader "0.10.0"] is available but we use "0.8.16"
[com.ibm.icu/icu4j "56.1"] is available but we use "54.1"
[com.cognitect/transit-clj "0.8.285"] is available but we use "0.8.269"
0.6.0 (2015-09-01)
Merged most of changes from Metosin fork:
Added missing :predicate option to wrap-restful-response middleware.
Support per format (Transit) options in wrap-restful middlewares:
Added :format-options to wrap-restful-response and wrap-restful-params
Added :response-options and :params-options to wrap-restful-format
Escape HTML chars in YAML HTML
0.5.0 (2015-03-27)
Breaking Changes
Allow nil to be returned as empty body with correct Content-Type instead of serialized (Howard M. Lewis Ship and curious-attempt-bunny)
Bugfixes
Fix transact format middleware (Deraen)
Actually used given error-handler in wrap-json-params (aykuznetsova)
Fix a potential bug using an unsupported feature of Clojure destructuring (Michael Blume)
Other
Typo and test fixes (Chris McDevitt, Wei Hsu and ducky427)
0.4.0 (2014-08-13)
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 )