v1.1.0
-
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 thanFoundation
. -
Default parameter values now more closely resemble the expressions they're based on, e.g.;
DayOfWeek x = DayOfWeek.Wednesday
producesglobal::System.DayOfWeek x = global::System.DayOfWeek.Wednesday
instead ofglobal::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 singleRouteValueDictionary
parameter instead of using a default constructor.
Full Changelog: v1.0.2...v1.1.0