Skip to content

fix(deps): update dependency @portabletext/to-html to v6 - #1907

Open
squiggler-app[bot] wants to merge 1 commit into
mainfrom
renovate/portabletext-to-html-6.x
Open

fix(deps): update dependency @portabletext/to-html to v6#1907
squiggler-app[bot] wants to merge 1 commit into
mainfrom
renovate/portabletext-to-html-6.x

Conversation

@squiggler-app

@squiggler-app squiggler-app Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@portabletext/to-html ^5.0.3^6.0.0 age confidence

Release Notes

portabletext/to-html (@​portabletext/to-html)

v6.0.0

Compare Source

Major Changes
  • #​220 3e429a5 Thanks @​rexxars! - Node.js 22.12 or later is now required

    The previous range also allowed Node.js 20.19 and later. Node.js 20 reached end of life in April 2026, so it is no longer supported here.

    If you render on Node.js 20, upgrade to 22.12 or later before taking this version. Installing on an older release will fail the engines check. Nothing changes for browsers or for bundled output.

  • #​220 3e429a5 Thanks @​rexxars! - Lists now nest as deeply as their level says they do

When you will see a difference

Only when your content has a list item that starts deeper than level 1, or that jumps more than one level at a time, such as going straight from level 1 to level 3. Lists that start at level 1 and change one level at a time render exactly as before.

Portable Text stores list nesting as a flat level number on each block, and an editor lets an author produce both of those shapes. Previously the rendered nesting could be shallower than level said, and an item returning to a shallower level could start a new list instead of continuing the one it belonged to, which restarts the numbering of an <ol>.

What changes

Two list items, the first at level 3 and the second at level 1, used to render as two unrelated lists:

<ul>
  <li>Level 3</li>
</ul>
<ul>
  <li>Level 1</li>
</ul>

They now render as one list, three levels deep, with the second item as a sibling at the top:

<ul>
  <li>
    <ul>
      <li>
        <ul>
          <li>Level 3</li>
        </ul>
      </li>
    </ul>
  </li>
  <li>Level 1</li>
</ul>

The levels nobody authored have to be filled with something, and HTML can only put a list inside a list item, so they become empty list items. A browser draws a bullet or a number for each of them.

What you may need to do

Snapshot tests and any stored HTML covering lists that start deep or skip levels will need regenerating.

If the empty markers are visible somewhere you do not want them, the durable fix is the content itself, since a list skipping from level 1 to level 3 usually means an authoring mistake. To hide them in the meantime, target list items whose only child is a nested list:

li:has(> ul:only-child),
li:has(> ol:only-child) {
  list-style: none;
}

Note that in an <ol> this hides the number but the item still counts, so the numbering of the items after it is unchanged.

Fixes #​108


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate using a curated preset maintained by Sanity. View repository job log here

@squiggler-app
squiggler-app Bot requested a review from a team as a code owner August 13, 2026 09:52
@squiggler-app
squiggler-app Bot requested review from bjoerge and removed request for a team August 13, 2026 09:52
@squiggler-app
squiggler-app Bot enabled auto-merge (squash) August 13, 2026 09:52
@vercel

vercel Bot commented Aug 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
plugins-studio Error Error Aug 21, 2026 6:15pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plugins-e2e-test-studio Ignored Ignored Aug 21, 2026 6:15pm

Request Review

@changeset-bot

changeset-bot Bot commented Aug 13, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 23487f2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

github-actions Bot commented Aug 13, 2026

Copy link
Copy Markdown

✅ E2E Tests

🟢 26 passedview full reportview run

Studio: https://plugins-e2e-test-studio-6ragxgel3.sanity.dev

Datasets: pr-1907-chromium-32471677776, pr-1907-firefox-32471677776

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 061ef65. Configure here.

Comment thread pnpm-workspace.yaml
Comment thread pnpm-workspace.yaml
bjoerge
bjoerge previously approved these changes Aug 13, 2026
@squiggler-app
squiggler-app Bot force-pushed the renovate/portabletext-to-html-6.x branch from 061ef65 to c9d212d Compare August 17, 2026 20:15
@squiggler-app
squiggler-app Bot force-pushed the renovate/portabletext-to-html-6.x branch from c9d212d to 8053cfd Compare August 18, 2026 09:54
@squiggler-app
squiggler-app Bot force-pushed the renovate/portabletext-to-html-6.x branch from 8053cfd to e3b04cd Compare August 18, 2026 10:01
@squiggler-app
squiggler-app Bot force-pushed the renovate/portabletext-to-html-6.x branch from e3b04cd to e679c40 Compare August 18, 2026 10:23
@squiggler-app
squiggler-app Bot force-pushed the renovate/portabletext-to-html-6.x branch from e679c40 to cde7f70 Compare August 18, 2026 18:17
@squiggler-app
squiggler-app Bot force-pushed the renovate/portabletext-to-html-6.x branch from cde7f70 to 9b79190 Compare August 18, 2026 20:12
@squiggler-app
squiggler-app Bot force-pushed the renovate/portabletext-to-html-6.x branch from 9b79190 to 52eefad Compare August 18, 2026 21:23
@squiggler-app
squiggler-app Bot force-pushed the renovate/portabletext-to-html-6.x branch from 52eefad to 98bfe03 Compare August 19, 2026 09:51
@squiggler-app
squiggler-app Bot force-pushed the renovate/portabletext-to-html-6.x branch from 98bfe03 to fd3f9e3 Compare August 20, 2026 09:20
@squiggler-app
squiggler-app Bot force-pushed the renovate/portabletext-to-html-6.x branch from fd3f9e3 to 56d88c5 Compare August 20, 2026 12:08
@squiggler-app
squiggler-app Bot force-pushed the renovate/portabletext-to-html-6.x branch from 56d88c5 to 6184ff9 Compare August 20, 2026 12:15
@squiggler-app
squiggler-app Bot force-pushed the renovate/portabletext-to-html-6.x branch from 6184ff9 to d014c94 Compare August 20, 2026 12:25
@squiggler-app
squiggler-app Bot force-pushed the renovate/portabletext-to-html-6.x branch from d014c94 to d83c40d Compare August 20, 2026 14:18
@squiggler-app
squiggler-app Bot force-pushed the renovate/portabletext-to-html-6.x branch from d83c40d to f1b5df9 Compare August 20, 2026 16:13
@socket-security

socket-security Bot commented Aug 20, 2026

Copy link
Copy Markdown

bjoerge
bjoerge previously approved these changes Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant