diff --git a/README.md b/README.md index f04f9fb..5c76a13 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ npm i fastify-raw-body | `^2.0.0` | `^2.0.0` | | `^3.0.0` | `^3.0.0` | | `^4.0.0` | `^4.0.0` | +| `^4.2.1` | `^4.19.0` | ## Usage diff --git a/plugin.js b/plugin.js index 5c84d57..c69df7f 100644 --- a/plugin.js +++ b/plugin.js @@ -103,7 +103,7 @@ function rawBody (fastify, opts, next) { } const plugin = fp(rawBody, { - fastify: '^4.10.x', + fastify: '^4.19.x', name: 'fastify-raw-body' }) diff --git a/test/plugin.test.js b/test/plugin.test.js index b815b0e..44485fb 100644 --- a/test/plugin.test.js +++ b/test/plugin.test.js @@ -77,7 +77,7 @@ t.test('wrong fastify version', t => { app.ready(err => { t.ok(err) - t.match(err.message, /expected '\^4.10.x' fastify version/) + t.match(err.message, /expected '\^4.19.x' fastify version/) }) })