Skip to content

v1.34.0

Latest

Choose a tag to compare

@thim81 thim81 released this 12 Oct 06:44

What's Changed

  • feat: add configurable YAML block scalar styles #244

YAML block styles default to preserve: original literal (|) and folded (>) styles are restored for unchanged strings
at their original paths, including bundled references. Literal blocks are not folded to fit lineWidth. Source
indentation and folded line breaks may change.

Set yamlBlockStyle in configuration or pass --yamlBlockStyle with one of these values:

  • preserve: retain original block styles (default).
  • auto: let the YAML library select styles, matching previous releases.
  • literal: prefer literal (|) blocks when emitting block strings.
  • folded: prefer folded (>) blocks when emitting block strings.

The preferred styles preserve parsed string values. Single-line strings may be emitted as plain or quoted scalars, and
strings unsuitable for block syntax may be quoted. Chomping indicators (- or +) are determined by trailing newlines.

Full Changelog: v1.33.10...v1.34.0