Release Notes - v0.8.12
🎉 新版本亮点 / Highlights
本次更新修复了 v0.8.11 安装后启动崩溃的问题(#419),同时大幅精简依赖体积,移除了约 100MB 的非核心依赖,并清理了无效的代理禁用代码。
This release fixes the startup crash after v0.8.11 installation (#419), significantly reduces dependency size by removing ~100MB of non-core dependencies, and removes ineffective proxy bypass code.
🐛 修复 / Fixes
- 修复 v0.8.11 安装后启动崩溃 / Fix startup crash after v0.8.11 installation (#419)
v0.8.11 将mammoth和pdf-parse从dependencies移至optionalDependencies,但代码中仍使用静态import,导致模块加载阶段立即报错Cannot find module 'mammoth',插件无法启动。现已改为动态import+ 优雅降级:缺失时打印警告并跳过,不影响核心功能。
v0.8.11 movedmammothandpdf-parsefromdependenciestooptionalDependencies, but the code still used staticimport, causing immediateCannot find module 'mammoth'error at module load time. Now uses dynamicimportwith graceful degradation: prints a warning and skips when missing, without affecting core functionality.
📦 依赖优化 / Dependency Optimization
- 移除大体积非核心依赖 / Remove large non-core dependencies
将pdf-parse(~21MB)、fluent-ffmpeg(~12MB)、@ffmpeg-installer/ffmpeg(~70MB)、@ffprobe-installer/ffprobe从optionalDependencies中移除。这些包均已改为动态import,缺失时优雅降级,需要时用户可手动安装。仅保留mammoth(~2MB)在optionalDependencies中。
Removedpdf-parse(~21MB),fluent-ffmpeg(~12MB),@ffmpeg-installer/ffmpeg(~70MB),@ffprobe-installer/ffprobefromoptionalDependencies. All packages now use dynamicimportwith graceful degradation. Users can manually install them when needed. Onlymammoth(~2MB) remains inoptionalDependencies.
🧹 代码清理 / Code Cleanup
- 移除无效的代理禁用代码 / Remove ineffective proxy bypass code
经源码分析,dingtalk-streamSDK 的 WebSocket 连接使用ws库直接建立,不经过 axios 也不受axios.defaults.proxy影响。之前在connection.ts中设置axios.defaults.proxy = false以及http-client.ts中的proxy: getProxyConfig()对 WebSocket 连接无效。现已移除src/utils/proxy-config.ts模块及所有相关代理配置代码。
Source code analysis revealed thatdingtalk-streamSDK's WebSocket connection uses thewslibrary directly, bypassing axios entirely. The previousaxios.defaults.proxy = falseinconnection.tsandproxy: getProxyConfig()inhttp-client.tshad no effect on WebSocket connections. Removedsrc/utils/proxy-config.tsmodule and all related proxy configuration code.
📥 安装升级 / Installation & Upgrade
# 通过 npm 安装最新版本 / Install latest version via npm
openclaw plugins install @dingtalk-real-ai/dingtalk-connector
# 或升级现有版本 / Or upgrade existing version
openclaw plugins update dingtalk-connector
# 通过 Git 安装 / Install via Git
openclaw plugins install https://github.com/DingTalk-Real-AI/dingtalk-openclaw-connector.git可选依赖手动安装 / Optional Dependencies
# Word 文档解析(自动安装,~2MB)
# mammoth is auto-installed as optionalDependency
# PDF 文档解析(需手动安装)
npm install pdf-parse
# 视频/音频转码(需手动安装)
npm install fluent-ffmpeg @ffmpeg-installer/ffmpeg @ffprobe-installer/ffprobe🔗 相关链接 / Related Links
发布日期 / Release Date:2026-04-01
版本号 / Version:v0.8.12
兼容性 / Compatibility:OpenClaw Gateway 0.4.0+