From 9dbf7ecb885cd05b30b2a69a0fef6a2872c44bbd Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sat, 4 Dec 2021 14:10:19 +0000 Subject: [PATCH] chore(release): 2.0.0 [skip ci] # [2.0.0](https://github.com/herbsjs/herbs2rest/compare/v1.0.0...v2.0.0) (2021-12-04) ### Bug Fixes * **default controller:** lint fix ([e14beb8](https://github.com/herbsjs/herbs2rest/commit/e14beb875627f3721becab379c4cbd0357cc1822)) ### Features * **default controller:** better HTTP Status Code using Herbs Known Errors ([d87d59b](https://github.com/herbsjs/herbs2rest/commit/d87d59b331170a8f1da3e0bc1f4edfb0f35c25ea)), closes [#17](https://github.com/herbsjs/herbs2rest/issues/17) ### BREAKING CHANGES * **default controller:** Step code using generic Err should work just fine. However, steps core that are already returning Known Errors will change the behavior of the default controller and should expect to see a different HTTP status returned. --- CHANGELOG.md | 19 +++++++++++++++++++ package-lock.json | 2 +- package.json | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 333658b..0aaaa40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,22 @@ +# [2.0.0](https://github.com/herbsjs/herbs2rest/compare/v1.0.0...v2.0.0) (2021-12-04) + + +### Bug Fixes + +* **default controller:** lint fix ([e14beb8](https://github.com/herbsjs/herbs2rest/commit/e14beb875627f3721becab379c4cbd0357cc1822)) + + +### Features + +* **default controller:** better HTTP Status Code using Herbs Known Errors ([d87d59b](https://github.com/herbsjs/herbs2rest/commit/d87d59b331170a8f1da3e0bc1f4edfb0f35c25ea)), closes [#17](https://github.com/herbsjs/herbs2rest/issues/17) + + +### BREAKING CHANGES + +* **default controller:** Step code using generic Err should work just fine. However, steps core that are +already returning Known Errors will change the behavior of the default controller and should expect +to see a different HTTP status returned. + # 1.0.0 (2021-06-23) diff --git a/package-lock.json b/package-lock.json index 09dcbb3..3be2bfd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@herbsjs/herbs2rest", - "version": "1.0.0", + "version": "2.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 699c7aa..8f529d3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@herbsjs/herbs2rest", - "version": "1.0.0", + "version": "2.0.0", "description": "Create a REST API based on HerbsJS", "main": "src/herbs2rest.js", "scripts": {