Skip to content

[6.1.0] - 2025-03-08

Choose a tag to compare

@lszzy lszzy released this 08 Mar 15:03
· 249 commits to master since this release

Added

  • SmartCodable component introduced, new SmartModel model compatible with AnyModel|AnyArchive protocol, gradual migration is recommended
  • MMKV cache plug-in, MMAPValue property wrapper component added
  • Cache component changed to generic mode, migration and adaptation required
  • Archiver component changed to generic mode, registerType is no longer required, migration and adaptation required
  • Added tools and methods such as DNS resolution and VPN connection check
  • Decimal and CGFloat are compatible with BasicType protocol

Migrate

  1. JSONModel memory reading and writing method is unstable, please use KeyMappable method or migrate to SmartModel, memoryMode method will be removed in the next version
  2. After the Archiver component is changed to a generic method, registerType is no longer required. If you need to be compatible with the old version of Any type data, the usage method remains the same as before
  3. After Cache component is changed to generic mode, if you encounter code errors, you can convert as? T to as T?
  4. The next major version will split the UIKit submodules, refactor the on-demand loading method of submodules, and remove obsolete code. Stay tuned.

Added

  • 引入SmartCodable组件,新增SmartModel模型兼容AnyModel|AnyArchive协议,建议逐步迁移
  • 新增MMKV缓存插件,MMAPValue属性包装器组件
  • Cache组件修改为泛型方式,需迁移适配
  • Archiver组件修改为泛型方式,registerType不再必须,需迁移适配
  • 新增解析DNS、检查VPN是否连接等工具方法
  • Decimal和CGFloat兼容BasicType协议

Migrate

  1. JSONModel读写内存方式不稳定,请使用KeyMappable方式或迁移至SmartModel,下个版本将移除memoryMode方式
  2. Archiver组件改为泛型方式后,无需registerType注册,如需兼容旧版本Any类型数据,使用方式和之前保持一致
  3. Cache组件改为泛型方式后,如遇代码报错,可将as? T转换为as T?即可
  4. 下个大版本将拆分UIKit子模块,重构子模块按需加载方式,并移除废弃代码,敬请期待