Release 1.1.1
Release Notes
✨ Improvements
-
Refactored Uploader Configuration Logic
The internal settings update mechanism has been redesigned. Instead of rebuilding the uploader every time, the plugin now updates single config items precisely and efficiently. -
Dynamic i18n Labels for Settings
Settings fields now support dynamic translation based on the current UI language.
Labels update instantly when the user switches language (no reload required). -
Cleaner and Safer Upload Configuration
Removed deprecated fields and unused utilities.
Updated MIME type handling for more accurate detection of image formats.
🧩 Fixes
- Improved robustness when updating uploader instances between Lsky Pro v1 / v2.
- Fixed possible inconsistencies when switching languages under certain UI states.
- Cleaned up type definitions to ensure stronger TypeScript safety.
🛠 Internal Refactor
- Consolidated uploader initialization and configuration update flow.
- Simplified code paths and improved maintainability.
- Removed unused old utilities left from earlier versions.
🧪 Compatibility
- ✅ Tested on Obsidian v1.10.3
- ✅ Verified on Windows 11
更新日志
✨ 优化改进
-
重构上传器配置更新机制
设置更新不再强制重建上传器实例,改为按需更新单个字段,提高性能与稳定性。 -
设置项动态多语言标签
设置项名称现在会随语言切换自动更新,无需重载插件,语言切换更自然。 -
更精确的 MIME 类型处理
优化文件类型识别逻辑,提高对多种图片格式的兼容性。 -
清理废弃代码
移除未使用的工具函数与过期字段,使代码结构更精简。
🧩 问题修复
- 修复:部分情况下语言切换不完整的问题。
- 修复:上传器在不同版本(Lsky Pro v1 / v2)之间切换可能导致配置不一致的问题。
- 强化 TS 类型定义,减少潜在运行时错误。
🛠 内部重构
- 抽离上传器配置更新流程,统一管理逻辑路径。
- 提升代码可读性与可维护性。
- 精简无用依赖与旧结构。
🧪 兼容性
- ✅ 测试版本:Obsidian v1.10.3
- ✅ 测试平台:Windows 11