# What changed in @portabletext/block-tools

> 11 changes in @portabletext/block-tools 2 to 6 from its official release notes, upgrade guides and advisories: 5 breaking, 1 new APIs and options. Each one cited. Sources checked 2026-11-13. HTML: https://unstale.sh/npm/@portabletext/block-tools/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @portabletext/block-tools 6

### Breaking changes

- The legacy main field is removed; tooling that predates exports support can no longer resolve the package through this field. (6.0.0) — [release notes](https://github.com/portabletext/editor/releases/tag/%40portabletext/block-tools%406.0.0)
- The legacy module field is removed; tooling that predates exports support can no longer resolve the package through this field. (6.0.0) — [release notes](https://github.com/portabletext/editor/releases/tag/%40portabletext/block-tools%406.0.0)
- Node.js 22.12 or later is now required; Node.js 20 is no longer supported. (6.0.0) — [release notes](https://github.com/portabletext/editor/releases/tag/%40portabletext/block-tools%406.0.0)

## @portabletext/block-tools 5

### Breaking changes

- Sanity Studio dependencies are now required to be v5. (5.0.0) — [release notes](https://github.com/portabletext/editor/releases/tag/%40portabletext/block-tools%405.0.0)

### New APIs and options

- @portabletext/block-tools/rules now re-exports createTableRule from @portabletext/html for converting <table> HTML into a nested table shape. (5.2.0) — [release notes](https://github.com/portabletext/editor/releases/tag/%40portabletext/block-tools%405.2.0)

### Behavior and default changes

- 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.13) — [release notes](https://github.com/portabletext/editor/releases/tag/%40portabletext/block-tools%405.1.13)
- Deserialization now uses @portabletext/html as its engine. (5.1.0) — [release notes](https://github.com/portabletext/editor/releases/tag/%40portabletext/block-tools%405.1.0)

### Fixes and other changes

- 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.5) — [release notes](https://github.com/portabletext/editor/releases/tag/%40portabletext/block-tools%405.0.5)
- Preserves a space inside an inline span when the text node is its sole child, instead of dropping it. (5.0.3) — [release notes](https://github.com/portabletext/editor/releases/tag/%40portabletext/block-tools%405.0.3)
- Treats orphan `<li>` elements without a `<ul>` or `<ol>` parent as bullet list items instead of dropping them. (5.0.3) — [release notes](https://github.com/portabletext/editor/releases/tag/%40portabletext/block-tools%405.0.3)

## @portabletext/block-tools 2

### Breaking changes

- Requires Sanity Studio v4. (2.0.0) — [release notes](https://github.com/portabletext/editor/blob/HEAD/packages/block-tools/CHANGELOG.md)
