Skip to content

πŸ”– release 0.2.0

Compare
Choose a tag to compare
@kkharji kkharji released this 03 Jan 10:53
· 22 commits to master since this release
656854b

πŸŽ‰ 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