kbmmw 5.01 发布

简介: Important notes (changes that may break existing code) ====================================================== * Officially now only supporting XE2 and forward.
Important notes (changes that may break existing code)
======================================================
* Officially now only supporting XE2 and forward. Support for pre XE2
may not be complete.

New stuff
=========
- Added support for RAD Studio 10.2 Tokyo, including Linux support
(currently in beta)
  Include new sample simpleinvocation LinuxServer demo.
- Officially now only supporting XE2 and forward. Support for pre XE2
may not be complete.
- Added RemoteLocationsPrimaryPart to
TkbmMWAuthorizationTransportConstraint (default false).
  If set to true, will only compare primary part of
clientidentity.remotelocation.
  Primary part is defined by everything up til the last ':'. In most cases
  that will mean the IP address without the port number.
- Added IkbmMWLogFormatter interface to kbmMWLog.
- Added TkbmMWStandardLogFormatter to kbmMWLog. It contains vastly
improved features for
  controlling the look and layout of the log output. Its the default
used log formatter.
- Added TkbmMWSimpleLogFormatter to kbmMWLog. It outputs a log with only
datetime,
  type (info/warning/error/fatal etc) and log string.
- Added LogFormatter property to IkbmMWLogManager. It can be set to a
custom log formatter.
- Added mwldtRaw log data type and methods LogRaw to IkbmMWLog. It
allows for logging
  bytes or strings without interpretation/reformatting.
- Added global SystemLog instance which will always output to system log
outputs.
  It is used as a fallback in case the regular log system excepts.
- Added support for marshalling/unmarshalling named enum values via the
new kbmMW_Enum
  attribute.
  Its useful when an enum value cant be used as an identifier or its
value should be different
  from its presented name.
- Added ExceptOnUnknownType to TkbmMWCustomRTTIMarshal. It controls if
to throw an exception
  if an unknown type is accessed or not (default true).
- Added support for marshalling/unmarshalling TDictionary<K,V> types.
- Added support for correctly instantiating classes in unmarshalling
that contains a capacity
  constructor argument.
- Added Run methods to TkbmMWScheduler. It allows for one time run and
forget scheduled async
  code. They are used in the same way as the Schedule methods, but sets
Occurs to mwsoRun.
  The job will be automatically unscheduled after the run.
- Added overloaded DelayInitial(const AInitialDelaySecs:double) to
IkbmMWScheduledEvent.
  It allows for directly giving an initial delay in seconds. It supports
fractional second
  values.
- Added Clear to TkbmMWScheduledEvents (scheduler.Events) to allow for
clearing all scheduled
  events. Running events will be allowed to finish.
- Added GetNameSpaceByURI, DefaultNameSpace, DefaultNameSpaceURI to
TkbmMWDOMXMLNameSpaceList.
- Added SearchRelNodeByID, SearchNodeByID, SearchRelNodeByGivenName,
SearchNodeByGivenName
  to IkbmMWDOMXMLParser.
- Added ExpandNameSpace, GivenName, ChildrenByGivenName, ChildByGivenName,
  CheckChildByGivenName to TkbmMWDOMXMLNode.
