Skip to content

Commit

Permalink
version bump to 0.20 and update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Zocca committed Oct 2, 2023
1 parent 511c8eb commit b26284c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion Web/Scotty/Action.hs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ redirect = E.throw . Redirect
-- exception. Any code after the call to finish will not be run.
--
-- /Since: 0.10.3/
-- finish :: (ScottyError e, Monad m) => ActionT e m a
finish :: (Monad m) => ActionT m a
finish = E.throw Finish

Expand Down
6 changes: 5 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## next [????.??.??]

## 0.20 [2023.10.02]
* Drop support for GHC < 8.10 and modernise the CI pipeline (#300).
* Adds a new `nested` handler that allows you to place an entire WAI Application under a Scotty route (#233).
* Disambiguate request parameters (#204). Adjust the `Env` type to have three `[Param]` fields instead of one, add `captureParam`, `formParam`, `queryParam` and the associated `captureParams`, `formParams`, `queryParams`. Add deprecation notices to `param` and `params`.
Expand All @@ -7,10 +9,12 @@
* (Internal) Remove unused type `RequestBodyState` (#313)

Breaking:
* Get rid of data-default-class (#316) https://markkarpov.com/post/data-default.html

* (#310) Rewrite `ActionT` as a `ReaderT`-over-`IO` (using the "ReaderT pattern" : https://www.fpcomplete.com/blog/readert-design-pattern/ )
* (#310) Introduce `unliftio-core` as a dependency, and base exception handling on methods copied from `unliftio` e.g. `catch`.
* (#310) Clarify the exception handling mechanism of ActionT, ScottyT. `raise` and `rescue` change signature to use proper `Exception` types rather than strings.
* (#310) All ActionT methods (`text`, `html` etc.) have now a MonadIO constraint on the base monad rather than Monad. `rescue` has a MonadUnliftIO constraint. The Alternative instance of ActionT also is based on MonadIO because `next` is implemented in terms of `throw`.
* Get rid of data-default-class (#316)

## 0.12.1 [2022.11.17]
* Fix CPP bug that prevented tests from building on Windows.
Expand Down
6 changes: 3 additions & 3 deletions scotty.cabal
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Name: scotty
Version: 0.12.1
Version: 0.20
Synopsis: Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp
Homepage: https://github.com/scotty-web/scotty
Bug-reports: https://github.com/scotty-web/scotty/issues
License: BSD3
License-file: LICENSE
Author: Andrew Farmer <[email protected]>
Maintainer: Andrew Farmer <[email protected]> and the Scotty maintainers
Copyright: (c) 2012-Present Andrew Farmer
Maintainer: The Scotty maintainers
Copyright: (c) 2012-Present Andrew Farmer and the Scotty maintainers
Category: Web
Stability: experimental
Build-type: Simple
Expand Down

0 comments on commit b26284c

Please sign in to comment.