Version 4.0.0 (2020-01-10)
- require Node.js v12
- this change aligns with the hapi ecosystem requiring Node.js v12 with the release of hapi 19
Version 3.3.0 (2019-10-17)
- basic TypeScript declarations in
lib/index.d.ts
Version 3.2.6 (2019-10-11)
- refine Readme
- bump dependencies
- remove Node.js v11 from Travis testing
- minor refactorings (a mobile app update would say: “performance improvements”)
Version 3.2.5 (2019-05-19)
- fix
.travis.yml
to properly test the hapi version matrix - fix
@hapi/hapi
import in examples - minor example refinements
- bump dependencies
Version 3.2.4 (2019-04-27)
- bump dependencies
- update to hapi scoped dependencies
Version 3.2.3 (2019-02-18)
- bump dependencies
- fix badges in Readme
Version 3.2.2 (2019-01-26)
- Readme: rename GitHub references
fs-opensource -> futurestudio
Version 3.2.1 (2019-01-22)
- use
request.path
overrequest.url.path
to support hapi 18 - refactor plugin: error handler class and plugin entry point
- split plugin handling and extension point registration from request handling
- move icons (Google, Stack Overflow) to SVG files
- refine texts in Readme
- refactor code in examples
- bump dependencies
- update tests to use
it
overtest
Version 3.2.0 (2018-10-10)
add
new optionlinks
which represents an array of callback functions to render helpful links. By default,hapi-dev-errors
renders linked SVG icons for Google and Stack Overflow to search for help based on the error message
Version 3.1.0 (2018-09-28)
add
passrequest
to custom view: this allows you to access every request propertyadd
passerror
to custom view: this allows you to access every response propertyadd
tests to verify plugin functionality for failed response validations (thank you venikman)update
dependencies
Version 3.0.1 (2018-08-21)
update
readme: quick navigation and logo size fix for small screens
Version 3.0.0 (2018-07-17)
add
Youch error view as the default error viewadd
Insomnia REST client to list of REST clientsadd
register plugin only once by activating the hapi plugin’sonce: true
attributeupdate
response type for JSON responses toapplication/json
update
JSON responses have well-formatted payloadupdate
examples: use a wildcard route and show error details for each pathremove
theuseYouch
plugin option (Youch is the default now)remove
previous default error view
The most important breaking change is the removed useYouch
option. Upgrading to hapi-dev-errors
3.0 should be no problem, even if you use the useYouch
option. Because Youch is the default error view in 3.0, you’ll receive the exact same error view.
If you used the default error view before, you’ll now see the Youch error details instead. You’ll like it :)
Version 2.3.0 (2018-07-12)
add
new plugin option:toTerminal
, default:true
add
pretty error details in the terminal besides the web view. Based onyouch-terminal
update
minor code reformats and restructuring
Version 2.2.0 (2018-06-02)
add
JSON response for CLI requests (cURL, Postman, wget) (thank you @pi0)
Version 2.1.0 (2018-02-12)
add
status code to Youch error and show it in the viewupdate
example code in readme to async/awaitupdate
examples to fully async/await code
Version 2.0.1 (2017-11-06)
update
dependencies to latest stable releasesupdate
readme
Version 2.0.0 (2017-11-06)
update
readme: requirements and examples
Version 2.0.0-rc.1 (2017-10-27)
update
code to support hapi v17update
dependencies to newest versions
Version 1.3.2 (2017-10-18)
update
code formatting to ESLint styling for hapi, based oneslint-config-hapi
add
Handlebars as devDependency for template example
Version 1.3.1 (2017-10-17)
remove
editor config for code formatting (.editorconfig
file)add
eslint configuration via.eslintrc.json
add
required engine inpackage.json
:>=4.0.0
. This package required Node.js v4+ with release 1.0. This setting makes sure that NPM follows this dependency.
Version 1.3.0 (2017-10-12)
add
handling of promise rejections, likereply(Promise.reject(new Error('')))
(Thank you Tafari)
Version 1.2.0 (2017-08-18)
add
new optionuseYouch
(boolean) to delegate the error handling to Youch and use its viewadd
preview of Youch’s error view in the readme introductionadd
examples for the default, Youch and custom templates. Located within theexamples
directoryupdate
preview of default error view to show updated layoutupdate
highlight JS files in stacktrace (via RegEx) on default layout
Version 1.1.0 (2017-06-14)
optimize
plugin registration: abort early ifshowErrors
is false, don’t get the template from filesystem and don’t hook the the request lifecycle extension point
- reply developer friends error details by rendering a web view for browser based requests or via JSON for REST requests
- disable plugin by default
add
optionshowErrors
to enable plugin by a boolean value or expressionadd
optiontemplate
to render custom view templatesprovide
README to document currently available plugin features