From 93793dda0989e429e1c63e1a0f0e45dd27c37592 Mon Sep 17 00:00:00 2001 From: Marcus Poehls Date: Tue, 22 Jan 2019 06:30:17 +0100 Subject: [PATCH 1/3] first try: test matrix on Travis for hapi 17 and 18 --- .travis.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 From f30cf9e297d750a1278e2f07b71fb77d4b858a28 Mon Sep 17 00:00:00 2001 From: Marcus Poehls Date: Sat, 26 Jan 2019 06:24:12 +0100 Subject: [PATCH 2/3] rename GitHub references: fs-opensource -> futurestudio --- CHANGELOG.md | 42 ++++++++++++++++++++++++------------------ README.md | 18 +++++++++--------- examples/with-links.js | 2 +- package.json | 6 +++--- 4 files changed, 37 insertions(+), 31 deletions(-) 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 @@
- hapi-dev-errors logo + hapi-dev-errors logo

@@ -14,10 +14,10 @@

- Build Status - Known Vulnerabilities + Build Status + Known Vulnerabilities hapi-dev-errors Version - Greenkeeper badge + Greenkeeper badge

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). ![hapi-dev-errors pretty terminal error](media/hapi-dev-errors-on-terminal.png) @@ -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..9a3af22 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "version": "3.2.1", "author": "Future Studio ", "bugs": { - "url": "https://github.com/fs-opensource/hapi-dev-errors/issues" + "url": "https://github.com/futurestudio/hapi-dev-errors/issues" }, "dependencies": { "youch": "~2.0.10", @@ -29,7 +29,7 @@ "engines": { "node": ">=8" }, - "homepage": "https://github.com/fs-opensource/hapi-dev-errors#readme", + "homepage": "https://github.com/futurestudio/hapi-dev-errors#readme", "keywords": [ "hapi", "hapijs", @@ -43,7 +43,7 @@ "main": "lib/index.js", "repository": { "type": "git", - "url": "git+https://github.com/fs-opensource/hapi-dev-errors.git" + "url": "git+https://github.com/futurestudio/hapi-dev-errors.git" }, "scripts": { "test": "lab --assert code --leaks --coverage --lint", From 9ff84ef6df2eb0b5d75f5f719bdac45f4461a91f Mon Sep 17 00:00:00 2001 From: Marcus Poehls Date: Sat, 26 Jan 2019 06:25:47 +0100 Subject: [PATCH 3/3] 3.2.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9a3af22..6e00721 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "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 ", "bugs": { "url": "https://github.com/futurestudio/hapi-dev-errors/issues"