π release 0.2.0
π 0.2.0 - 2022-01-03
Exceptions
0c491bc β¨ Feature: Response customization based on class or `:type`
To further understand how this work. checkout https://cljdoc.org/d/metosin/reitit/0.5.15/doc/ring/exception-handling-with-ring#exceptioncreate-exception-middleware
9e9a021 β¨ Feature: Log exceptions + pretty print.
Example output with `pretty?`; (err) ERROR [duct.reitit.middleware.exception:52] - ; (err) ; (err) {:message "Divide by zero", ; (err) :uri "/divide", ; (err) :method :get, ; (err) :params {:body {:y 0, :x 0}}, ; (err) :trace ; (err) [{:file-name "Numbers.java", :line-number 188} ; (err) {:file-name "handler.clj", :line-number 17} ; (err) {:file-name "exception.clj", :line-number 49} ; (err) {:file-name "middleware.clj", :line-number 73} ; (err) {:file-name "middleware.clj", :line-number 12}]} ; (err)
f966f83 β¨ Feature: Optional duct/logger
if no logger provided in options, just use pretty print for logging
General
- 8331954 π· Misc: Update outdated keys
Middleware
d8d1d2f β¨ Feature: Inject keys instead of injecting `environment`
This was originally the intended behavior. but it was ignored in last release.
Module
-
6f0cf24 β Test: Detailed tests for configuration processing
-
fb9f033 β¨ Feature: Apply defaults + change schema
-
74eacfd π Documentation: Update description and spec in readme.
Readme
- e69b1af π· Misc: Format configuration example
Notes
Breaking Changes + Code Restructuring
Full Changelog: 0.1.0...0.2.0