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.