Changelog History
Page 4
-
v0.1.0-alpha024 Changes
- ๐ New
routeBindhttp handler - 0๏ธโฃ Annotated all default http handler functions with the
HttpHandlertype
- ๐ New
-
v0.1.0-alpha023 Changes
๐ Bug fixes:
- ๐ Fixed build error in the Giraffe template.
Further improvements to the
XmlViewEngine:- ๐ Renamed
renderXmlStringtorenderXmlNodeand renamedrenderHtmlStringtorenderHtmlNode - โ Added two more methods which accept a
XmlNode list:renderXmlNodesandrenderHtmlNodes - ๐ Changed the return value of
encodedTextandrawTextto return a singleXmlNodeinstead ofXmlNode 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
HtmlEngineso that it can be used for correct XML rendering as well:- ๐ Renamed the
Giraffe.HtmlEnginemodule toGiraffe.XmlViewEngine - ๐ Renamed
HtmlAttributetoXmlAttribute,HtmlElementtoXmlElementandHtmlNodetoXmlNode - ๐ Renamed and make the function
nodeToHtmlStringprivate - โ Added
commentfunction to theGiraffe.XmlViewEnginemodule for creating XML comments - โ Added
renderXmlStringandrenderHtmlStringfunctions toGiraffe.XmlViewEnginemodule for rendering XML and HTML nodes.
- ๐ Renamed the
-
v0.1.0-alpha021 Changes
- ๐ Changed
HttpContext.BindQueryString<'T>()to return'Tinstead ofAsync<'T> - โ Added
HttpContext.TryGetQueryStringValue (key : string)which returns anOption<string> - โ Added
HttpContext.GetQueryStringValue (key : string)which returns aResult<string, string>
- ๐ Changed
-
v0.1.0-alpha020 Changes
๐ฆ Split out the Razor view engine and the DotLiquid templating engine into separate NuGet packages:
Giraffe.RazorGiraffe.DotLiquid
๐ฆ Please reference the additional packages if you were using any of the view or templating handlers.
โก๏ธ Also updated the
giraffe-templateNuGet package with the new changes and adapted thebuild.ps1PowerShell 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
HttpContextextension methods:TryGetRequestHeader (key : string)which returns anOption<string>GetRequestHeader (key : string)which returns aResult<string, string>
- โ Added default computation expressions for the
Option<'T>andResult<'T, 'TError>types underGiraffe.ComputationExpressions
- โ Added two new
-
v0.1.0-alpha017 Changes
๐ New features
- โ Added
plain/textas a new supported mime type to the defaultnegotiatehandler (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
HttpContextobject:ctx.GetService<'T>()andctx.GetLogger<'T>()
๐ฅ Breaking changes
- ๐ Completely removed the
HttpHandlerContexttype and replaced all usage with the originalHttpContextobject from ASP.NET Core. - 0๏ธโฃ Extended the
ErrorHandlerfunction with a parameter to retrieve a defaultILoggerobject - ๐ Moved model binding functions from the
Giraffe.ModelBindingmodule into theGiraffe.HttpContextExtensionsmodule and made them extension methods of theHttpContextobject
โก๏ธ Also updated the
giraffe-templateNuGet package with the latest changes. - โ Added
-
v0.1.0-alpha016 Changes
๐ Fixes #46
-
v0.1.0-alpha015 Changes
๐ Changed the signature of the
redirectTohttp handler (swappedpermanentwithlocation).