Skip to content

Add support for collapsing values

Compare
Choose a tag to compare
@github-actions github-actions released this 08 Sep 07:02
· 5 commits to 1.x since this release

Collapsing values allows to not inspect values when their constructor name matches one of the pre-defined names. This is helpful to not pollute the output with nested objects and arrays, who properties inspection isn't needed most of the times. For example: There is no need to inspect Luxon DateTime objects or JavaScript Date objects. We know what API these values hold and hence they can collpased.

Features

  • add more color tokens and print collpase token (67727de)
  • add support for collpasing value by constructor name (88c19e6)

Full Changelog: v0.3.0...v0.4.0