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.ymlto properly test the hapi version matrix - fix
@hapi/hapiimport 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.pathoverrequest.url.pathto 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
itovertest
Version 3.2.0 (2018-10-10)
addnew optionlinkswhich represents an array of callback functions to render helpful links. By default,hapi-dev-errorsrenders linked SVG icons for Google and Stack Overflow to search for help based on the error message
Version 3.1.0 (2018-09-28)
addpassrequestto custom view: this allows you to access every request propertyaddpasserrorto custom view: this allows you to access every response propertyaddtests to verify plugin functionality for failed response validations (thank you venikman)updatedependencies
Version 3.0.1 (2018-08-21)
updatereadme: quick navigation and logo size fix for small screens
Version 3.0.0 (2018-07-17)
addYouch error view as the default error viewaddInsomnia REST client to list of REST clientsaddregister plugin only once by activating the hapi plugin’sonce: trueattributeupdateresponse type for JSON responses toapplication/jsonupdateJSON responses have well-formatted payloadupdateexamples: use a wildcard route and show error details for each pathremovetheuseYouchplugin option (Youch is the default now)removeprevious 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)
addnew plugin option:toTerminal, default:trueaddpretty error details in the terminal besides the web view. Based onyouch-terminalupdateminor code reformats and restructuring
Version 2.2.0 (2018-06-02)
addJSON response for CLI requests (cURL, Postman, wget) (thank you @pi0)
Version 2.1.0 (2018-02-12)
addstatus code to Youch error and show it in the viewupdateexample code in readme to async/awaitupdateexamples to fully async/await code
Version 2.0.1 (2017-11-06)
updatedependencies to latest stable releasesupdatereadme
Version 2.0.0 (2017-11-06)
updatereadme: requirements and examples
Version 2.0.0-rc.1 (2017-10-27)
updatecode to support hapi v17updatedependencies to newest versions
Version 1.3.2 (2017-10-18)
updatecode formatting to ESLint styling for hapi, based oneslint-config-hapiaddHandlebars as devDependency for template example
Version 1.3.1 (2017-10-17)
removeeditor config for code formatting (.editorconfigfile)addeslint configuration via.eslintrc.jsonaddrequired 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)
addhandling of promise rejections, likereply(Promise.reject(new Error('')))(Thank you Tafari)
Version 1.2.0 (2017-08-18)
addnew optionuseYouch(boolean) to delegate the error handling to Youch and use its viewaddpreview of Youch’s error view in the readme introductionaddexamples for the default, Youch and custom templates. Located within theexamplesdirectoryupdatepreview of default error view to show updated layoutupdatehighlight JS files in stacktrace (via RegEx) on default layout
Version 1.1.0 (2017-06-14)
optimizeplugin registration: abort early ifshowErrorsis 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
addoptionshowErrorsto enable plugin by a boolean value or expressionaddoptiontemplateto render custom view templatesprovideREADME to document currently available plugin features