Skip to content

Preview version v0.8.0

Pre-release
Pre-release

Choose a tag to compare

@MoaidHathot MoaidHathot released this 29 Sep 23:05

New Features

  • Added an opt-in horizontal table layout (LinqPad style) that renders members as columns. Enable it globally or per dump with TableConfig.TableLayout = TableLayout.Horizontal, or per type with the new SetLayoutForType, SetLayoutForTypeAndDerived and SetLayoutWhen rules. The default layout remains vertical
  • Added TableLayoutContext and TableLayoutResult, allowing layout rules to decide based on the type, depth and container, and to override row indices, headers, member types and row separators per rule
  • Added TableConfig.ShowRowIndices, which applies to all collections. ShowArrayIndices still works but is now marked [Obsolete] and will be removed in a future version
  • MemberFilter now also applies to the columns of collections rendered in horizontal layout

Bug Fixes

  • Fixed [Failed to Render ...] Could not load type 'Spectre.Console.Color' errors when the consuming application references Spectre.Console 0.55.0 or newer (#36)
  • Objects without any members, or with all members filtered out, now render a [No members] message instead of an empty table

Miscellaneous

  • (breaking change) Updated Spectre.Console to version 0.55.2. Applications that reference an older Spectre.Console must upgrade to 0.55.2 or newer. Spectre.Console.Ansi is now a transitive dependency
  • Added a workflow for publishing pre-release versions
  • Codebase improvements and additional rendering tests

Full Changelog: 0.7.0...0.8.0