Releases: atidev/ATI.Services.Common
v13.1.0
v13.0.1
v13.0.0
What's Changed
Middleware
How to use:
- Register
app.UseXssValidation();
Controller attribute
How to use:
- Add attribute to controller
[XssInputValidationFilter]
Property attribute
How to use:
- Register
app.UseXssValidation();
- Add attribute to property
[XssValidate]
Full Changelog: v12.3.0...13.0.0
v12.3.0
What's Changed
- upgrade newtonsoft.json version to v13.0.1 to address this vulnerability, by @muphblu in #52
consider updating ATI.Services.Common - New Postgres client by @Nytru in #60 :
How to use:
- Register
services.AddSql(DataBases.Postgresql)
// or leave empty if want use MsSql
// services.AddSql()
- Add config
- Get PostgresDapper through DI
- Use it
Full Changelog: v12.2.0...v12.3.0
v12.2.0 Adding new format for display enum
Now we support new display form for enum at swagger. New format is numeric value and string value, for example '1 = January'.
How to switch on this changes on your code. You need to do this:
services.AddAtiSwagger(c =>
{
c.SchemaFilter<EnumKeyValueSchemeFilter>();
});
v12.1.2
v12.1.1 Quantile for summary metric
Quantilies added to Summary metric creation like in prometheus .net example:
Objectives = new[]
{
new QuantileEpsilonPair(0.5, 0.05),
new QuantileEpsilonPair(0.9, 0.05),
new QuantileEpsilonPair(0.95, 0.01),
new QuantileEpsilonPair(0.99, 0.005),
}
Them were lost during prometheus .net library update from v2 to v3.
v12.1.0 Tracing propagation
Flag propagateActivity
was added to To MetricsHttpClientConfig. It allows to turn off tracing headers propagation in http requests
v12.0.0 Metrics update
-
updated
prometheus-net
from 2.1.3 to 8.0.0; -
updated
Swashbuckle.AspNetCore
andSwashbuckle.AspNetCore.Newtonsoft
from 5.5.1 to 6.5.0; -
removed
zipkin4net
; -
removed all tracing code, including
TracingInitializer
,TracingOptions
,AddTracing
,UseTracing
,ZipkinManager
,TracingMiddleware
; -
getTracingCallback
parameter was removed fromMetricsFactory
(prev.MetricsTracingFactory
) methods; -
renamed classes, methods, fields that contained Tracing in their names;
-
DefaultLongRequestTime
andMetricsServiceName
are now part ofMetricsOptions
class; -
MetricsInitializer
now hasInitializeOrder.First
attribute; -
MetricsTimer
class now usesSystemTextJson
for logging; -
SystemMetricsCollector
was replaced by default metrics, provided byprometheus-net
library. Metric names changes are:start_time
->process_start_time_seconds
cpu_seconds_total
->process_cpu_seconds_total
virtual_bytes
->process_virtual_memory_bytes
working_set
->process_working_set_bytes
private_bytes
->process_private_memory_bytes
open_handles
->process_open_handles
num_threads
->process_num_threads
totalmemory
->dotnet_total_memory_bytes
gc_collect_count
->dotnet_collection_count_total