npm / @portabletext/react
@portabletext/react
What changed in @portabletext/react 7 to 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
1 breaking1 new APIs and options2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@portabletext/react 83 changes
Breaking changes 1
Node.js 22.12 or later is required; installing on an older release will fail the engines check.
New APIs and options 1
Pass
listNestingMode="direct"when custom list components do not have HTML’s nesting restriction, so deeper lists nest directly inside their parent list.
Fixes and other changes 1
Lists now nest to match each block’s level, including when items start at deeper levels or skip levels.
@portabletext/react 71 changes
Fixes and other changes 1
Default Portable Text components now have proper function names for React DevTools and React Compiler coverage.