From ebf3b5c42e304edcb6e19e23b4e287f657a88c22 Mon Sep 17 00:00:00 2001 From: Corey Farrell Date: Wed, 1 Jul 2020 08:13:05 -0400 Subject: [PATCH] fix: Support fastify 3.x --- index.cjs | 1 - package.json | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/index.cjs b/index.cjs index 5d64f96..7f9364a 100644 --- a/index.cjs +++ b/index.cjs @@ -56,7 +56,6 @@ function babelPlugin(fastify, options, next) { } if (payload === null) { - reply.res.log.warn('babel: missing payload'); return next(); } diff --git a/package.json b/package.json index f709cca..3183a3e 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ }, "homepage": "https://github.com/cfware/fastify-babel#readme", "dependencies": { - "fastify-plugin": "^1.6.0", + "fastify-plugin": "^2.0.0", "hasha": "^5.0.0" }, "peerDependencies": { @@ -39,8 +39,8 @@ "@cfware/lint": "^1.0.0", "@cfware/nyc": "^0.7.0", "babel-plugin-bare-import-rewrite": "^2.0.0", - "fastify": "^2.7.1", - "fastify-static": "^2.5.0", + "fastify": "^3.0.0-rc.5", + "fastify-static": "^3.0.1", "libtap": "^0.3.0", "node-fetch": "^2.6.0", "nyc": "^15.0.0",