All Versions
Latest Version
Avg Release Cycle
59 days
Latest Release

Changelog History
Page 3

  • v0.1.9 Changes

    • ๐Ÿ›  Fixed wrong version numbers in package references for Giraffe and Giraffe.Razor
  • v0.1.0 Changes

    ๐Ÿ’ฅ Breaking changes

    • โœ… Renamed portRoute to routePorts to be more consistent with other routing functions (route, routef, routeStartsWith, etc.)

    ๐Ÿ†• New features

    • ๐Ÿ‘ routef and routeCif both support %O for matching System.Guid values now
    • โž• Added HTML attributes helper functions to the GiraffeViewEngine.


    let html = p [ _class "someCssClass"; _id "greetingsText" ] [ encodedText "Hello World" ]
  • v0.1.0-beta Changes

    ๐Ÿ†• 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
  • v0.1.0-alpha025 Changes

    ๐Ÿ”„ Changed the type XmlAttribute from the XmlViewEngine to accept either a string * string key value pair or a boolean attribute of type string. This was a missing to enable script tags such as <script src="..." async></script>.

    โž• Added two helper functions (attr and flag) to simplify the creation of those attributes:

    script [
        attr "src" ""
        attr "lang" "javascript"
        flag "async" ] []
  • v0.1.0-alpha024 Changes

    • ๐Ÿ†• New routeBind http handler
    • 0๏ธโƒฃ Annotated all default http handler functions with the HttpHandler type
  • v0.1.0-alpha023 Changes

    ๐Ÿ› Bug fixes:

    • ๐Ÿ›  Fixed build error in the Giraffe template.

    Further improvements to the XmlViewEngine:

    • ๐Ÿ“‡ Renamed renderXmlString to renderXmlNode and renamed renderHtmlString to renderHtmlNode
    • โž• Added two more methods which accept a XmlNode list: renderXmlNodes and renderHtmlNodes
    • ๐Ÿ”„ Changed the return value of encodedText and rawText to return a single XmlNode instead of XmlNode list. This has the advantage that it can be used from within another list, which was not possible before.


    let view =
        html [] [
            head [] [
                title []  (rawText "Giraffe")
            body [] (encodedText "Hello World")


    let view =
        html [] [
            head [] [
                title []  [ rawText "Giraffe" ]
            body [] [ encodedText "Hello World" ]

    This has the advantage that you can also do this, which wasn't possible before:

    let view =
        html [] [
            head [] [
                title []  [ rawText "Giraffe" ]
            body [] [
                encodedText "Hello World"
                p [] [ rawText "Hello" ]
  • v0.1.0-alpha022 Changes

    A few modifications to the former HtmlEngine so that it can be used for correct XML rendering as well:

    • ๐Ÿ“‡ Renamed the Giraffe.HtmlEngine module to Giraffe.XmlViewEngine
    • ๐Ÿ“‡ Renamed HtmlAttribute to XmlAttribute, HtmlElement to XmlElement and HtmlNode to XmlNode
    • ๐Ÿ“‡ Renamed and make the function nodeToHtmlString private
    • โž• Added comment function to the Giraffe.XmlViewEngine module for creating XML comments
    • โž• Added renderXmlString and renderHtmlString functions to Giraffe.XmlViewEngine module for rendering XML and HTML nodes.
  • v0.1.0-alpha021 Changes

    • ๐Ÿ”„ Changed HttpContext.BindQueryString<'T>() to return 'T instead of Async<'T>
    • โž• Added HttpContext.TryGetQueryStringValue (key : string) which returns an Option<string>
    • โž• Added HttpContext.GetQueryStringValue (key : string) which returns a Result<string, string>
  • v0.1.0-alpha020 Changes

    ๐Ÿ“ฆ Split out the Razor view engine and the DotLiquid templating engine into separate NuGet packages:

    • Giraffe.Razor
    • Giraffe.DotLiquid

    ๐Ÿ“ฆ Please reference the additional packages if you were using any of the view or templating handlers.

    โšก๏ธ Also updated the giraffe-template NuGet package with the new changes and adapted the build.ps1 PowerShell script to successfully build on Linux environments too.

    โž• Additionally TravisCI builds are run as part of every commit as well now.