Repository navigation
26.7.4
MDFriday Sync — Release Notes v26.7.4
Released: July 4, 2026 · 发布日期:2026 年 7 月 4 日
📋 Overview / 概述
This is a hotfix release that corrects the declared minAppVersion from 1.4.0 to 1.7.2.
Version 26.7.3 still flagged two Obsidian APIs that require a version higher than 1.4.0. This release properly aligns the minimum Obsidian version with every API in use.
本版本是一个热修复版本,将 minAppVersion 从 1.4.0 更正为 1.7.2。
26.7.3 版本仍有两处 Obsidian API 需要高于 1.4.0 的版本。本版本将声明的最低 Obsidian 版本与所有使用的 API 正确对齐。
🔧 Breaking Changes / 破坏性变更
Requires Obsidian ≥ 1.7.2 (was ≥ 1.4.0 in v26.7.3).
要求 Obsidian ≥ 1.7.2(v26.7.3 要求 ≥ 1.4.0)。
Users on an older Obsidian version will automatically receive an older compatible plugin version via the versions.json fallback mechanism — no manual action required.
旧版本 Obsidian 用户将通过 versions.json 回退机制自动获取兼容的旧插件版本,无需手动操作。
🐛 Bug Fix / 错误修复
Plugin review error: remaining minAppVersion mismatch / 插件审核错误:minAppVersion 声明仍不匹配
Remaining error after v26.7.3 (minAppVersion: 1.4.0):
Error: Uses Obsidian APIs newer than the declared `minAppVersion`
obsidianmd/no-unsupported-api
src/sync/FridayServiceHub.ts:580
src/sync/SyncStatusDisplay.ts:85
Root cause / 根本原因:
Two APIs used in the codebase require Obsidian 1.7.2, which is higher than the 1.4.0 declared in v26.7.3:
以下两处 API 要求 Obsidian 1.7.2,高于 v26.7.3 中声明的 1.4.0:
| API | Introduced in / 引入版本 | Used in / 使用位置 |
|---|---|---|
FileManager.trashFile(file) |
1.7.2 | FridayServiceHub.ts:580 |
| Plugin settings access pattern | 1.7.2 | SyncStatusDisplay.ts:85 |
Why
fileManager.trashFile()and not the oldervault.trash()?
The Obsidian review team itself recommended migrating fromVault.trash()toFileManager.trashFile()to respect the user's system trash preference. Rather than reverting to the deprecated pattern, we declare the correct minimum version.为何使用
fileManager.trashFile()而非旧版vault.trash()?
Obsidian 审核团队在审查过程中主动推荐将Vault.trash()迁移到FileManager.trashFile(),以遵循用户的系统回收站偏好。与其回退到已过时的用法,不如声明正确的最低版本要求。
Fix / 修复:
// manifest.json
{
"minAppVersion": "1.7.2" // was "1.4.0" in v26.7.3
}
// versions.json
{
"26.7.1": "1.0.0", // basic Obsidian APIs only
"26.7.2": "1.4.0", // ButtonComponent.setDisabled, vault.createFolder, etc.
"26.7.3": "1.7.2", // (same as 26.7.4 — correction made here)
"26.7.4": "1.7.2" // FileManager.trashFile() + associated APIs
}🔄 Version Compatibility Matrix / 版本兼容矩阵
| Obsidian version / Obsidian 版本 | Plugin version received / 获得的插件版本 |
|---|---|
| < 1.0.0 | Not installable / 无法安装 |
| 1.0.0 – 1.3.x | v26.7.1 |
| 1.4.0 – 1.7.1 | v26.7.2 |
| ≥ 1.7.2 | v26.7.4 (latest / 最新) |
🔗 Links / 相关链接
- Plugin source / 插件源码:github.com/mdfriday/obsidian-sync
- Backend source / 后端源码:github.com/mdfriday/hugoverse
- Website / 官网:mdfriday.com
- License / 开源协议:Apache-2.0
See release-notes-26.7.2.md for the full list of compliance changes introduced in the v26.7.x series.
完整的 26.7.x 系列合规变更列表请参见 release-notes-26.7.2.md。