Skip to content

Releases: poppinss/youch

Bug fixes and support for rendering request properties as metadata

13 Dec 10:40
Compare
Choose a tag to compare

Bug Fixes

  • apply transformers, parsers and source loader to the Error parser (05d0612)

Features

  • add shorthand option for display request props as metadata (227391b)

Full Changelog: v4.1.0-beta.2...v4.1.0-beta.3

Add toJSON method

23 Nov 03:29
Compare
Choose a tag to compare
Add toJSON method Pre-release
Pre-release

Features

Full Changelog: v4.1.0-beta.1...v4.1.0-beta.2

Add console printer and rename methods

22 Nov 03:10
Compare
Choose a tag to compare
Pre-release

In this release, we have renamed the render method to toHTML and introduced toANSI method that returns the ANSI output for terminals

Bug Fixes

Features

Full Changelog: v4.1.0-beta.0...v4.1.0-beta.1

Add cheviron icon and support for CSP nonce

17 Nov 01:18
Compare
Choose a tag to compare

Features

  • add cheviron to expandable frames and support for csp nonce (a9555d2)

Full Changelog: v4.0.0-beta.0...v4.1.0-beta.0

Release 4.0.0-beta.0

16 Nov 14:58
Compare
Choose a tag to compare
Release 4.0.0-beta.0 Pre-release
Pre-release

Bug Fixes

  • add codeContext property to types (#43) (b701a9f)
  • attempt to activate the first app frame (2fdcded), closes #48
  • detect node modules frames (#47) (a9a115d)
  • frames not being filtered on page load (7cd625f)
  • normalize all frame filePath to posix format (#46) (cd66012)
  • Preview width if stack rows are too wide (#54) (8e5de76)
  • type toHTML method argument (#51) (bef2df8)
  • types (206c3b0)
  • update types (7e7c292)
  • upgrade mustache from 4.0.1 to 4.1.0 (#32) (9125e8a)
  • upgrade mustache from 4.1.0 to 4.2.0 (#34) (2352b26)

Features

  • add support for CSP nonce (1426562)
  • add support for ESM paths (9f69010), closes #40
  • add support to toggleShowAllFrames checkbox (7f9b5dc), closes #39
  • finialize for first beta release (3341232)
  • first working version after rewrite (5e0244c)
  • serialize error cause and help properties (1254c6c)

What's Changed

New Contributors

Full Changelog: v2.0.10...v4.0.0-beta.0

Add support for helpful links

29 Sep 15:59
Compare
Choose a tag to compare

Helpful links is a way for users to search for the error on the websites where they can find helpful information.

Usually these sites can be Google or Stackoverflow. However, you can also add links to your forum or slack group or even Github search.

See it in action

youch
.addLink(({ message }) => {
  return `<a href="google.com/search?q=${message}"> Search google </a>`
})
.toHTML()

Lazy loading font awesome icons

Also, you can return the HTML with classes from font awesome brand icons. If your returned HTML is making use of the font awesome icons, then Youch will automatically load the CSS files from font awesome CDN.

youch
.addLink(({ message }) => {
  return `<a href="google.com/search?q=${message}"><i class="fab fa-google"></i></a>`
})
.toHTML()