Skip to content

7.6.0

Compare
Choose a tag to compare
@jamescourtney jamescourtney released this 14 Mar 19:29
· 3 commits to main since this release
2d0766c

FlatSharp 7.6.0 is a small feature release that adds a couple of quality of life features:

  1. New Match methods on Union types that accept delegates. These aren't the most performant but work well for one-offs or cases where you don't want to implement a Visitor.

  2. Optional support for file visibility on types in FlatSharp-generated code. This reduces the clutter you'll see in your code from FlatSharp. Since file visibility is only supported on C# 11 and above, you will need to opt into this behavior:

         <PropertyGroup>
             <FlatSharpFileVisibility>true</FlatSharpFileVisibility>
         </PropertyGroup>

    From the command line: dotnet FlatSharp.Compiler.dll --file-visibility

In addition to these features, FlatSharp's primary unit tests now all run in NativeAOT mode as well as JIT mode thanks to the new NativeAOT-compatible MSTest runner.

What's Changed

Full Changelog: 7.5.1...7.6.0