Skip to content

v10.0.0

Choose a tag to compare

@github-actions github-actions released this 25 Jan 19:27
· 12 commits to nightly since this release

⚠️ This is a large release with many breaking changes ⚠️

Core Changes

  • Switched the versioning scheme to align with .NET releases. All Wisp releases targeting .NET 10 will bear the major version 10.x.x
  • Updated to .NET 10
  • Reverse proxy support with x-forwarded-host and x-forwarded-proto header handling
  • Update validation in Wisp.Extensions.OpenID to work with Authentik
  • IHttpContextAccessor.HttpContext is no longer async
  • Some attributes like [Header], [Body] and [Cookie] are now [FromHeader], [FromBody], [FromCookie], etc.
  • FlashService.AddFlashMessage is no longer async
  • Sessions are no longer injected into IHttpContext but rather are now accessed through ISessionAccessor.
  • Sessions are now easier to serialize which makes it much easier to write custom ISessionStores.
  • IHttpContextAccessor should be more reliable now
  • Added two custom filters to Fluid - toJson and agoDate
  • Fluid now allows parentheses in conditionals, e.g. {% if ( 1 == 1 and 2 == 2) %}
  • Added a background service scheduler. Background services can be registered with hostBuilder.AddBackgroundService<>()
  • ResultBox should now handle generics bit better
  • Eisp.Extensions.OpenAPI can now infer the schema for [FromBody] inputs and controller method outputs
  • A controller method can now have an arbitrary number of [Route] attributes
  • Controllers can have priorities assigned with [Controller(priority: 1234)], which helps with conflicting routes (especially greedy path variables)
  • When running with dotnet watch, Wisp will detect a hot reload and re-register controllers. The application no longer needs to be restarted when Adding/Modifying/Deleting controllers and controller actions.
  • An IServiceProvider is now available in every IHttpContext in the Services property, simplifying dependency injection for light routes.
  • Documentation migrated to Zensical
  • Development has moved from Codeberg back to GitHub for now.

Full Changelog: v1.2.7...v10.0.0