Giraffe v4.0.0 Release Notes
Release Date: 2019-09-29 // over 4 years ago-
โฌ๏ธ Giraffe 4.0.0 has been tested against
netcoreapp3.0
alongsidenetcoreapp2.1
andnet461
. All sample code has been upgraded to .NET Core 3.0 as well.ATTENTION:
๐ This release of Giraffe fixes a bug in the
routef
handler which would have previously matched a route too eagerly.Before:
Route: /foo/bar/hello/world routef: /foo/bar/%s Match: true
Now:
Route: /foo/bar/hello/world routef: /foo/bar/%s Match: false
๐ For more information please see issue #347.
๐ New features
- ๐ Support array of 'T as a child in form binding
- โ Added a new
DateTime
extension methodToIsoString
which produces a RFC3339 formatted string, and corrected the docs on the existingToHtmlString
extension method which actually produces a RFC822 formatted string.
๐ Bug fixes and breaking changes
- ๐ Fixed
routef
to not match more than one URL path segment. - ๐ Fixed the
_ariaLabelledBy
attribute in theGiraffeViewEngine
- ๐ Fixed case insensitive route handlers on Ubuntu
- ๐ Changed minimum version of
Newtonsoft.Json
to11.0.2
. This allows Giraffe to be compatible with Azure Functions. - ๐ Renamed
tryMatchInput
totryMatchInputExact
and swapped the order of arguments so that the string value comes last โ Added new version of
tryMatchInput
which acceptsMatchSettings
record:type MatchMode = | Exact // Will try to match entire string from start to end. | StartsWith // Will try to match a substring. Subject string should start with test case. | EndsWith // Will try to match a substring. Subject string should end with test case. | Contains // Will try to match a substring. Subject string should contain test case. type MatchOptions = { IgnoreCase: bool; MatchMode: MatchMode; }