DMVCFramework 3.3.0-fluorine - What's New
DMVCFramework 3.3.0-fluorine
Release Date: April 21, 2023
This release adds Delphi 11.3 Alexandria support, Records in Swagger documentation, and Prometheus monitoring integration.
Major New Features
Delphi 11.3 Alexandria Support
Full support for Delphi 11.3 Alexandria with updated packages.
Records in Swagger Parameters and Responses
Use Delphi records directly in Swagger documentation:
type
TAddressRecord = record
Street: string;
City: string;
ZipCode: string;
end;
[MVCPath('/customers')]
TCustomerController = class(TMVCController)
public
[MVCPath('/($ID)/address')]
[MVCHTTPMethods([httpGET])]
[MVCSwagResponse(200, TAddressRecord)] // Record type in Swagger
function GetAddress(const ID: Integer): TAddressRecord;
end;
Prometheus Middleware
Monitor your API with Prometheus metrics:
Engine.AddMiddleware(TMVCPrometheusMiddleware.Create);
Exposes metrics at /metrics endpoint:
- Request count by path and method
- Request duration histogram
- Error rates
New Sample: prometheus
Profiler Threshold Logging
Log only requests exceeding a threshold:
Profiler.LogsOnlyIfOverThreshold := True;
Profiler.Threshold := 100; // milliseconds
Other Improvements
Wizard Improvements
- Commented code showing how to use context events
- Better documentation in generated code
Bug Fixes
- Fixed wrong data type for NullableTGUID (#651)
- Fixed custom session sample
- Fixed JWT unit test
Updated Dependencies
- React sample updated to functional components
- Security updates for npm dependencies
Comments
comments powered by Disqus