Skip to content

0.2.4

Choose a tag to compare

@Snowflyt Snowflyt released this 31 Oct 05:58
· 27 commits to main since this release
  • ✨ feat!: Highlight RegExp syntax when ANSI colors are enabled to align with Node.js’s util.inspect behavior since Node.js v25. (e5d604f)
  • ✨ feat!: Enclose special property keys with brackets to align with Node.js’s util.inspect behavior since Node.js v25.1. (0093fb9)
  • ✨ feat: Preserve AggregateError.errors even if showHidden is "none". (aefc383)
  • ✨ feat: Allow color styles to be functions for dynamic coloring. (9d51c56)
  • ✨ feat: Avoid formatting with backticks if a string looks like a template literal to align with Node.js’s util.inspect behavior. (9984cbe)
  • ✨ feat: Format SharedArrayBuffer the same way as ArrayBuffer. (d87218a)
  • ✨ feat: Correctly handle detached ArrayBuffers during formatting. (743c2e0)
  • ✨ feat: Respect the maxArrayLength option when displaying the bytes of ArrayBuffer’s [Uint8Contents] to align with Node.js’s util.inspect behavior. (d832859)
  • ✨ feat: Display special properties of typed arrays when showHidden is "always" to align with Node.js’s util.inspect behavior. (f3427e6)
  • 🐞 fix: When invoking the Node.js-compatible [Symbol(nodejs.util.inspect.custom)]() method, the provided options.stylize(text, styleType) now falls back to an identity function instead of throwing an error when the given styleType is not supported by our library, improving compatibility with Node.js’s util.inspect. (59d0a3c)
  • 🐞 fix: Include HTMLDDA values in isObject detection. (c0055ca)
  • 🦄 refactor: Align class name derivation with Node.js’s util.inspect. (fc34ba8)
  • 🦄 refactor: Avoid using new Function where possible. (755aef3)