diff --git a/API.md b/API.md index 2392b02..189cc9b 100644 --- a/API.md +++ b/API.md @@ -4,7 +4,7 @@ A utility to convert [Objection](https://vincit.github.io/objection.js/) databas > **Note** > -> Avocat is intended for use with hapi v19+, nodejs v12+, and Objection v2 (_see v1 for lower support_). +> Avocat is intended for use with hapi v19+, nodejs v12+, and Objection v2 or v3 (_see v1 for lower support_). ## `Avocat` ### `Avocat.rethrow(error, [options])` diff --git a/README.md b/README.md index a6cd879..5988c5c 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ npm install @hapipal/avocat ## Usage > See also the [API Reference](API.md) > -> Avocat is intended for use with hapi v19+, nodejs v12+, and Objection v2 (_see v1 for lower support_). +> Avocat is intended for use with hapi v19+, nodejs v12+, and Objection v2 or v3 (_see v1 for lower support_). Avocat provides a single utility function [`Avocat.rethrow(error, [options])`](API.md#avocatrethrowerror-options) which transforms database errors from Objection into Boom HTTP errors that are compatible with hapi. diff --git a/package.json b/package.json index bd999de..cdc2eae 100644 --- a/package.json +++ b/package.json @@ -34,12 +34,12 @@ "@hapi/boom": "9.x.x" }, "devDependencies": { - "objection": "2.x.x", + "objection": "3.x.x", "coveralls": "3.x.x", "@hapi/code": "8.x.x", "@hapi/lab": "24.x.x" }, "peerDependencies": { - "objection": ">=2 <3" + "objection": ">=2 <4" } }