Skip to content

πŸ”– release 0.3.1

Latest
Compare
Choose a tag to compare
@kkharji kkharji released this 11 Jan 15:54
· 6 commits to master since this release
4d1a5c6

πŸŽ‰ 0.3.1 - 2022-01-11

Exceptions

2a8c648 ✨ Feature: Auto-detect user exceptions handler
When user defined `project-ns.handler/exceptions` or `project.ns.handler.exceptions/main` it should auto-detected and set it
6535c96 ✨ Feature: Append pretty message to coercion by default.
When coercer is defined this should be appended by default. Although, support is needed for schema and malli errors.

Logging

a7f3d6b ✨ Feature: Support request logging
Example Output:

Pretty Mode:

Starting Request ------------------------

Request Time: 10:53:27
Request Method: "GET"
Request URI: "/divide"
Request Params: {:body {:y 2, :x 2}}

-----------------------------------------

Finishing Request ------------------------

Request Method: "GET"
Request URI: "/divide"
Request Duration: 0 ms

------------------------------------------

Compact Mode:

[:starting {:method GET, :uri /divide, :params {:body {:y 2, :x 2}}}]
[:completed {:method GET, :uri /divide, :completed-in 0}]
  • dda7378 ✨ Feature: Malli compact and pretty format

Middleware

  • 80f65a7 ✨ Feature: Cross-origin support

Module

  • 528820c πŸ› Fix: Implicit require of duct.reitit