Releases: poppinss/youch
Releases · poppinss/youch
Add toJSON method
Add console printer and rename methods
In this release, we have renamed the render
method to toHTML
and introduced toANSI
method that returns the ANSI output for terminals
Bug Fixes
- typing issues (6bb1398)
Features
- add console printer (46dc9ca)
Full Changelog: v4.1.0-beta.0...v4.1.0-beta.1
Add cheviron icon and support for CSP nonce
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
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
- chore(deps-dev): bump standard from 12.0.1 to 13.0.2 by @dependabot-preview in #21
- chore(deps): [security] bump lodash from 4.17.11 to 4.17.14 by @dependabot-preview in #18
- chore(deps-dev): bump uglify-js from 3.4.9 to 3.6.0 by @dependabot-preview in #17
- chore(deps): bump mustache from 3.0.0 to 3.0.1 by @dependabot-preview in #16
- chore(deps-dev): bump supertest from 3.3.0 to 4.0.2 by @dependabot-preview in #15
- chore(deps): bump cookie from 0.3.1 to 0.4.0 by @dependabot-preview in #13
- chore(deps-dev): bump cz-conventional-changelog from 2.1.0 to 3.0.1 by @dependabot-preview in #22
- chore(deps-dev): bump cz-conventional-changelog from 3.0.1 to 3.0.2 by @dependabot-preview in #23
- chore(deps-dev): bump standard from 12.0.1 to 13.1.0 by @dependabot-preview in #24
- chore: add types by @henriquepw in #26
- Install @types/stack-trace by @peterp in #30
- chore(deps): bump ini from 1.3.5 to 1.3.7 by @dependabot in #31
- [Snyk] Upgrade mustache from 4.0.1 to 4.1.0 by @snyk-bot in #32
- [Snyk] Upgrade mustache from 4.1.0 to 4.2.0 by @snyk-bot in #34
- chore(deps): bump hosted-git-info from 2.8.8 to 2.8.9 by @dependabot in #36
- fix: frames not being filtered on page load by @OmgImAlexis in #41
- fix: add
codeContext
property to types by @Julien-R44 in #43 - fix: normalize all frame
filePath
to posix format by @Julien-R44 in #46 - fix: detect node modules frames by @Julien-R44 in #47
- Fix type of the argument for
toHTML
method by @yorch in #51 - Fix preview width if stack rows are too wide by @dunhamjared in #54
New Contributors
- @dependabot-preview made their first contribution in #21
- @henriquepw made their first contribution in #26
- @peterp made their first contribution in #30
- @dependabot made their first contribution in #31
- @snyk-bot made their first contribution in #32
- @OmgImAlexis made their first contribution in #41
- @Julien-R44 made their first contribution in #43
- @yorch made their first contribution in #51
- @dunhamjared made their first contribution in #54
Full Changelog: v2.0.10...v4.0.0-beta.0
Add support for helpful links
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()