diff --git a/.travis.yml b/.travis.yml index af63f31..6c7bd82 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,3 +4,15 @@ node_js: - 10 - 11 - node + +env: + - HAPI_VERSION="" + +matrix: + include: + - node_js: "8" + env: HAPI_VERSION="@17" + +install: + - npm install + - npm install hapi$HAPI_VERSION diff --git a/CHANGELOG.md b/CHANGELOG.md index 05c481b..c81314c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Changelog -## Version [3.2.1](https://github.com/fs-opensource/hapi-dev-errors/compare/v3.2.0...v3.2.1) (2019-01-22) +## Version [3.2.2](https://github.com/futurestudio/hapi-dev-errors/compare/v3.2.1...v3.2.2) (2019-01-26) + +### Updated +- Readme: rename GitHub references `futurestudio -> futurestudio` + + +## Version [3.2.1](https://github.com/futurestudio/hapi-dev-errors/compare/v3.2.0...v3.2.1) (2019-01-22) ### Updated - use `request.path` over `request.url.path` to support hapi 18 @@ -13,21 +19,21 @@ - update tests to use `it` over `test` -## Version [3.2.0](https://github.com/fs-opensource/hapi-dev-errors/compare/v3.1.0...v3.2.0) (2018-10-10) -- `add` new option [`links`](https://github.com/fs-opensource/hapi-dev-errors#plugin-registration-options) 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.2.0](https://github.com/futurestudio/hapi-dev-errors/compare/v3.1.0...v3.2.0) (2018-10-10) +- `add` new option [`links`](https://github.com/futurestudio/hapi-dev-errors#plugin-registration-options) 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](https://github.com/fs-opensource/hapi-dev-errors/compare/v3.0.1...v3.1.0) (2018-09-28) +## Version [3.1.0](https://github.com/futurestudio/hapi-dev-errors/compare/v3.0.1...v3.1.0) (2018-09-28) - `add` pass `request` to custom view: this allows you to access every request property - `add` pass `error` to custom view: this allows you to access every response property -- `add` tests to verify plugin functionality for failed response validations (thank you [venikman](https://github.com/fs-opensource/hapi-dev-errors/pull/6)) +- `add` tests to verify plugin functionality for failed response validations (thank you [venikman](https://github.com/futurestudio/hapi-dev-errors/pull/6)) - `update` dependencies -## Version [3.0.1](https://github.com/fs-opensource/hapi-dev-errors/compare/v3.0.0...v3.0.1) (2018-08-21) +## Version [3.0.1](https://github.com/futurestudio/hapi-dev-errors/compare/v3.0.0...v3.0.1) (2018-08-21) - `update` readme: quick navigation and logo size fix for small screens -## Version [3.0.0](https://github.com/fs-opensource/hapi-dev-errors/compare/v2.3.0...v3.0.0) (2018-07-17) +## Version [3.0.0](https://github.com/futurestudio/hapi-dev-errors/compare/v2.3.0...v3.0.0) (2018-07-17) - `add` Youch error view as the default error view - `add` Insomnia REST client to list of REST clients - `add` register plugin only once by activating the hapi plugin’s `once: true` attribute @@ -43,52 +49,52 @@ The most important breaking change is the removed `useYouch` option. Upgrading t 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](https://github.com/fs-opensource/hapi-dev-errors/compare/v2.2.0...v2.3.0) (2018-07-12) +## Version [2.3.0](https://github.com/futurestudio/hapi-dev-errors/compare/v2.2.0...v2.3.0) (2018-07-12) - `add` new plugin option: `toTerminal`, default: `true` - `add` pretty error details in the terminal besides the web view. Based on [`youch-terminal`](https://github.com/poppinss/youch-terminal) - `update` minor code reformats and restructuring -## Version [2.2.0](https://github.com/fs-opensource/hapi-dev-errors/compare/v2.1.0...v2.2.0) (2018-06-02) +## Version [2.2.0](https://github.com/futurestudio/hapi-dev-errors/compare/v2.1.0...v2.2.0) (2018-06-02) - `add` JSON response for CLI requests (cURL, Postman, wget) (thank you @pi0) -## Version [2.1.0](https://github.com/fs-opensource/hapi-dev-errors/compare/v2.0.1...v2.1.0) (2018-02-12) +## Version [2.1.0](https://github.com/futurestudio/hapi-dev-errors/compare/v2.0.1...v2.1.0) (2018-02-12) - `add` status code to Youch error and show it in the view - `update` example code in readme to async/await - `update` examples to fully async/await code -## Version [2.0.1](https://github.com/fs-opensource/hapi-dev-errors/compare/v2.0.0...v2.0.1) (2017-11-06) +## Version [2.0.1](https://github.com/futurestudio/hapi-dev-errors/compare/v2.0.0...v2.0.1) (2017-11-06) - `update` dependencies to latest stable releases - `update` readme -## Version [2.0.0](https://github.com/fs-opensource/hapi-dev-errors/compare/v2.0.0-rc.1...v2.0.0) (2017-11-06) +## Version [2.0.0](https://github.com/futurestudio/hapi-dev-errors/compare/v2.0.0-rc.1...v2.0.0) (2017-11-06) - `update` readme: requirements and examples -## Version [2.0.0-rc.1](https://github.com/fs-opensource/hapi-dev-errors/compare/v1.3.2...v2.0.0-rc.1) (2017-10-27) +## Version [2.0.0-rc.1](https://github.com/futurestudio/hapi-dev-errors/compare/v1.3.2...v2.0.0-rc.1) (2017-10-27) - `update` code to support hapi v17 - `update` dependencies to newest versions -## Version [1.3.2](https://github.com/fs-opensource/hapi-dev-errors/compare/v1.3.1...v1.3.2) (2017-10-18) +## Version [1.3.2](https://github.com/futurestudio/hapi-dev-errors/compare/v1.3.1...v1.3.2) (2017-10-18) - `update` code formatting to ESLint styling for hapi, based on `eslint-config-hapi` - `add` Handlebars as devDependency for template example -## Version [1.3.1](https://github.com/fs-opensource/hapi-dev-errors/compare/v1.3.0...v1.3.1) (2017-10-17) +## Version [1.3.1](https://github.com/futurestudio/hapi-dev-errors/compare/v1.3.0...v1.3.1) (2017-10-17) - `remove` editor config for code formatting (`.editorconfig` file) - `add` eslint configuration via `.eslintrc.json` - `add` required engine in `package.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](https://github.com/fs-opensource/hapi-dev-errors/compare/v1.2.0...v1.3.0) (2017-10-12) +## Version [1.3.0](https://github.com/futurestudio/hapi-dev-errors/compare/v1.2.0...v1.3.0) (2017-10-12) - `add` handling of promise rejections, like `reply(Promise.reject(new Error('')))` (Thank you [Tafari](https://github.com/tafarij)) -## Version [1.2.0](https://github.com/fs-opensource/hapi-dev-errors/compare/v1.1.0...v1.2.0) (2017-08-18) +## Version [1.2.0](https://github.com/futurestudio/hapi-dev-errors/compare/v1.1.0...v1.2.0) (2017-08-18) - `add` new option `useYouch` (boolean) to delegate the error handling to Youch and use its view - `add` preview of Youch’s error view in the readme introduction - `add` examples for the default, Youch and custom templates. Located within the `examples` directory @@ -96,7 +102,7 @@ If you used the default error view before, you’ll now see the Youch error deta - `update` highlight JS files in stacktrace (via RegEx) on default layout -## Version [1.1.0](https://github.com/fs-opensource/hapi-dev-errors/compare/v1.0.0...v1.1.0) (2017-06-14) +## Version [1.1.0](https://github.com/futurestudio/hapi-dev-errors/compare/v1.0.0...v1.1.0) (2017-06-14) - `optimize` plugin registration: abort early if `showErrors` is false, don’t get the template from filesystem and don’t hook the the request lifecycle extension point diff --git a/README.md b/README.md index 1151831..93da9aa 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@
@@ -14,10 +14,10 @@
Follow @marcuspoehls for updates!
@@ -41,7 +41,7 @@ A hapi plugin to return an error view for web requests, providing more details o
`hapi-dev-errors` seamlessly integrates [Youch](https://github.com/poppinss/youch) to show the error details.
-Besides the web view, `hapi-dev-errors` prints pretty error details to the terminal. This is nice when running your hapi server as an API. Printing error details to the console is enabled by default. To disable the terminal error, use the [`toTerminal: false` option](https://github.com/fs-opensource/hapi-dev-errors#plugin-registration-options).
+Besides the web view, `hapi-dev-errors` prints pretty error details to the terminal. This is nice when running your hapi server as an API. Printing error details to the console is enabled by default. To disable the terminal error, use the [`toTerminal: false` option](https://github.com/futurestudio/hapi-dev-errors#plugin-registration-options).

@@ -75,7 +75,7 @@ npm i -S hapi-dev-errors@1.3.2
## Examples
-Check out the [examples](https://github.com/fs-opensource/hapi-dev-errors/tree/master/examples) directory and get
+Check out the [examples](https://github.com/futurestudio/hapi-dev-errors/tree/master/examples) directory and get
an impression on how to configure `hapi-dev-errors` with the individual plugins options and how to customize the
error view.
@@ -115,7 +115,7 @@ await server.register({
toTerminal: true,
links: [ (error) => {
return `
-
+
Search hapi-dev-errors on GitHub
`
}
@@ -148,7 +148,7 @@ Available properties to use in your custom error view:
## Feature Requests
Do you miss a feature? Please don’t hesitate to
-[create an issue](https://github.com/fs-opensource/hapi-dev-errors/issues) with a short description of your
+[create an issue](https://github.com/futurestudio/hapi-dev-errors/issues) with a short description of your
desired addition to this plugin.
@@ -175,5 +175,5 @@ MIT © [Future Studio](https://futurestud.io)
---
> [futurestud.io](https://futurestud.io) ·
-> GitHub [@fs-opensource](https://github.com/fs-opensource/) ·
+> GitHub [@futurestudio](https://github.com/futurestudio/) ·
> Twitter [@futurestud_io](https://twitter.com/futurestud_io)
diff --git a/examples/with-links.js b/examples/with-links.js
index 74fcd95..4dd255e 100644
--- a/examples/with-links.js
+++ b/examples/with-links.js
@@ -12,7 +12,7 @@ async function launchIt () {
toTerminal: false,
links: [
(error) => {
- return `
+ return `
Search hapi-dev-errors on GitHub
`
}
diff --git a/package.json b/package.json
index 28d932a..6e00721 100644
--- a/package.json
+++ b/package.json
@@ -1,10 +1,10 @@
{
"name": "hapi-dev-errors",
"description": "Return better error details and skip the look at command line to catch the issue.",
- "version": "3.2.1",
+ "version": "3.2.2",
"author": "Future Studio