Skip to content

v0.64.0

Choose a tag to compare

@Nriver Nriver released this 30 Oct 12:41
· 39 commits to main since this release

Trilium Plus 0.64.0 Release Notes

Range: v0.63.7 (51939b1) → 0ce0f9d, 49 commits
Version: 0.63.7 → 0.64.0, displayed as 0.64.0 Plus

Highlights

Security

  • Hardened sync authentication against brute-force attacks and replay:
    • Rate-limited failed sync authentication attempts (max 10 per 15 minutes)
    • Constant-time comparison for authentication hashes
    • One-time login tokens valid for 5 minutes
    • Session regeneration after successful login
  • Upgraded proxy-addr to 2.0.8 to fix an IP spoofing vulnerability.
  • Removed unused electron-rebuild dependency to fix a tar vulnerability.
  • Removed unused request dependency.
  • Fixed async routes being incorrectly wrapped in transactions, including sync and import endpoints.

Dependencies and Runtime

  • Upgraded the build environment to Node.js 24.14.1.
  • Upgraded Electron to 45.0.0 and better-sqlite3 to 13.0.3.
  • Upgraded major dependencies including Express, Helmet, express-rate-limit, Mermaid, KaTeX, Marked, jsdom, and Excalidraw.
  • Migrated to ESLint 9 configuration.
  • Unified server and desktop builds around a shared N-API better-sqlite3 build.

Features and Improvements

  • Added support for and correct loading of Excalidraw 0.18.
  • Improved Excalidraw build startup speed.
  • Optimized tree expand/collapse performance by limiting depth and updating only branches that need changes.
  • Replaced the debounce dependency with a simple built-in implementation.
  • Fixed SVG image type detection compatibility.
  • Fixed Mermaid packaging issues.
  • Added /sw.js and Chrome DevTools well-known routes to reduce unnecessary 404 noise.

Build and Packaging

  • Renamed and migrated the repository to nriver/trilium-plus; updated docs, Wiki, and script links accordingly.
  • Added Linux ARM64 server packaging.
  • Added Debian .deb package support.
  • Windows releases now provide .7z only; .zip is no longer produced.
  • Pruned unused Chromium locales on Linux, macOS, and Windows to reduce package size.
  • Reduced server and desktop package sizes and made builds fail immediately on errors.
  • Added Node/Electron download caching and Webpack caching.
  • Made build scripts work in non-interactive shells and standardized release build timestamps to UTC.

Upgrade Notes

  • Node.js 24 is recommended for building from source.
  • Windows users should download the .7z release package.
  • The repository has moved to https://github.com/nriver/trilium-plus.
  • Database and sync protocol versions are unchanged in this range; a normal in-place upgrade should work.

Trilium Plus 0.64.0 发行说明

变更范围:v0.63.7 (51939b1) → 0ce0f9d,共 49 个提交。
版本号:0.63.7 → 0.64.0,应用版本显示为 0.64.0 Plus。

重点更新

安全加固

  • 同步认证增加防暴力破解与防重放保护:
    • 同步登录接口限制失败次数(15 分钟内最多 10 次)
    • 使用常量时间比较认证哈希
    • 登录令牌 5 分钟内仅可使用一次
    • 登录成功后重新生成会话
  • 升级 proxy-addr 至 2.0.8,修复 IP 伪造漏洞。
  • 移除未使用的 electron-rebuild,修复 tar 相关漏洞。
  • 移除未使用的 request 依赖。
  • 修复异步路由被事务包裹的问题,涉及同步、导入等接口。

依赖与运行时升级

  • Node.js 构建环境升级至 24.14.1。
  • Electron 升级至 45.0.0,better-sqlite3 升级至 13.0.3。
  • 升级 Express、Helmet、express-rate-limit、Mermaid、KaTeX、Marked、jsdom、Excalidraw 等主要依赖。
  • ESLint 迁移至 9.x 配置。
  • 服务端与桌面端统一使用共享的 N-API better-sqlite3 构建。

功能与体验优化

  • 支持并正确加载 Excalidraw 0.18。
  • 优化 Excalidraw 构建启动速度。
  • 优化笔记树展开/折叠性能,限制展开深度并仅更新需要变更的分支。
  • 使用内置简单防抖实现替代 debounce 依赖。
  • 修复 SVG 图片类型检测兼容问题。
  • 修复 Mermaid 打包问题。
  • 增加 /sw.js 和 Chrome DevTools well-known 路由,减少无意义的 404 日志。

构建与发布

  • 仓库迁移并更新为 nriver/trilium-plus,同步更新文档、Wiki 与脚本链接。
  • 新增 Linux ARM64 服务端打包。
  • 新增 Debian .deb 安装包。
  • Windows 发布包改为仅提供 .7z,不再提供 .zip。
  • 裁剪 Linux、macOS、Windows 的 Chromium 多语言资源,减小安装包体积。
  • 优化服务端与桌面端包体积,构建失败时立即中断。
  • 增加 Node/Electron 下载缓存与 Webpack 缓存。
  • 构建脚本支持非交互式 Shell,发布构建时间统一使用 UTC。

升级提示

  • 源码构建推荐使用 Node.js 24。
  • Windows 用户请下载 .7z 发布包。
  • 仓库地址已变更为 https://github.com/nriver/trilium-plus。
  • 本次范围未变更数据库版本与同步协议版本,正常升级即可。