Changelog History
Page 1
-
v0.12 Changes
- Provide
MonadReader
andMonadState
instances forActionT
. - ➕ Add HTTP Status code as a field to
ActionError
, and add a sister function toraise
,raiseStatus
. This makes throwing a specific error code and exiting much cleaner, and avoids the strange defaulting to HTTP 500. This will make internal functions easier to implement with the right status codes 'thrown', such asjsonData
. - Correct http statuses returned by
jsonData
(#228). - 👍 Better error message when no data is provided to
jsonData
(#226). - ➕ Add
Semigroup
andMonoid
instances forActionT
andScottyT
- ScottyT: Use strict StateT instead of lazy
- 🖐 Handle adjacent slashes in the request path as one (thanks @SkyWriter)
- Provide
-
v0.11.5 Changes
- 👍 Allow building the test suite with
hspec-wai-0.10
.
- 👍 Allow building the test suite with
-
v0.11.4 Changes
- 👍 Allow building with
base-4.13
(GHC 8.8).
- 👍 Allow building with
-
v0.11.3 Changes
- ⬇️ Drop the test suite's dependency on
hpc-coveralls
, which is unmaintained and does not build with GHC 8.4 or later.
- ⬇️ Drop the test suite's dependency on
-
v0.11.2 Changes
- 🗄 Migrate from
Network
toNetwork.Socket
to avoid deprecation warnings.
- 🗄 Migrate from
-
v0.11.1 Changes
- ➕ Add
MonadThrow
andMonadCatch
instances forActionT
[abhinav] - 🛠 Fix
matchAny
so that all methods are matched, not just standard ones [taphu]
- ➕ Add
-
v0.11.0 Changes
- IO exceptions are no longer automatically turned into ScottyErrors by
liftIO
. UseliftAndCatchIO
to get that behavior. - 🆕 New
finish
function. - ✅ Text values are now leniently decoded from ByteStrings.
- ➕ Added
MonadFail
instance forScottyT
- Lots of bound bumps on dependencies.
- IO exceptions are no longer automatically turned into ScottyErrors by
-
v0.10.2 Changes
- ✂ Removed debug statement from routes
-
v0.10.1 Changes
Parsable
instances forWord
,Word8
,Word16
,Word32
,Word64
[adamflott]Parsable
instances forInt8
,Int16
,Int32
,Int64
, andNatural
- ✂ Removed redundant
Monad
constraint onmiddleware
-
v0.10.0 Changes
The monad parameters to
ScottyT
have been decoupled, causing the type of theScottyT
constructor to change. As a result,ScottyT
is no longer aMonadTrans
instance, and the type signatures ofscottyT
,scottyAppT
, andscottyOptsT
have been simplified. [ehamberg]🗄
socketDescription
no longer uses the deprecatedPortNum
constructor. Instead, it uses theShow
instance forPortNumber
. This changes the bytes from host to network order, so the output ofsocketDescription
could change. [ehamberg]Alternative
,MonadPlus
instances forActionT
scotty
now depends ontransformers-compat
. As a result,ActionT
now usesExceptT
, regardless of which version oftransformers
is used. As a result, several functions inWeb.Scotty.Trans
no longer require aScottyError
constraint, sinceExceptT
does not require anError
constraint (unlikeErrorT
).➕ Added support for OPTIONS routes via the
options
function [alvare]➕ Add
scottySocket
andscottySocketT
, exposing Warp Unix socket support [hakujin]✅
Parsable
instance for lazyByteString
[tattsun]➕ Added streaming uploads via the
bodyReader
function, which retrieves chunks of the request body. [edofic]ActionEnv
had agetBodyChunk
field added (inWeb.Scotty.Internal.Types
)RequestBodyState
andBodyPartiallyStreamed
added toWeb.Scotty.Internal.Types
jsonData
usesaeson
'seitherDecode
instead of justdecode
[k-bx]