Changelog History
Page 3
-
v0.1.9 Changes
- ๐ Fixed wrong version numbers in package references for
Giraffe
andGiraffe.Razor
- ๐ Fixed wrong version numbers in package references for
-
v0.1.0 Changes
๐ฅ Breaking changes
- โ
Renamed
portRoute
toroutePorts
to be more consistent with other routing functions (route
,routef
,routeStartsWith
, etc.)
๐ New features
- ๐
routef
androuteCif
both support%O
for matchingSystem.Guid
values now - โ Added HTML attributes helper functions to the
GiraffeViewEngine
.
Example:
let html = p [ _class "someCssClass"; _id "greetingsText" ] [ encodedText "Hello World" ]
- โ
Renamed
-
v0.1.0-beta Changes
๐ 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
-
v0.1.0-alpha025 Changes
๐ Changed the type
XmlAttribute
from theXmlViewEngine
to accept either astring * string
key value pair or a boolean attribute of typestring
. This was a missing to enable script tags such as<script src="..." async></script>
.โ Added two helper functions (
attr
andflag
) to simplify the creation of those attributes:script [ attr "src" "http://example.org/example.js" 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
- ๐ New
-
v0.1.0-alpha023 Changes
๐ Bug fixes:
- ๐ Fixed build error in the Giraffe template.
Further improvements to the
XmlViewEngine
:- ๐ Renamed
renderXmlString
torenderXmlNode
and renamedrenderHtmlString
torenderHtmlNode
- โ Added two more methods which accept a
XmlNode list
:renderXmlNodes
andrenderHtmlNodes
- ๐ Changed the return value of
encodedText
andrawText
to return a singleXmlNode
instead 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
HtmlEngine
so that it can be used for correct XML rendering as well:- ๐ Renamed the
Giraffe.HtmlEngine
module toGiraffe.XmlViewEngine
- ๐ Renamed
HtmlAttribute
toXmlAttribute
,HtmlElement
toXmlElement
andHtmlNode
toXmlNode
- ๐ Renamed and make the function
nodeToHtmlString
private - โ Added
comment
function to theGiraffe.XmlViewEngine
module for creating XML comments - โ Added
renderXmlString
andrenderHtmlString
functions toGiraffe.XmlViewEngine
module for rendering XML and HTML nodes.
- ๐ Renamed the
-
v0.1.0-alpha021 Changes
- ๐ Changed
HttpContext.BindQueryString<'T>()
to return'T
instead 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.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 thebuild.ps1
PowerShell script to successfully build on Linux environments too.โ Additionally TravisCI builds are run as part of every commit as well now.