NewLife/X

v11.17.2026.0701 JSON IDictionarySource序列化、配置原子写入、Bug修复
石头 authored at 2026-07-01 08:12:07
7a81930
Tree
1 Parent(s) 3d7e6c3
Summary: 4 changed files with 27 additions and 5 deletions.
Modified +22 -0
Modified +2 -2
Modified +1 -1
Modified +2 -2
Modified +22 -0
diff --git a/ChangeLog.md b/ChangeLog.md
index 9a38eb0..5aec04d 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,5 +1,27 @@
 # NewLife.Core 版本更新记录
 
+## v11.17.2026.0701 (2026-07-01)
+
+### JSON 增强
+- **IDictionarySource 序列化支持**:System.Text.Json 支持 `IDictionarySource` 接口序列化及多种时间格式
+- **DateTime ISO 8601 优化**:优化 `DateTime` 序列化为 ISO 8601 格式,增强字符串转义与注释处理
+
+### 配置系统
+- **原子写入**:`XmlConfig` 与 `JsonConfig` 支持原子写入,避免文件损坏
+- **并发安全增强**:`FileConfigProvider` 原子写入增强多线程安全性,提升文件配置写入兼容性
+
+### 网络优化
+- **HttpContent 埋点增强**:优化 HTTP 内容埋点标签提取逻辑,提升链路追踪健壮性
+
+### Bug 修复
+- **[fix]** 修复 `SystemJson.Parse` 解析对象类型错误
+- **[fix]** 修复数组序列化时错误忽略 null 元素
+
+### 测试与质量
+- **测试并发控制**:统一测试并发控制,移除 `xunit.runner.ci.json` 简化配置
+
+---
+
 ## v11.16.2026.0601 (2026-06-01)
 
 ### 事件总线增强
Modified +2 -2
diff --git a/NewLife.Core/NewLife.Core.csproj b/NewLife.Core/NewLife.Core.csproj
index f69b881..43f7d36 100644
--- a/NewLife.Core/NewLife.Core.csproj
+++ b/NewLife.Core/NewLife.Core.csproj
@@ -7,7 +7,7 @@
     <Description>Core library of NewLife framework. Provides high-performance infrastructure for building scalable applications: logging (file/network), configuration (XML/JSON/HTTP), cache (memory/distributed), network (TCP/UDP/HTTP/WebSocket), serialization (binary/XML/JSON), APM tracing, IoC container, actor model, timer scheduler, plugin framework, and more. Supports .NET Framework 4.5 to .NET 10. 核心组件库,为构建可扩展应用程序提供高性能基础设施。提供日志(文件/网络)、配置(XML/JSON/HTTP)、缓存(内存/分布式)、网络(TCP/UDP/HTTP/WebSocket)、序列化(Binary/XML/JSON)、APM性能追踪、对象容器、并行模型、定时调度、插件框架等。支持.NET Framework 4.5至.NET 10全版本。</Description>
     <Company>新生命开发团队</Company>
     <Copyright>©2002-2026 NewLife</Copyright>
-    <VersionPrefix>11.16</VersionPrefix>
+    <VersionPrefix>11.17</VersionPrefix>
     <VersionSuffix>$([System.DateTime]::Now.ToString(`yyyy.MMdd`))</VersionSuffix>
     <Version>$(VersionPrefix).$(VersionSuffix)</Version>
     <FileVersion>$(Version)</FileVersion>
@@ -32,7 +32,7 @@
     <RepositoryUrl>https://github.com/NewLifeX/X</RepositoryUrl>
     <RepositoryType>git</RepositoryType>
     <PackageTags>新生命团队;X组件;NewLife;$(AssemblyName)</PackageTags>
-    <PackageReleaseNotes>EventHub/EventBus全面异步化重构,统一入口为OnReceiveAsync;支持自定义JSON序列化选项;WebSocket支持粘包分包处理;统一ValueTask异步接口移除多余条件编译;兼容旧版.NET的IAsyncEnumerable/IAsyncDisposable;修复UdpClient并发绑定竞态问题</PackageReleaseNotes>
+    <PackageReleaseNotes>新增 System.Text.Json 对 IDictionarySource 序列化及 ISO 8601 DateTime 格式支持;XmlConfig/JsonConfig 支持原子写入,FileConfigProvider 增强并发安全;优化 HttpContent 埋点标签提取逻辑;修复 SystemJson.Parse 对象类型解析错误及数组序列化 null 元素忽略问题;统一测试并发控制简化配置</PackageReleaseNotes>
     <PackageLicenseExpression>MIT</PackageLicenseExpression>
     <PublishRepositoryUrl>true</PublishRepositoryUrl>
     <EmbedUntrackedSources>true</EmbedUntrackedSources>
Modified +1 -1
diff --git a/NewLife.Core/Properties/AssemblyInfo.cs b/NewLife.Core/Properties/AssemblyInfo.cs
index ea32a66..d561b4e 100644
--- a/NewLife.Core/Properties/AssemblyInfo.cs
+++ b/NewLife.Core/Properties/AssemblyInfo.cs
@@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
 [assembly: AssemblyConfiguration("")]
 [assembly: AssemblyProduct("NewLife.Core")]
 [assembly: AssemblyCompany("新生命开发团队")]
-[assembly: AssemblyCopyright("版权所有(C) 2002-2019 新生命开发团队 https://github.com/NewLifeX/X")]
+[assembly: AssemblyCopyright("版权所有(C) 2002-2026 新生命开发团队 https://github.com/NewLifeX/X")]
 [assembly: AssemblyTrademark("四叶草")]
 [assembly: AssemblyCulture("")]
 
Modified +2 -2
diff --git a/NewLife.Security/NewLife.Security.csproj b/NewLife.Security/NewLife.Security.csproj
index 3beb942..6e6f77c 100644
--- a/NewLife.Security/NewLife.Security.csproj
+++ b/NewLife.Security/NewLife.Security.csproj
@@ -6,7 +6,7 @@
     <Description>Extended cryptographic algorithms for NewLife framework. Provides advanced encryption capabilities including ECC (Elliptic Curve Cryptography), ECDSA digital signature, and more. 扩展加密算法库,提供椭圆曲线加密(ECC)、ECDSA数字签名等高级加密能力。基于.NET CNG平台的安全扩展组件。</Description>
     <Company>新生命开发团队</Company>
     <Copyright>©2002-2026 NewLife</Copyright>
-    <VersionPrefix>11.16</VersionPrefix>
+    <VersionPrefix>11.17</VersionPrefix>
     <VersionSuffix>$([System.DateTime]::Now.ToString(`yyyy.MMdd`))</VersionSuffix>
     <Version>$(VersionPrefix).$(VersionSuffix)</Version>
     <FileVersion>$(Version)</FileVersion>
@@ -28,7 +28,7 @@
     <RepositoryUrl>https://github.com/NewLifeX/X</RepositoryUrl>
     <RepositoryType>git</RepositoryType>
     <PackageTags>新生命团队;X组件;NewLife;$(AssemblyName)</PackageTags>
-    <PackageReleaseNotes>跟随 NewLife.Core v11.16 同步发版</PackageReleaseNotes>
+    <PackageReleaseNotes>跟随 NewLife.Core v11.17 同步发版</PackageReleaseNotes>
     <PackageLicenseExpression>MIT</PackageLicenseExpression>
     <PublishRepositoryUrl>true</PublishRepositoryUrl>
     <EmbedUntrackedSources>true</EmbedUntrackedSources>