DMVCFramework 3.2.3-radium - What's New
DMVCFramework 3.2.3-radium
Release Date: February 2, 2022
This release introduces the built-in profiler, TObject support in JSONRPC, and numerous improvements.
Major New Features
Built-in Profiler (Delphi 10.4+)
Profile your API endpoints with minimal overhead:
procedure TMyController.GetData;
begin
Profiler.Start('LoadFromDatabase');
// ... database operations
Profiler.Stop('LoadFromDatabase');
Profiler.Start('ProcessData');
// ... processing
Profiler.Stop('ProcessData');
end;
Profiler data is available in response headers or logs.
TObject Descendants in JSONRPC APIs
Pass complex objects through JSON-RPC:
// Server
function TMyService.ProcessOrder(const Order: TOrder): TOrderResult;
// Client - objects serialized/deserialized automatically
Result := JSONRPCClient.Call<TOrderResult>('ProcessOrder', [Order]);
Improved Error Handling
- Default HTTP reason strings in error responses
- SHA1 replaced MD5 for collision handling (better security)
- More descriptive error messages
Other Improvements
Nullable Types
- Enhanced nullable type handling throughout
- Better serialization of nullable fields
- Improved null value detection
Bug Fixes
- Multiple stability improvements
- Memory leak fixes
- Better exception handling
Comments
comments powered by Disqus