Giraffe v0.1.0-beta Release Notes

  • ๐Ÿ†• New features

    • โž• Added requiresAuthPolicy http handler
    • โž• Added RenderHtml and ReturnHtmlFile extension methods to the HttpContext object
    • โž• Added customJson http handler, which allows users to define a custom json handler (with custom serialization settings)
    • โž• Added overloads to BindJson and BindModel where a user can pass in a custom JsonSerializerSettings 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 - use customJson instead if customization is required)
    • ๐Ÿ”„ Changed the serializeJson, deserializeJson methods to accept an aditional parameter of type JsonSerializerSettings

    ๐Ÿ› Bug fixes and improvements

    • Automatically URL decoding of string values when using routef
    • ๐Ÿ›  Fixed an inference bug with routef by replacing the format parameter of the tryMatchInput method and the path parameter of the routef and routeCif methods from StringFormat to PrintFormat
    • ๐ŸŽ 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 the filePath parameter to be either rooted or relative to the ContentRootPath