Releases: DamianEdwards/RazorSlices
v0.9.1
Available on NuGet: https://www.nuget.org/packages/RazorSlices/0.9.1
What's Changed
- Pool string builders when rendering to a string by @DamianEdwards in #77
Full Changelog: v0.9.0...v0.9.1
v0.9.0
Available on NuGet at https://www.nuget.org/packages/RazorSlices/0.9.0
What's Changed
- Simplified trimming workaround by @DamianEdwards in #52
- Add RazorSlice finalizer by @sebastienros in #60
- Support templated Razor delegates by @DamianEdwards in #67
- Update IResult implementation to support TypedResults properly by @DamianEdwards in #68
- Add testing on net9 & update package versions by @DamianEdwards in #69
- Added support for hot reload by @DamianEdwards in #71
- Fix bug using injectable properties from ExecuteSectionAsync by @DamianEdwards in #73
- Make developer exception page work during dev in the sample by @DamianEdwards in #74
- Add support for configuring which .cshtml files are Razor Slices by @DamianEdwards in #75
New Contributors
- @sebastienros made their first contribution in #60
Full Changelog: v0.8.1...v0.9.0
v0.8.1
Available on NuGet at https://www.nuget.org/packages/RazorSlices/0.8.1
What's Changed
- Fix property injection & wrapping RazorSlice in IResult by @DamianEdwards in #46
Full Changelog: v0.8.0...v0.8.1
v0.8.0
Available on NuGet at https://www.nuget.org/packages/RazorSlices/0.8.0
What's Changed
- BREAKING CHANGE
Complete overhaul of implementation and API semantics to support trimming and native AOT fully.- Drops support for .NET 6 and .NET 7. Now requires .NET 8
- Adds support for trimming and native AOT
- Adds a source generator that generates static
IRazorSliceProxy
classes for every .cshtml file in the project. Razor slices are now created using[GeneratedSliceProxyType].Create()
, e.g.Todos.Create()
. Generated types are put in a namespace following the relative directory the .cshtml file is in (similar to Razor Components). - Adds support for layouts and sections, including nested layouts and layouts with models
Full Changelog: v0.7.0...v0.8.0
v0.7.0
Available on NuGet at https://www.nuget.org/packages/RazorSlices/0.7.0
What's Changed
- Add HttpContext access
- Support for rendering partials (slices from other slices)
- Slice lookups now case-insensitive by @DamianEdwards in #32
Full Changelog: v0.6.2...v0.7.0
v0.6.2
Available on NuGet at https://www.nuget.org/packages/RazorSlices/0.6.2
What's Changed
- Avoid boxing flush ValueTask if already complete by @DamianEdwards in #30
Full Changelog: v0.6.1...v0.6.2
v0.6.1
Available on NuGet at https://www.nuget.org/packages/RazorSlices/0.6.1
What's Changed
- Add more resilience to assembly loading by @DamianEdwards in #29
Full Changelog: v0.6.0...v0.6.1
v0.6.0
Available on NuGet at https://www.nuget.org/packages/RazorSlices/0.6.0
What's Changed
- Add support for rendering slices to a StringBuilder and more by @madeyoga in #25
- Add support for
IUtf8SpanFormattable
& other updates by @DamianEdwards in #27 - Fix warnings by @DamianEdwards in #28
Full Changelog: v0.5.0...v0.6.0
v0.5.0
Available on NuGet at https://www.nuget.org/packages/RazorSlices/0.5.0
What's Changed
- Add a unicode example by @DamianEdwards in #16
- Add ability to render slice to a stream by @DamianEdwards in #17
- Support loading slices from Razor Class Libraries by @DamianEdwards in #19
- More optimizations to avoid boxing by @DamianEdwards in #20
- #3 Support
@inject
to enable declaring dependency-injected properties and more by @madeyoga in #21
New Contributors
Full Changelog: v0.4.0...v0.5.0
v0.4.0
What's Changed
- Overhaul of writing out values that are ISpanFormattable by @DamianEdwards in #14
Full Changelog: v0.3.0...v0.4.0
Available on NuGet: https://www.nuget.org/packages/RazorSlices/0.4.0