Repository navigation
JasperFx 1.24.0 / JasperFx.Events 1.27.0
What's New
Source-Generated Command Line Parsers (#178, #179)
The JasperFx.SourceGeneration package now includes InputParserGenerator, a companion to the existing CommandDiscoveryGenerator. It generates optimized ITokenHandler lists per input model type, eliminating runtime reflection from command parsing.
Benchmark Results (Apple M5 Max, .NET 9.0):
| Benchmark | Reflection | Generated | Speedup |
|---|---|---|---|
| BuildHandlers(DescribeInput) | 3,067 ns / 2,369 B | 0.86 ns / 0 B | ~3,600x |
| BuildHandlers(ResourceInput) | 8,508 ns / 11,698 B | 0.93 ns / 0 B | ~9,200x |
Generated handlers use pre-computed FlagAliases, direct property assignment delegates, and inlined type converters. Falls back to reflection-based parsing when no generated parser exists.
Support Constructor Parameters with Default Values (#132, #180)
Types with default-valued constructor parameters (e.g., MyDbContext(DbContextOptions options, bool isUnfiltered = false)) now resolve correctly in the ServiceContainer. Previously, primitive parameters with defaults were rejected by ConstructorPlan even though they don't need DI resolution.
IHealthCheck Integration in Environment Checks (#130, #181)
The check-env command now discovers and runs all registered IHealthCheck implementations automatically. Health check results map to: Healthy=success, Degraded=success (with warning), Unhealthy=failure. New CheckEnvironmentHealthCheck<T>() extension method for explicit registration.
IDaemonWakeup for Async Daemon Signaling (#167)
New IDaemonWakeup and IHighWaterWakeup interfaces allow the async daemon's polling loop to be awakened immediately when new events are appended (e.g., via database notifications), instead of relying solely on periodic polling. Default behavior unchanged. Contributed by @thuijer.
Additional Improvements
- Composite slicer tests (#60, #182) — New tests for TenantedEventSlicer composition, fan-out after grouping, combined Identity+Identities routing
- Build fixes — Build.csproj updated to net9.0, added global.json for SDK resolution, fixed Nuke solution build project check, corrected codegen smoke test target
- Static property exclusion (#177) — Property retrieval now excludes static properties (contributed by @crazycrank)
Package Versions
| Package | Version |
|---|---|
| JasperFx | 1.24.0 |
| JasperFx.Events | 1.27.0 |
| JasperFx.SourceGeneration | 1.1.0 |
| JasperFx.SourceGenerator | 1.1.0 |
| JasperFx.Events.SourceGenerator | 1.5.0 |
| JasperFx.RuntimeCompiler | 4.4.0 (unchanged) |