Skip to content

v1.1.0

Compare
Choose a tag to compare
@daviddotcs daviddotcs released this 03 Apr 11:54
· 167 commits to main since this release
  • Added slight optimisations to code generation and generated parameter code.

  • Added support for controllers declared as records.

  • Added [ExcludeFromCodeCoverage] attributes and #pragma warning disable to generated code.

  • All reported diagnostics are now included in the SafeRouting.Generator.RouteGenerator category, rather than Foundation.

  • Default parameter values now more closely resemble the expressions they're based on, e.g.; DayOfWeek x = DayOfWeek.Wednesday produces global::System.DayOfWeek x = global::System.DayOfWeek.Wednesday instead of global::System.DayOfWeek x = (global::System.DayOfWeek)3.


Breaking Changes

  • Handle controller/property/method/parameter names which need to be @ escaped. Names assigned with [RouteGeneratorName] may no longer contain @, e.g.; [RouteGeneratorName("@class")] must be changed to [RouteGeneratorName("class")].

  • The generated ...RouteValues classes now have a constructor with a single RouteValueDictionary parameter instead of using a default constructor.

Full Changelog: v1.0.2...v1.1.0