Changelog for fn-0.3.0.0
-
0.3.0.0 Daniel Patterson dbp@dbpmail.net 2016-3-2
- Don't parse request body by default, to make
Fn
play well with others (that want to parse the body themself). - Add
!=>
connective that is like==>
, but parses the request body. If you don't use!=>
, patterns withfile
andfiles
will fail. Also,param
will only get query parameters. - Add
Route
type alias for the type ofpattern ==> handler
. This is partly for convenience and partly to make upgrades easier (in the event that the types change). - Change
FromParam
class to take a list of all parameters matching a given name, which allows us to implement aMaybe
instance, a list instance, and makeparamMany
redundant (though currently left in, for compatibility). This also makes the ergonomics of using optional parameters better. - Fix bug where
staticServe
would allow you to break out of directory specified with..
.
- Don't parse request body by default, to make
-
0.2.0.2 Daniel Patterson dbp@dbpmail.net 2016-1-20
- Fix for GHC 7.8, which cabal file said would work, but didn't.
-
0.2.0.1 Daniel Patterson dbp@dbpmail.net 2015-12-4
- Fix bug in url routing where "/foo/bar", "/foo/bar/", and "/foo//bar" were all treated differently.
-
0.2.0.0 Daniel Pattersion dbp@dbpmail.net 2015-11-5
- Changed to having our own
FnRequest
type, which is a WAIRequest
and the results of parsing the body for contents, since we need to be able to do that once and thread it through. - Add
file
andfiles
matchers, which match against and pass file uploads to handlers. - Add
staticServe
to serve static files based on path.
- Changed to having our own
-
0.1.4.0 Daniel Pattersion dbp@dbpmail.net 2015-11-4
- Move
ctxt
back to first parameter passed to handlers, via more continuations.
- Move
-
0.1.3.1 Daniel Pattersion dbp@dbpmail.net 2015-10-31
- Add
method
matcher to match against HTTP method.
- Add
-
0.1.3.0 Daniel Patterson dbp@dbpmail.net 2015-10-30
- Allow nested calls to
route
, by changingRequest
inctxt
. This necesitated changing it so that thectxt
is passed to handlers last, instead of first, because we need to have completed matching before we can change the request. - Add
anything
route matcher that matches anything. - Add
paramMany
matcher that returns a list of values for the given query param. - Change
param
to fail if more than one value is in query string.
- Allow nested calls to
-
0.1.2.0 Daniel Pattersion dbp@dbpmail.net 2015-10-27
- Rename
paramOptional
toparamOpt
, to matchfn-extra
'sHeist
naming ofattr
andattrOpt
. - Remove
paramPresent
, because you can get that behavior by parsing toText
.
- Rename
-
0.1.1.0 Daniel Patterson dbp@dbpmail.net 2015-10-26
- Rename
Param
class toFromParam
.
- Rename
-
0.1.0.0 Daniel Patterson dbp@dbpmail.net 2015-10-25
- Initial release.