Migrating to Root.js v4
Root.js v4 enables several features by default that were opt-in in v3, removes the legacy EditorJS rich text editor, and updates the CMS UI branding. Most projects only need to bump their package versions, though you should check the sections below if you relied on any of the old defaults.
Upgrade with an AI agent
A coding agent like Claude Code can handle the upgrade for you. Start it in your project directory on a clean git checkout and paste this prompt:
Upgrade this project to Root.js v4. Follow the instructions at
https://rootjs.dev/skills/root-v4-upgrade.md
Or launch Claude Code with the prompt in a single command: claude "Upgrade this project to Root.js v4. Follow https://rootjs.dev/skills/root-v4-upgrade.md"
The agent works on a new branch, committing one step at a time. It snapshots your pages before making changes, updates the packages, and offers optional cleanups like moving CMS routes to createRoute(), secrets to root secrets, and CMS reads to batch requests (applying only the ones you approve). Afterward, it diffs your pages before and after, runs your build and tests, and offers to open GitHub issues for anything that remains.
Translations
The v1 translations system is still the default, so you don't need to migrate existing translations. The v2 translations manager remains opt-in while experimental; if you have experiments: {v2TranslationsManager: true}, keep it. To try it out, see Translations manager v2.
Dependency graph
The dependency graph (which tracks references between docs) is now enabled by default. If you had dependencyGraph: true in your config, you can remove it.
Both the dependency graph and global search are updated by the CMS cron job. If you haven't configured one yet, see scheduled jobs.
To opt out:
cmsPlugin({
dependencyGraph: false,
});
Module preloading
Root.js now emits <link rel="modulepreload"> tags for shared JS chunks imported by a page's scripts so browsers can fetch them in parallel. You'll see these tags in your rendered HTML; if you already had modulePreload: true, you can remove it.
To opt out:
// @/root.config.ts
import {defineConfig} from '@blinkk/root';
export default defineConfig({
modulePreload: false,
});
Task manager
The task manager is now enabled by default with a Tasks page in the CMS sidebar, and it no longer appears on the CMS home page. If you had experiments: {taskManager: true}, you can remove it.
To hide it:
cmsPlugin({
experiments: {taskManager: false},
});
EditorJS removed
The legacy EditorJS-based rich text editor has been removed in favor of the Lexical-based editor. Both store rich text in the same underlying format, so existing content doesn't need any migration.
Other issues
Hit an issue that isn't covered here? Open an issue on GitHub.