From ed9ad581c4cf72a917a1c764435b239e84a881e2 Mon Sep 17 00:00:00 2001 From: Matt Boutet Date: Mon, 17 Jan 2022 14:40:39 -0500 Subject: [PATCH] Update dependencies to support Objection v3 --- API.md | 2 +- README.md | 2 +- package.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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" } }