From 484ca6a11d9011262a41aa8e276580aacec366ac Mon Sep 17 00:00:00 2001 From: rtritto Date: Tue, 17 Sep 2024 17:44:24 +0200 Subject: [PATCH] chore: move mongodb as peer dependency --- README.md | 2 +- package.json | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index eff347e..b520070 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ If you do not provide the client by yourself (see below), the URL option is *req ## Install ``` -npm i @fastify/mongodb +npm i @fastify/mongodb mongodb ``` ## Usage diff --git a/package.json b/package.json index da60730..0ad7b5c 100644 --- a/package.json +++ b/package.json @@ -35,13 +35,16 @@ "@fastify/pre-commit": "^2.1.0", "@types/node": "^22.0.0", "fastify": "^5.0.0-alpha.4", + "mongodb": "^6.5.0", "standard": "^17.1.0", "tap": "^18.7.1", "tsd": "^0.31.0" }, "dependencies": { - "fastify-plugin": "^5.0.0", - "mongodb": "^6.5.0" + "fastify-plugin": "^5.0.0" + }, + "peerDependencies": { + "mongodb": "^6" }, "publishConfig": { "access": "public"