Skip to content

Latest commit

 

History

History
171 lines (90 loc) · 9.06 KB

File metadata and controls

171 lines (90 loc) · 9.06 KB

@portabletext/toolkit

6.0.0

Major Changes

  • #171 c561739 Thanks @rexxars! - Require Node.js 22.12 or later, and drop the legacy main and module fields

    The package has been ESM-only for a while, but still carried main and module entry points for resolvers that predate exports. Those are gone, so the package resolves through exports only.

  • #171 c561739 Thanks @rexxars! - nestLists() now nests every list as deeply as its level says it is

    List items can start at a level deeper than 1, and can skip any number of levels at a time. nestLists() previously ignored both, so a level 3 item could end up as a list nested only one level deep, and items that later returned to a shallower level could fail to rejoin the list they belonged to and be emitted as a separate sibling list instead.

    The levels that were never authored are now generated, so nesting depth always matches level. A generated list holds an empty list item in html mode, since HTML can only nest a list inside a list item, and holds nothing but the deeper list in direct mode.

    This changes the output of nestLists() for any input where a list starts deeper than level 1 or skips a level, and therefore changes the rendered output of anything built on it.

5.0.2

Patch Changes

5.0.1

Patch Changes

5.0.0

Major Changes

4.0.0

Major Changes

3.0.1

Patch Changes

3.0.0

Major Changes

Patch Changes

2.0.18

Patch Changes

2.0.17 (2025-02-06)

Bug Fixes

  • guard against markDefs being null (#92) (1f1644a)
  • typeError: Marking markDefs as optional to resolve TS error when markDefs array is missing (#96) (eedd7c7)

2.0.16 (2024-11-02)

Bug Fixes

  • prevent double spaces in toPlainText when span follows non-span (#93) (43b963f)

2.0.15 (2024-04-11)

Bug Fixes

  • deps: update dependency @portabletext/types to ^2.0.13 (#85) (e5a0247)

2.0.14 (2024-04-05)

Bug Fixes

  • deps: update dependency @portabletext/types to ^2.0.12 (#78) (eaaa9a1)

2.0.13 (2024-03-20)

Bug Fixes

  • deps: update dependency @portabletext/types to ^2.0.11 (#73) (e85b103)

2.0.12 (2024-03-18)

Bug Fixes

  • deps: update dependency @portabletext/types to ^2.0.10 (#70) (2b8e7f6)

2.0.11 (2024-03-16)

Bug Fixes

  • deps: update dependency @portabletext/types to ^2.0.9 (#65) (83c5700)

2.0.10 (2023-10-10)

Bug Fixes

  • deps: update dependency @portabletext/types to ^2.0.8 (#48) (36cdd6f)

2.0.9 (2023-09-28)

Bug Fixes

  • deps: update dependency @portabletext/types to ^2.0.7 (#40) (16f8ee7)

2.0.8 (2023-08-23)

Bug Fixes

  • deps: update dependency @portabletext/types to ^2.0.6 (#35) (0eadb67)

2.0.7 (2023-08-23)

Bug Fixes

2.0.6 (2023-08-23)

Bug Fixes

  • isPortableTextBlock not accounting for markDefs: undefined (#25) (db076c8)

2.0.5 (2023-08-23)

Bug Fixes

  • add node.module condition (1b369ba)

2.0.4 (2023-06-26)

Bug Fixes

2.0.3 (2023-06-26)

Bug Fixes

  • refactor to type: module (1dc6579)

2.0.2 (2023-06-23)

Bug Fixes

  • remove ESM wrapper (not needed) (be72cb2)