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.