npm / @portabletext/block-tools
@portabletext/block-tools
What changed in @portabletext/block-tools 2 to 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-13.
5 breaking1 new APIs and options2 behavior and defaults3 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@portabletext/block-tools 63 changes
Breaking changes 3
The legacy main field is removed; tooling that predates exports support can no longer resolve the package through this field.
The legacy module field is removed; tooling that predates exports support can no longer resolve the package through this field.
Node.js 22.12 or later is now required; Node.js 20 is no longer supported.
@portabletext/block-tools 57 changes
Breaking changes 1
Sanity Studio dependencies are now required to be v5.
New APIs and options 1
@portabletext/block-tools/rules now re-exports createTableRule from @portabletext/html for converting <table> HTML into a nested table shape.
Behavior and default changes 2
Packages now declare a module entry point alongside main, allowing older bundlers to select the ESM build instead of falling back to main.
Deserialization now uses @portabletext/html as its engine.
Fixes and other changes 3
Word paste now parses @list CSS definitions to distinguish bullet lists from numbered lists, instead of treating the arbitrary lfo reference number as the list type.
Preserves a space inside an inline span when the text node is its sole child, instead of dropping it.
Treats orphan
<li>elements without a<ul>or<ol>parent as bullet list items instead of dropping them.
@portabletext/block-tools 21 changes
Breaking changes 1
Requires Sanity Studio v4.