Skip to content

chore(components): upgrade and lock tiptap dependencies to 3.17.1#314

Open
SonyLeo wants to merge 3 commits intoopentiny:developfrom
SonyLeo:chore/lock-tiptap-version
Open

chore(components): upgrade and lock tiptap dependencies to 3.17.1#314
SonyLeo wants to merge 3 commits intoopentiny:developfrom
SonyLeo:chore/lock-tiptap-version

Conversation

@SonyLeo
Copy link
Collaborator

@SonyLeo SonyLeo commented Mar 17, 2026

背景

修复 Sender 相关 Tiptap 依赖在干净环境和 CI 中漂移到较新版本后导致的构建异常

问题说明

Sender 依赖 Tiptap 相关包。此前依赖使用范围版本,干净安装环境在未固定锁文件的情况下可能解析到较新的 3.20.x 版本,进而出现:

  • vue-tscCannot find module '@tiptap/...'
  • 安装阶段出现 Tiptap peer dependency warning
warning
  • 本地已有缓存环境可构建,但 CI / 干净环境失败,行为不一致

变更内容

  • 在 packages/components/package.json 中将 Sender 相关 Tiptap 依赖统一固定到 3.17.1
  • 补齐 @tiptap/extensions、@tiptap/extension-bubble-menu、@tiptap/extension-floating-menu 版本对齐,避免安装阶段依赖树漂移和 peer warning
  • 提高本地、CI、下游用户安装结果的一致性

影响范围

  • 影响组件包安装时的 Tiptap 依赖解析结果
  • 不会显著增加组件构建产物体积
    原因:@tiptap/* 已在构建配置中作为 external 处理,不会被打进组件 dist

验证方式

已重点验证以下场景:

  • 干净环境重新安装依赖后,Tiptap 不再漂移到异常版本
  • Sender 相关构建可通过
  • 安装阶段不再出现之前的 Tiptap peer dependency warning

Summary by CodeRabbit

  • New Features
    • Added bubble menu support for enhanced text editing capabilities
    • Added floating menu support for improved text editor interactions
    • Updated text editor with latest improvements and stability enhancements
  • Chores
    • Upgraded underlying rich-text editor libraries to v3.17.1 for improved stability and maintenance

@coderabbitai
Copy link

coderabbitai bot commented Mar 17, 2026

Walkthrough

The pull request pins TipTap-related dependencies in packages/components/package.json, replacing caret ^3.11.0 entries with exact 3.17.1 versions, adds @tiptap/extensions (3.17.1), and introduces optionalDependencies for @tiptap/extension-bubble-menu and @tiptap/extension-floating-menu. No other code or public APIs were changed.

Changes

Cohort / File(s) Summary
TipTap dependency updates
packages/components/package.json
Replaced flexible ^3.11.0 specs with exact 3.17.1 for @tiptap/core, @tiptap/vue-3, @tiptap/pm, @tiptap/extensions, and extension packages (document, paragraph, text, history, placeholder, character-count). Added optionalDependencies: @tiptap/extension-bubble-menu and @tiptap/extension-floating-menu at 3.17.1. No other files or public APIs changed.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 TipTap pins snug and neat,
Versions set on a careful beat,
Extensions added, optional too,
I twitch my nose — the installs are new! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and accurately summarizes the main change: upgrading TipTap dependencies from ^3.11.0 to exact version 3.17.1 and locking them to prevent version drift.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@SonyLeo SonyLeo force-pushed the chore/lock-tiptap-version branch from 0f40738 to e187ba3 Compare March 17, 2026 13:40
@SonyLeo SonyLeo marked this pull request as ready for review March 17, 2026 13:44
@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

✅ Preview build completed successfully!

Click the image above to preview.
Preview will be automatically removed when this PR is closed.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
packages/components/package.json (1)

69-70: Remove unused Tiptap extensions from dependencies.

The @tiptap/extension-bubble-menu and @tiptap/extension-floating-menu packages are declared in package.json but are not imported or referenced anywhere in the codebase. The sender editor only uses Document, Paragraph, Text, History, Placeholder, and CharacterCount extensions. Removing these unused dependencies will reduce the dependency footprint.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/components/package.json` around lines 69 - 70, Remove the unused
Tiptap extension dependencies "@tiptap/extension-bubble-menu" and
"@tiptap/extension-floating-menu" from the package.json dependencies block, run
your package manager (npm/yarn/pnpm) to update the lockfile and node_modules,
and rebuild to ensure nothing else imports them; before committing, search the
codebase for references to "@tiptap/extension-bubble-menu" and
"@tiptap/extension-floating-menu" to confirm they are unused and run tests to
verify no breakage.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@packages/components/package.json`:
- Around line 62-68: Remove the unused top-level dependency "@tiptap/extensions"
from package.json (it is not imported anywhere; individual packages like
"@tiptap/extension-document", "@tiptap/extension-paragraph", etc. are used
instead) to avoid bundle bloat; also review and remove
"@tiptap/extension-bubble-menu" and "@tiptap/extension-floating-menu" from
package.json if those packages are not imported elsewhere or planned for future
use so only actively used `@tiptap/extension-`* packages remain.

---

Nitpick comments:
In `@packages/components/package.json`:
- Around line 69-70: Remove the unused Tiptap extension dependencies
"@tiptap/extension-bubble-menu" and "@tiptap/extension-floating-menu" from the
package.json dependencies block, run your package manager (npm/yarn/pnpm) to
update the lockfile and node_modules, and rebuild to ensure nothing else imports
them; before committing, search the codebase for references to
"@tiptap/extension-bubble-menu" and "@tiptap/extension-floating-menu" to confirm
they are unused and run tests to verify no breakage.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: cc61aff7-25c2-4cfb-8898-780bb33777f6

📥 Commits

Reviewing files that changed from the base of the PR and between 16fd9bf and e187ba3.

📒 Files selected for processing (1)
  • packages/components/package.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant