Skip to content

v3.1.0

Choose a tag to compare

@github-actions github-actions released this 13 Sep 02:40

Added

  • Formatting: add indentWidth for controlling generated structural indentation. (#291)
  • Formatting: add multilineTable and multilineArray for controlling generated inline container layout. (#298)
  • Build: Ship a separate unbundled, unminified development build with source maps, published under the dev npm dist-tag for debugging and downstream tree-shaking.

Fixed

  • Formatting: align generated multiline inline tables and arrays with the key that owns them, so their rows and closing brackets stay in the key's column. (#298)
  • Patching: preserve the multiline layout of a nested inline array or table when its last element is removed, instead of collapsing the emptied container to one line. (#303)
  • Patching: preserve indentation for inline and nested elements, including nested multiline inline tables and arrays and mixed tab and space indentation. (#291)
  • Patching: preserve comment associations on surviving groups and entries when inserting or removing nested inline elements, including trailing comments after closing delimiters. (#303)
  • Patching: preserve whitespace around dots in dotted-keys and dotted-table titles. (#297)

Full Changelog: v3.0.5...v3.1.0


Version specific links

Registry Link
npm https://www.npmjs.com/package/@decimalturn/toml-patch/v/3.1.0
jsr https://jsr.io/@decimalturn/toml-patch@3.1.0