Release v21.12.0
Summary
Command response value handlers can now declare the response type they consume, and the proxy generator uses these declarations to stop generating client response models for values that are handled on the server and never reach the client.
Added
ICommandResponseValueHandler<TValue>, an optional typed declaration that marks a command response value type as consumed on the server (#2537)
Changed
- The proxy generator no longer generates client response models for server-consumed response types, whether returned directly or wrapped in
Result,OneOf, tuples, or collections (#2537) - Typed handler declarations are discovered from the application and its referenced packages, replacing the fixed built-in list of well-known types (#2537)
- All built-in Arc and Chronicle response value handlers declare their consumed types (#2537)
Fixed
- Generated TypeScript import statements for generic types now reference the correct proxy file name