Skip to content

v1.2.4 release

Latest

Choose a tag to compare

@FunnySaltyFish FunnySaltyFish released this 02 May 16:19
· 3 commits to master since this release

中文

Breaking Change

  • 移除了 data-saver-core 中的 DataSaverLogger。如果你之前直接使用它,需要改为直接调用 Log。
  • 日志配置从单一的 DEBUG 开关演进为 logLevel 分级控制。DEBUG 仍可兼容使用,但后续应迁移到 DataSaverConfig.logLevel。

其他更新

  • 修复:类型转换器现已可正确处理泛型(例如,同时注册 List/List 时,能自动匹配对应的转换器)
  • 修复:wasmJs 版本的外部数据感知改为 JS 实现,可实现跨实例监听
  • 默认日志级别调整为 INFO,关键的读取、恢复、写入、移除和外部数据变更日志在默认配置下即可看到。
  • 新增统一日志流能力,日志可同时输出到底层 logger,并接入示例应用中的 UI 日志面板。
  • 重构 ExampleComposables 示例页面,调整为更清晰的分组布局,保留各演示项的可读性。
  • 将日志区域改为侧边栏形式,支持随时展开查看、切换日志级别、清空日志和测试输出。

English

Breaking Changes

  • Fix: Type converters now handle generics correctly (e.g., when both List<String> and List<Int> are registered, the corresponding converter is automatically matched)
  • Fix: External data awareness in the wasmJs version has been switched to a JS implementation, enabling cross-instance observation
  • Removed DataSaverLogger from data-saver-core. If your code referenced it directly, migrate to Log.
  • Logging configuration has been upgraded from a single DEBUG switch to leveled logging with logLevel. DEBUG is still kept for compatibility, but DataSaverConfig.logLevel is now the recommended
    API.

Other Updates

  • Fix: Type converters now handle generics correctly (e.g., when both List<String> and List<Int> are registered, the corresponding converter is automatically matched)
  • Fix: External data awareness in the wasmJs version has been switched to a JS implementation, enabling cross-instance observation
  • Changed the default log level to INFO, so important read, restore, write, remove, and external-change logs are visible by default.
  • Added a unified log stream so logs can be emitted through the underlying logger and displayed inside the demo app UI at the same time.
  • Refined the ExampleComposables demo page with clearer grouping and improved layout while keeping each demo easy to inspect.
  • Moved the log viewer into a sidebar, making it easier to open at any time, change log levels, clear logs, and trigger test output.

Full Changelog: v.1.2.3...v1.2.4