- Added CheckNodeByGivenName, NodeByGivenName to TkbmMWXMLNodeList.
- Added missing ADSDBF support to kbmMWReg.
- Added
mwrtoOptionalInsert,mwrtoKeyNotNullInsert,mwrtoOptionalModify,mwrtoKeyNotNullModify,
  mwrtoOptionalDelete,mwrtoKeyNotNullDelete and table modifier flags
  OIM/OMI (optional insert/modify), OID/ODI (optional insert/delete),
  OMD/ODM (optional modify/delete), OI (optional insert),
  OD (optional delete), OM (optional modify),
  KIM/KMI (insert/modify on key not null), KID/KDI (insert/delete on key
not null),
  KMD/KDM (modify(delete on key not null), KI (insert on key not null),
  KM (modify on key not null), KD (delete on key no null)
  to TkbmMWResolverTableOption
  They allow for more finegrained definition on when
insert/update/delete should happen.
  If one of the optional (OIM,OMD,OID,OI,OD,OM) is given, no exception
will be raised for
  the table when an operation did not succeed, and resolving will continue.
  If one of the key (KIM,KMD,KID,KI,KM,KD) is given, record resolve
operation will be skipped
  for the specific record if key is null.
- Added ReadBOM overloaded methods with default TEncoding option to
TkbmMWPlatformMarshal.
- Added overloaded kbmMWTextToString, kbmMWExpectText,
kbmMWStringRightPad, kbmMWStringLeftPad,
  kbmMWGetComputerName functions to kbmMWGlobal.pas.
- Added optional ACallback anonymous function to SendAsyncRequest and
SendAsyncRequestEx in
  kbmMWClient.pas (WIB only).
  It allows for providing an anonymous function that should be called
when an async response
  is returned. The function must follow this type:
    function(Sender:TObject;
TransportStream:IkbmMWCustomTransportStream):boolean;
- Added LOB blob/clob support (user fix) to DOA adapter.
- Vastly improved XSD importer.
- Added generic Object Notation framework for building virtual object
trees consisting of
  TkbmMWONNative, TkbmMWONArray and TkbmMWONObject which all are based
on TkbmMWONCustomObject.
- Added YAML parser/generator based on object notation framework.
- Added Messagepack parser/generator based on object notation framework.
- Added BSON parser/generator based on object notation framework.
- Added support for converting XML to and from object notation format via
  LoadFromObjectNotation and SaveToObjectNotation functions.
- Added new TkbmMWCustomSmartService and TkbmMWCustomHTTPSmartService
services, which
  can be selected in the service wizard to create smart services. Smart
services
  supports tagging any function to be exported to a smart client or a
REST client
  (TkbmMWCustomHTTPSmartService required).
- Updated transports to support marshalling objects via the transport.
- Added several near lock free features to kbmMWGlobal, including
TkbmMWLockFreeStack,
  more interlocked functions, lock free array GC fixes, optional
TkbmMWREWLock statistics,
  support for TkbmMWMREWLock can switch to TMonitor for reader/writer
fair support.
- Optimized many algorithms like TkbmMWStringBuilder, TkbmMWGenerateGUID,
  TkbmMWGenerateShortGUID and many more to improve performance overall.
- Added many new general purpose functions to kbmMWGlobal.
- Added direct support for salt in hash functions deriving from
TkbmMWCustomHash.
- Added support for anonymous functions in async kbmMWClient requests (WIB)
- Added new kbmMWRTTI unit with loads of RTTI functionality.
- Added YAML stream format for kbmMemTable and descendants.
- Added Messagepack stream format for kbmMemTable and descendants.
- Added BSON stream format for kbmMemTable and descendants.
- Added object marshalling to and from YAML.
- Added object marshalling to and from Messagepack.
- Added object marshalling to and from BSON.
- Added ServicePath property to TkbmMWClientIdentity.
- Added MaxLogins to TkbmMWAuthorizationManager which is default 100 to
prevent
  potential login spam.
- Added support for HTTPSys based transport for Windows. Its specially
useful
  for high performance RESTful applications.
- Added AutoRegisterServices method to TkbmMWServer which can be used
for automatically
  locating and registering any service that has the kbmMW_Service
attribute defined.
  It makes use of the old RegisterService and RegisterServiceByName
optional.
- Added LocalSinceEpochMS, UTCSinceEpochMS, Temporenc to TkbmMWDateTime.
Temporenc
  is a very compact binary encoding of a datetime value.
- Added FastSetUTC method to TkbmMWDateTime to threadsafely very fast
setting
  the UTC value of an already defined TkbmMWDateTime record. The record
  MUST be initialized before using FastSetUTC, for example by
dt:=TkbmMWDateTime.Now;
- Added ValueToStream, ValueFromStream, ValueToBytes and ValueFromBytes in
  TkbmMWCustomRTTIMarshal. Allows for easy marshalling objects to and
from bytes and streams.
- Added ExceptOnUnknownType boolean property to TkbmMWCustomRTTIMarshal.
  Controls if an exception should be thrown in case a type cant be
marshalled or
  unmarshalled, or it should be silently skipped.
- Added Devart MyDAC support (DMYDAC).
- Added CORS support (Cross Origin-Resource Sharing) in
TkbmMWCustomHTTPService and
  descendants. (OnCORS event).
- Added PerformOPTIONS and PerformPATCH support to TkbmMWCestomHTTPService.
  (OnOptions and OnPatch in TkbmMWEventHTTPService).
- Added REST transport stream format which must be used if non HTTPSys
transport
  is used for smart services.
- Added TkbmMWSmartClient which allows simple and easy access to server
side smart functions.
  Check simpleinvocation sample.
- Added high quality random functions in new kbmMWRandom unit.
  TkbmMWRandomDelphi (32 bit non high quality ramdom!),
TkbmMWRandomSplitMix (64 bit)
  TkbmMWRandomXoroshiro128Plus (64 bit), TkbmMWRandomXoroshiro1024 (64 bit),
  TkbmMWRandomPCGUInt32 (32 bit), TkbmMWRandomMersenneTwisterUInt32 (32
bit),
  TkbmMWRandomMersenneTwisterUInt64 (64 bit)
- Added high quality pronouncable password generators in new unit
kbmMWPassword.
  TkbmMWMixerPasswordGen, TkbmMWKoremutakePasswordGen
- Added support for ExchangeType in TkbmMWAMQPClient.
- Added new GC and CloseAndGC methods in TkbmMWAMQPChannel to force
getting rid of
  defunct/cached but unused AMQP channels.
- Added IPVersion property to TkbmMWCustomTCPIPIndyClientTransport.
- Split out all lockfree algorithms from kbmMWGlobal to kbmMWLockFree unit
  to make kbmMWGlobal smaller, partly due to internal compiler errors.
- Fixed to default not inlining kbmMWMREWLock methods on 32 bit CPUs due to
  unstable compiler which can result in F2084/C2491 error combinations.
- Moved all lockfree code to new kbmMWLockFree.pas unit.
- Added TkbmMWLockfreeStack.
- Changed so XE6/XE7 SKU's do not compile in new kbmMWLockFree contents
  due to compiler errors.
- Added kbmMW ORM OPF (Object Relational Modelling Object Persistence
Framework)
  in unit kbmMWORM.pas. Compiles with XE5 and higher. Check new ORM demos.
  Currently in beta.
- Added TkbmMWBinaryPasswordGen to kbmMWPassword.pas. Generates random
binary keys
  of any length, suitable for cryptographic use.
- Added functions Year(ADateTime:TDateTime=Math.NaN):word;
  function Month(ADateTime:TDateTime=Math.NaN):byte;
  function DayOfMonth(ADateTime:TDateTime=Math.NaN):byte;
  function HourOfDay(ADateTime:TDateTime=Math.NaN):byte;
  function MinuteOfHour(ADateTime:TDateTime=Math.NaN):byte;
  function SecondOfMinute(ADateTime:TDateTime=Math.NaN):byte;
  to TkbmMWDateTime.
- Improved Null handling in kbmMWNullable and TkbmMWDateTime.
- Improved Modified support in kbmMWNullable and TkbmMWDateTime.
- Added functions function OutputToFile(const
AFileName:string=''):IkbmMWLocalFileLogManager;
  procedure OutputToDefault;
  function OutputToStrings(const AStrings:TStrings; const
ASynchronized:boolean = true):IkbmMWStringsLogManager;
  function OutputToStringsAndFile(const AStrings:TStrings; const
ASynchronized:boolean = true; const
AFileName:string=''):IkbmMWTeeLogManager;
  function OutputToTee:IkbmMWTeeLogManager;
  procedure OutputToNull;
  to IkbmMWLog to make it easier to redirect output to some standard
destinations.
- Added mwddLog to kbmMWGlobal, as a new output destination for kbmMW
lowlevel debugging.
  Will output to the default logger.
- Fixed and improved TkbmMWCircularBuffer.
- Added kbmMWSmartUtils.pas containing Use class with easy to use
methods to convert arguments and results.

Changes/minor additions
=======================
- Removed (mwloProcessThreadInfo,mwloThreadName from TkbmMWLogOption
since its now controlled
  by the log formatter.
- Changed Activate method of IkbmMWScheduledEvent to have true as
default argument AValue.
- Changed SetAsDuration and GetAsDuration to use TkbmMWDuration instead
of TkbmMWDateTime.
- Added support for checking if path is accessible in
TkbmMWBufferedFileStream.Create.
- Changed JSON parser/generator to be based on the object notation
framework.
- Improved scalability of FastCGI services to better spread load accross
multiple instances.

Fixes
=====
- Fixed A/V when attempting to use audit file.
- Fixed missing clearing of TkbmMWDuration when parsing duration
strings, resulting in
  an incorrect duration value (instead of null) on invalid duration strings.
- Fixed TDuration.Passed(const ADuration:TkbmMWDuration) which didnt
return correct value.
- Fixed deactivating precise scheduled events.
- Fixed events scheduled to start on day, month, week or year boundaries.
- Fixed issues to initial delay in scheduled events.
- Fixed parsing tags crossing line boundaries in XML parser.
- Fixed various namespace issues in XML parser.
- Fixed WIB compilation issue for XE.
- Fixed TkbmMWStreamStore offset bug when writing first segment.
- Fixed potential shutdown issue in Indy10 transports due to Indy10 bug.
- Fixed kbmMWDependency non accumulating memory leaks.
- Fixed NexusDB transport compilation.
- Fixed Autoinc field detection in EDB (ElevateDB) adapter.
目录
相关文章
|
3月前
|
人工智能 缓存 自然语言处理
大模型AI对话前端应用实践:深度详解流式响应、工具调用状态与长会话同步落地方案24.1
本文深入解析AI对话式前端交互三大核心技术:流式响应(基于SSE逐字渲染)、工具调用状态展示(识别/执行/结果四阶段精细化UI)及长会话同步(虚拟列表+分段加载+前后端双向同步),覆盖实现原理、代码示例与异常兜底,助力构建高性能、高体验的AI应用。
322 2
|
3月前
|
运维 API C++
香港云服务器vs美国云服务器,2026跨境商用选型指南
本文以“用户地域分布”为核心,深度解析香港与美国云服务器选型逻辑:亚太用户首选香港(低延迟、双向稳定、免备案);欧美用户优选美国(本地极速、大带宽、高性价比);混合流量可按占比决策或双节点分流。避开常见误区,兼顾线路、带宽、IP、运维四大商用维度,助跨境业务精准匹配最优节点。
|
3月前
|
JSON 安全 API
Claude API 提示缺少 tool_result 的排查方法:工具调用 ID 与消息顺序检查指南
Claude工具调用需严格配对:assistant的`tool_use.id`必须与后续user消息中`tool_result.tool_use_id`完全一致。常见错误包括ID不匹配、消息顺序错乱或缺失结果。多调用须一次性返回全部结果,失败时也应带`is_error:true`配对。重试无效,须修正结构。
|
6月前
|
人工智能 运维 JavaScript
阿里云无影云电脑部署OpenClaw与Hermes Agent +百炼Token Plan简易配置流程
随着AI智能体技术的普及,轻量化AI Agent框架结合大模型服务的使用场景愈发广泛。阿里云无影云电脑依托云端桌面形态,无需本地硬件支撑、环境隔离安全、即开即用,区别于传统ECS云服务器,操作逻辑更贴近个人电脑,对于不熟悉纯命令行运维的使用者十分友好,是部署各类应用程序与AI服务的优质载体。
856 2
|
6月前
|
人工智能 供应链 Cloud Native
2026中国B2B企业服务业GEO白皮书:从产业洞察到优化实践
78%的企业HR、法务、采购已通过AI筛选服务商。本白皮书覆盖法律服务、管理咨询、金融科技、人力资源、IT服务等10大核心赛道,通过DSS原则(语义深度、数据支持、权威来源),将过会率、交付周期、客户评价等转化为可验证的AI信任资产,助力专业服务机构实现AI获客。
1019 2
|
8月前
|
人工智能 运维 监控
Harness Engineering让AI项目工程化
Harness Engineering Harness Engineering Harness Engineering
1125 2
Harness Engineering让AI项目工程化
|
9月前
|
人工智能 Cloud Native Java
深耕三十载,焕新向未来——Java语言的发展之路与时代新篇
在技术迭代日新月异的今天,有一门语言自1995年诞生以来,历经三十年风雨洗礼,始终稳踞企业开发核心阵地,从桌面应用到云端架构,从移动终端到人工智能,它的身影无处不在,这就是Java。
1228 0
|
存储 人工智能 搜索推荐
拔俗AI社保规划师:您的24小时私人社保顾问,让福利不“迷路”
面对社保政策复杂、咨询需求激增的现状,AI社保规划师系统基于阿里云技术,构建政务级云原生智能服务体系,实现政策数据实时更新、精算模型精准计算、个性化方案智能推荐。通过“云-端-边”协同架构,打通数据安全、智能分析与多端应用,支撑日均超8万次咨询,响应时间缩短至10秒,助力政务服务效率提升40%以上,推动社保服务向数字化、智能化转型。
614 0
|
存储 监控 安全
基于阿里云的最低成本私有化部署DeepSeek
本方案详细介绍了基于阿里云的成本优化策略与部署架构,涵盖计算、存储、网络资源选型及优化技巧。核心内容包括:突发性能实例(如`ecs.g7.large`)结合预留实例券降低计算成本;高效云盘与ESSD AutoPL分层存储设计;内网DNS优化及带宽流量包控制网络支出。同时提供负载均衡配置、自动伸缩规则与安全加固措施,确保系统稳定运行。通过七大降本技巧(如抢占式实例、智能分层存储、RDS Serverless版等),实现总月成本控制在¥450左右,仅为传统方案的1/3以下。最后附带成本监控仪表盘与持续优化建议,助力企业高效管理云资源。
1699 7