chore(deps): update dependency @portabletext/vue to v2 - #1535
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update dependency @portabletext/vue to v2#1535renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
✅ Deploy Preview for nuxt-sanity-module ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^1.0.14→^2.0.0Release Notes
portabletext/vue-portabletext (@portabletext/vue)
v2.0.0Compare Source
Major Changes
83e4a39Thanks @rexxars! - The package is now ESM only, and requires Node.js 22.12 or laterWhen you will see a difference
Only if you load this package with
require(), or build on Node.js 20 or earlier. If you alreadyimportit, or use a bundler, nothing changes.What changes
The package no longer ships a CommonJS build.
require("@portabletext/vue")will fail, where before it resolved todist/vue-portable-text.cjs. Useimportinstead, or a dynamicawait import()from a CommonJS file.This brings the package in line with the rest of the Portable Text packages, which are already ESM only.
Node.js 20 reached end of life in April 2026. The package previously declared no
enginesrange at all, so nothing was enforced.83e4a39Thanks @rexxars! - Lists now nest as deeply as theirlevelsays they doWhen 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
levelnumber on each block, and an editor lets an author produce both of those shapes. Previously the rendered nesting could be shallower thanlevelsaid, 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:
They now render as one list, three levels deep, with the second item as a sibling at the top:
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
Tests covering lists that start deep or skip levels will need updating.
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:
Note that in an
<ol>this hides the number but the item still counts, so the numbering of the items after it is unchanged.Configuration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.