unstale

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

@unstale/cli on npm

@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.

    6.0.0release notes

  • The legacy module field is removed; tooling that predates exports support can no longer resolve the package through this field.

    6.0.0release notes

  • Node.js 22.12 or later is now required; Node.js 20 is no longer supported.

    6.0.0release notes

@portabletext/block-tools 57 changes

Breaking changes 1

  • Sanity Studio dependencies are now required to be v5.

    5.0.0release notes

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.

    5.2.0release notes

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.

    5.1.13release notes

  • Deserialization now uses @portabletext/html as its engine.

    5.1.0release notes

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.

    5.0.5release notes

  • Preserves a space inside an inline span when the text node is its sole child, instead of dropping it.

    5.0.3release notes

  • Treats orphan <li> elements without a <ul> or <ol> parent as bullet list items instead of dropping them.

    5.0.3release notes

@portabletext/block-tools 21 changes

Breaking changes 1