chore: refresh the root lockfile and pin the tiptap family

Merged
SA
3mo ago
+412-370

Follow-up to #6545. Regenerating the root lockfile was the alternative fix considered there for the pruned-build failure; it was kept out of the deploy fix so the dependency churn could be reviewed on its own. This is that review.

What changes

A fresh resolve moves 59 transitive packages to current versions — ai 5.0.220 → 5.0.236, undici, esbuild, electron-to-chromium, nanoid, semver, caniuse-lite and friends. No direct dependency in any package.json changes.

The bug it surfaced

The desktop editor suite stopped loading:

SyntaxError: Export named 'getPreviousBlockSibling' not found in module @tiptap/core/dist/index.js

@tiptap/core and @tiptap/starter-kit are pinned at 3.21.0, but tiptap's transitive packages (extensions, extension-list, gapcursor, dropcursor, floating-menu, list-keymap) float on ^3, and tiptap declares exact peer deps between its own packages ("@tiptap/core": "3.30.1"). The refresh floated them to 3.30.1 against a 3.21.0 core.

This mismatch already exists on main — extensions at 3.29.2 against core 3.21.0 — and works only because 3.29 didn't need the new export. Overrides now pin the family to 3.21.0, so the graph is consistent by construction instead of by luck.

Verification

result
bun run test16/16 packages, 0 fail
desktop suite specifically2583 pass, 0 fail — identical to main
bun run typecheck38/38
bun run lint / sherifclean

Also adds an entry to docs/cloud-sandbox-mismatches.md: a sandbox's host-service is frozen at the version baked into its image at provision, with no updater and no way for the app to push one, so every release widens a gap that eventually strands long-lived cloud workspaces. Unrelated to the lockfile, but it is the doc's purpose to collect these.


Summary by cubic

Refreshes the root lockfile and pins the @tiptap extensions to 3.21.0 to match @tiptap/core/@tiptap/starter-kit. Previously the refresh pulled @tiptap extensions to 3.30.1 against a 3.21.0 core and the desktop editor failed to load with a missing export; now the @tiptap family is consistent at 3.21.0.

Review notes

  • Re-resolves 59 transitive packages (e.g., ai 5.0.236, undici, esbuild, electron-to-chromium, nanoid, semver, caniuse-lite); no direct dependency upgrades beyond overrides.
  • Adds package.json overrides for @tiptap/extensions, @tiptap/extension-dropcursor, @tiptap/extension-floating-menu, @tiptap/extension-gapcursor, @tiptap/extension-list, and @tiptap/extension-list-keymap to 3.21.0 to satisfy exact peers.
  • Verification: all tests pass; desktop editor suite matches main; typecheck and lint clean.
  • Docs: updates docs/cloud-sandbox-mismatches.md to note frozen sandbox host-service versions; no runtime impact.

Summary by CodeRabbit

  • Documentation

    • Added guidance on sandbox host-service version compatibility, including required update paths and recovery limitations.
    • Clarified that image updates apply only to newly created sandboxes.
  • Chores

    • Standardized six TipTap package versions to 3.21.0.