Announcing the latest release of scotty
!
This release includes a few bug fixes, new features (WAI applications nested under endpoints! cookie support!) as well as a big refactoring of the ActionT type and the overall exception system as well as a bunch of new tests. Overall the library should be easier to build upon and evolve going forward.
Full changelog:
0.20 [2023.10.02]
- Drop support for GHC < 8.10 and modernise the CI pipeline (haskell-ci: drop GHCs older than 8.10 and modernise the workflow by fumieval · Pull Request #300 · scotty-web/scotty · GitHub).
- Adds a new
nested
handler that allows you to place an entire WAI Application under a Scotty route (Nested WAI Applications under Scotty Routes by sordina · Pull Request #233 · scotty-web/scotty · GitHub). - Disambiguate request parameters (Ambiguous params, differentiate Capture, Query String and Form Data · Issue #204 · scotty-web/scotty · GitHub). Adjust the
Env
type to have three[Param]
fields instead of one, addcaptureParam
,formParam
,queryParam
and the associatedcaptureParams
,formParams
,queryParams
. Add deprecation notices toparam
andparams
. - Add
Scotty.Cookie
module (https://github.com/scotty-web/scotty/pull/293). - Change body parsing behaviour such that calls to
next
don’t result in POST request bodies disappearing (Request body is preserved across 'next' calls #147 by ocramz · Pull Request #308 · scotty-web/scotty · GitHub). - Rewrite
ActionT
using the “ReaderT pattern” (Refactor ActionT to use ReaderT pattern by ocramz · Pull Request #314 · scotty-web/scotty · GitHub) https://www.fpcomplete.com/blog/readert-design-pattern/
Thank you to all contributors who supported and grew this wonderful little web framework throughout the years.