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 and HttpHandler 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 and deserializeXml<'T>
    • โœ‚ Removed the customJson http handler
    • ๐Ÿ“‡ Renamed the html http handler to htmlString
    • ๐Ÿ“‡ Renamed the renderHtml http handler to htmlView
    • ๐Ÿ“‡ Renamed setBodyAsString http handler to setBodyFromString
    • ๐Ÿ“‡ Renamed ReturnHtmlFileAsync() to WriteHtmlFileAsync()
      • The function can also accept relative and absolute file paths now
    • ๐Ÿ“‡ Renamed RenderHtmlAsync() to WriteHtmlViewAsync()
    • โœ‚ Removed the overloads for BindJsonAsync<'T>, BindModelAsync<'T> and WriteJsonAsync which accepted an object of type JsonSerializerSettings
    • ๐Ÿ“‡ Renamed the signOff http handler to signOut 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.