Skip to content

v8.0.2

Latest

Choose a tag to compare

@ecoscript ecoscript released this 26 Nov 16:13
0a0f218

Patch Changes

  • #366 9fc401e Thanks @stipsan! - Render faster, on the first render and when value changes

    • Styled list items (a list item with a style other than normal) are rendered once instead of twice. Deeply nested styled lists used to double their work at every level. Missing components inside them are now reported once instead of twice.
    • Blocks made only of unmarked text skip building a marks tree.
    • In client components, blocks that are the same object at the same position as in the previous render are not rendered again. This is the same assumption React makes for props: change a block by passing a new object, not by mutating it in place. Blocks with missing components still render, and report them, on every render. Passing a new components object or onMissingComponent function on every render still re-renders every block.
  • #363 48eb5d8 Thanks @christianhg! - fix: list react in the npm keywords of @portabletext/react

    npm search and keyword filters now find it under react.

  • #364 f32dff7 Thanks @stipsan! - The default link mark now only renders an <a> for safe hrefs (http, https, mailto, tel, #, / and relative URLs). Links with any other protocol, such as javascript:, data: or vbscript:, render their children as plain text. The uriLooksSafe check comes from @portabletext/toolkit 6.1.0.