github owenlamont/ryl v0.26.1

3 hours ago

Added

  • ryl builds on its own YAML parser, published as the ryl-yaml-parser crate.
    (#816)

Changed

  • ryl format is faster than yamlfmt, dprint and Prettier at every benchmarked size
    and file count from 4 KiB, tying yamlfmt on a single 1 KiB file. (#787)
  • ryl check streams its output and writes formatted files as it goes, so memory no
    longer grows with the number of files (218 MB to 22 MB at 20,000 files).
    (#831)
  • ryl format parses each file once: it no longer parses its output again to compare
    values or plans it again to confirm convergence, which rule order now guarantees.
    (#842)

Fixed

  • ryl format moves a blank-only block scalar body with its collection, so its value
    no longer changes when the collection shifts, and formats such scalars with an
    explicit indentation indicator instead of leaving the file unchanged.
    (#849)
  • The comments-indentation rule, and the formatter, no longer read a trailing comment
    on a multi-line scalar's last line, or an empty block scalar's header line, as other
    than content, matching yamllint; a folded scalar no longer moves the comments after it
    on a second format.
  • ryl format settles in one run, where it took two, for '---' : x (now ---: x), the
    spaces-only lines of a blank keep-chomped body under - key:, and a dash it moves onto
    its own line after an explicit : or in a file with a byte order mark.
  • ryl format no longer aligns a comment with a --- or ... line, which it may add,
    so a comment after a block scalar keeps its column when document-end = 'add' adds a
    marker below it.
  • ryl format re-indents a document whose only tab follows an indicator that it respaces,
    and no longer reports one it did re-indent where folding starts a line with - and a
    tab.
  • ryl check --fix keeps an indentation repair when key-ordering also reorders the
    file, instead of leaving the file unchanged and reporting the indentation as a syntax
    error.
  • ryl format re-indents a block sequence holding a bare - item, such as a sequence
    flush with its key whose first item is empty, instead of refusing the document.
    (#836)
  • The indentation rule no longer reports a sequence item after a nested sequence
    ending in a bare - as wrongly indented, under every indent-sequences setting.
    (#836)
  • ryl format keeps a keep-chomped block scalar's final spaces-only line when
    re-indenting empties that line, as at indent width 1, so the scalar keeps its final
    empty line.
  • Root strings resembling document markers and scalars containing a BOM keep their
    quotes in formatting and lint fixes.
    (#806)
  • Migration warnings name the required ryl version, quote config paths, and remove
    legacy project YAML configs; --migrate-configs also converts TOML yaml-files to
    [files].yaml. (#789)

Don't miss a new ryl release

NewReleases is sending notifications on new releases.