Giraffe v0.1.0-beta Release Notes
-
๐ New features
- โ Added
requiresAuthPolicy
http handler - โ Added
RenderHtml
andReturnHtmlFile
extension methods to theHttpContext
object - โ Added
customJson
http handler, which allows users to define a custom json handler (with custom serialization settings) - โ Added overloads to
BindJson
andBindModel
where a user can pass in a customJsonSerializerSettings
object
๐ฅ Breaking changes
- ๐ Changed the default json serializer to use camel case for serialization (this change prevents users from being able to change the default serializer through the
JsonConvert.DefaultSettings
object - usecustomJson
instead if customization is required) - ๐ Changed the
serializeJson
,deserializeJson
methods to accept an aditional parameter of typeJsonSerializerSettings
๐ Bug fixes and improvements
- Automatically URL decoding of string values when using
routef
- ๐ Fixed an inference bug with
routef
by replacing theformat
parameter of thetryMatchInput
method and thepath
parameter of theroutef
androuteCif
methods fromStringFormat
toPrintFormat
- ๐ Changed the implementation of
ctx.BindJson<'T>()
for better performance and which aims to fix an Azure bug with Kestrel (#136) - ๐ Fixed a bug with
routeBind
(#129) - ๐ Improved the
htmlFile
http handler by allowing thefilePath
parameter to be either rooted or relative to theContentRootPath
- โ Added