All Versions
54
Latest Version
Avg Release Cycle
66 days
Latest Release
365 days ago

Changelog History
Page 4

  • 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.

    Before:

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

    Now:

    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.

  • v0.1.0-alpha018 Changes

    • โž• Added two new HttpContext extension methods:
      • TryGetRequestHeader (key : string) which returns an Option<string>
      • GetRequestHeader (key : string) which returns a Result<string, string>
    • โž• Added default computation expressions for the Option<'T> and Result<'T, 'TError> types under Giraffe.ComputationExpressions
  • v0.1.0-alpha017 Changes

    ๐Ÿ†• New features
    • โž• Added plain/text as a new supported mime type to the default negotiate handler (it will be using an object's .ToString() method to serialize an object into plain text)
    • โž• Added new helper functions for retrieving a logger or dependencies as extension methods of the HttpContext object: ctx.GetService<'T>() and ctx.GetLogger<'T>()
    ๐Ÿ’ฅ Breaking changes
    • ๐Ÿšš Completely removed the HttpHandlerContext type and replaced all usage with the original HttpContext object from ASP.NET Core.
    • 0๏ธโƒฃ Extended the ErrorHandler function with a parameter to retrieve a default ILogger object
    • ๐Ÿšš Moved model binding functions from the Giraffe.ModelBinding module into the Giraffe.HttpContextExtensions module and made them extension methods of the HttpContext object

    โšก๏ธ Also updated the giraffe-template NuGet package with the latest changes.

  • v0.1.0-alpha016 Changes

    ๐Ÿ›  Fixes #46

  • v0.1.0-alpha015 Changes

    ๐Ÿ”„ Changed the signature of the redirectTo http handler (swapped permanent with location).