packagist kint-php/kint 2.1

latest releases: dev-master, 5.1.1, dev-pr/417...
7 years ago
  • Bugfixes
    • Missing "Inherited from" in docstrings
    • Renderers: Get return status from settings, not directly from modifiers
    • Sourceparser would explode on 5.1 and 5.2 (Since no-one brought that up it means we have pleasantly few people using those old versions)
    • Fixed a bug in certain browsers where tripleclick select all would add 4 spaces of indentation for some reason.
    • Fix bug in complex string parsing ("${var}" would add an extra indentation level, causing the var name/access path to go on until the end of the containing block)
    • Make the shorthand (d(1);) show a backtrace to the same depth as Kint::trace()
    • PHPUnit failed to check for certain error levels in certain circumstances
    • Fixed a bug in the way the trace plugin validated traces. (Let's just say it was completely wrong)
  • Added unit tests
    • Kint class
    • Kint_Parser_Trace plugin (Also used independently by helper for minitrace etc)
    • Kint_Object_Representation
    • Kint_Object
    • Kint_Object_Blob
    • And tweaks to parser, sourceparser tests
  • Representation names now contain digits when automatically transferred from labels
  • Added .gitattributes to clean up distributed archives and stop compiled files from messing up the diff view.
  • Character encodings now work slightly different
    • ASCII and UTF-8 are the only ones enabled by default now (Should be a bit of a performance boost)
    • Some investigation has lead me to believe that mb_detect_encoding only practically supports
      • ASCII
      • UTF-8
      • SJIS
      • EUC-JP
    • Windows-1252 is using some custom validation if mb_detect_encoding fails, since just about any byte is valid in 1252
    • Accordingly, the Binary plugin will always trigger if the string is not UTF-8 or ASCII
  • Blacklist '/' and '.' for FsPath plugin (Since those strings are likely to show up often)
  • Moved string escaping into renderers
    • Deprecates Kint_Object_Blob::escape and Kint_Renderer_Rich_Plugin::renderLockedHeader, to be removed in next major version.
  • Added Exception plugin (Shows message in bar)
  • Added DateTime plugin (Shows value in bar)
  • Added links to PHP documentation for internal functions and methods
  • Massive performance improvement to the sourceparser. The base call time of Kint was a bit slow on very large files
  • Source code is gzcompressed in the built files, then gzuncompressed and evalled at runtime. This brings the file size down to under 40kb

Don't miss a new kint release

NewReleases is sending notifications on new releases.