Giraffe v1.0.0 Release Notes
-
๐ First RTM release of Giraffe.
๐ This release has many minor breaking changes and a few bigger features. Please read the changelog carefully before updating your existing application.
๐ New features
- ๐ JSON and XML serialization is now configurable through Dependency Injection (see Serialization)
- โ Added new features to validate conditional HTTP headers before processing a web request (see Conditional Requests)
- โ Added streaming capabilities (see Streaming)
- โ Added
HEAD
,OPTIONS
,TRACE
,CONNECT
http handlers - โ Added more
HttpContext
extension methods to create parity between response writing methods andHttpHandler
functions (see Response Writing and Content Negotiation) - โ Added detailed XML docs to all public facing functions for better Intellisense support
- The
Giraffe.Common
module auto opens now
๐ฅ Breaking changes
- ๐ Deprecated
Griaffe.Tasks
. Giraffe uses the original TaskBuilder.fs library now. - 0๏ธโฃ Giraffe comes with a default set of required dependencies which need to be registered via
services.AddGiraffe()
during application startup now - ๐ฆ The
Giraffe.TokenRouter
library has been moved to a separate NuGet package under the same name - โ Removed redundant serialization methods
- Removed
serializeJson
,deserializeJson<'T>
,deserializeJsonFromStream<'T>
,defaultJsonSerializerSettings
,defaultSerializeJson
,defaultDeserializeJson<'T>
,serializeXml
anddeserializeXml<'T>
- Removed
- โ Removed the
customJson
http handler - ๐ Renamed the
html
http handler tohtmlString
- ๐ Renamed the
renderHtml
http handler tohtmlView
- ๐ Renamed
setBodyAsString
http handler tosetBodyFromString
- ๐ Renamed
ReturnHtmlFileAsync()
toWriteHtmlFileAsync()
- The function can also accept relative and absolute file paths now
- ๐ Renamed
RenderHtmlAsync()
toWriteHtmlViewAsync()
- โ Removed the overloads for
BindJsonAsync<'T>
,BindModelAsync<'T>
andWriteJsonAsync
which accepted an object of typeJsonSerializerSettings
- ๐ Renamed the
signOff
http handler tosignOut
to be more consistent with existing ASP.NET Core naming conventions
๐ To get a summary of the new features and changes you can check the official Giraffe 1.0.0 release blog post.