Skip to content

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

Closed
renovate[bot] wants to merge 2 commits into
mainfrom
renovate/portabletext-to-html-6.x
Closed

fix(deps): update dependency @portabletext/to-html to v6 - autoclosed#3070
renovate[bot] wants to merge 2 commits into
mainfrom
renovate/portabletext-to-html-6.x

Conversation

@renovate

@renovate renovate Bot commented Aug 12, 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
    • "every weekday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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

@changeset-bot

changeset-bot Bot commented Aug 12, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8a6e60d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 14 packages
Name Type
@portabletext/editor Patch
@portabletext/plugin-character-pair-decorator Patch
@portabletext/plugin-dnd Patch
@portabletext/plugin-emoji-picker Patch
@portabletext/plugin-input-rule Patch
@portabletext/plugin-list-index Patch
@portabletext/plugin-markdown-shortcuts Patch
@portabletext/plugin-one-line Patch
@portabletext/plugin-paste-link Patch
@portabletext/plugin-sdk-value Patch
@portabletext/plugin-table Patch
@portabletext/plugin-typeahead-picker Patch
@portabletext/plugin-typography Patch
@portabletext/toolbar Patch

Not sure what this means? Click here to learn what changesets are.

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

@vercel

vercel Bot commented Aug 12, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
portable-text-editor-documentation Ready Ready Preview Aug 14, 2026 11:10am
portable-text-example-basic Ready Ready Preview Aug 14, 2026 11:10am
portable-text-playground Ready Ready Preview Aug 14, 2026 11:10am

Request Review

@github-actions

github-actions Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

📦 Bundle Stats — @portabletext/editor

Compared against main (f5b2c7f5)

@portabletext/editor

Metric Value vs main (f5b2c7f)
Internal (raw) 807.1 KB -
Internal (gzip) 179.6 KB -
Bundled (raw) 1.42 MB -
Bundled (gzip) 348.5 KB -
Import time 98ms -0ms, -0.3%

@portabletext/editor/behaviors

Metric Value vs main (f5b2c7f)
Internal (raw) 4.2 KB -
Internal (gzip) 1.4 KB -
Bundled (raw) 3.9 KB -
Bundled (gzip) 1.3 KB -
Import time 2ms +0ms, +1.4%

@portabletext/editor/plugins

Metric Value vs main (f5b2c7f)
Internal (raw) 5.2 KB -
Internal (gzip) 1.8 KB -
Bundled (raw) 5.0 KB -
Bundled (gzip) 1.7 KB -
Import time 7ms -0ms, -0.4%

@portabletext/editor/selectors

Metric Value vs main (f5b2c7f)
Internal (raw) 96.4 KB -
Internal (gzip) 22.3 KB -
Bundled (raw) 92.5 KB -
Bundled (gzip) 21.0 KB -
Import time 8ms +0ms, +2.7%

@portabletext/editor/traversal

Metric Value vs main (f5b2c7f)
Internal (raw) 40.6 KB -
Internal (gzip) 10.6 KB -
Bundled (raw) 41.1 KB -
Bundled (gzip) 10.6 KB -
Import time 6ms +0ms, +0.5%

@portabletext/editor/utils

Metric Value vs main (f5b2c7f)
Internal (raw) 34.1 KB -
Internal (gzip) 8.7 KB -
Bundled (raw) 32.5 KB -
Bundled (gzip) 8.5 KB -
Import time 6ms -0ms, -0.8%

🗺️ . · ./behaviors · ./plugins · ./selectors · ./traversal · ./utils · Artifacts

Details
  • Import time regressions over 10% are flagged with ⚠️
  • Sizes shown as raw / gzip 🗜️. Internal bytes = own code only. Total bytes = with all dependencies. Import time = Node.js cold-start median.

📦 Bundle Stats — @portabletext/markdown

Compared against main (f5b2c7f5)

Metric Value vs main (f5b2c7f)
Internal (raw) 50.9 KB -
Internal (gzip) 11.1 KB -
Bundled (raw) 345.9 KB -
Bundled (gzip) 97.7 KB -
Import time 40ms -0ms, -0.7%

🗺️ View treemap · Artifacts

Details
  • Import time regressions over 10% are flagged with ⚠️
  • Sizes shown as raw / gzip 🗜️. Internal bytes = own code only. Total bytes = with all dependencies. Import time = Node.js cold-start median.

@socket-security

socket-security Bot commented Aug 12, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​portabletext/​to-html@​6.0.010010010096100

View full report

@renovate
renovate Bot force-pushed the renovate/portabletext-to-html-6.x branch from f8026d2 to d14f3fc Compare August 14, 2026 11:09

@christianhg christianhg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

#3072 needs to merge first

@renovate renovate Bot changed the title fix(deps): update dependency @portabletext/to-html to v6 fix(deps): update dependency @portabletext/to-html to v6 - autoclosed Aug 19, 2026
@renovate renovate Bot closed this Aug 19, 2026
@renovate
renovate Bot deleted the renovate/portabletext-to-html-6.x branch August 19, 2026 08:36
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