From b8876ca414f0a3fd45e1fa5cd7bea9339379112d Mon Sep 17 00:00:00 2001 From: KaKa Date: Wed, 30 Aug 2023 14:32:14 +0800 Subject: [PATCH] feat!: support mongodb@6 --- .github/workflows/ci.yml | 2 +- README.md | 2 +- package.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 850c9f6..c2c5146 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ on: jobs: test: - uses: fastify/workflows/.github/workflows/plugins-ci-mongo.yml@v3 + uses: fastify/workflows/.github/workflows/plugins-ci-mongo.yml@7993e1ea858b5c3ceff1aa154fa44b892f311ac3 with: lint: true license-check: true diff --git a/README.md b/README.md index d0fb57d..db7b79a 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Fastify MongoDB connection plugin; with this you can share the same MongoDB conn Under the hood the official [MongoDB](https://github.com/mongodb/node-mongodb-native) driver is used, the options that you pass to `register` will be passed to the Mongo client. -The `mongodb` driver is v5.x.x. +The `mongodb` driver is v6.x.x. If you do not provide the client by yourself (see below), the URL option is *required*. diff --git a/package.json b/package.json index d11d71a..79045c9 100644 --- a/package.json +++ b/package.json @@ -33,14 +33,14 @@ "devDependencies": { "@fastify/pre-commit": "^2.0.2", "@types/node": "^20.1.0", - "fastify": "^4.0.0-rc.3", + "fastify": "^4.0.0", "standard": "^17.0.0", "tap": "^16.1.0", "tsd": "^0.28.0" }, "dependencies": { "fastify-plugin": "^4.0.0", - "mongodb": "^5.0.0" + "mongodb": "^6.0.0" }, "publishConfig": { "access": "public"