diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08dfa47..6a0a596 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,9 +15,10 @@ jobs: fail-fast: false matrix: mongodb: - - '7.0' + - '8.0' mongo_driver: - mongodb6 + - mongodb7 services: mongodb: image: mongo:${{ matrix.mongodb }} diff --git a/package.json b/package.json index adf7ba0..927b234 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reedsy/mongodb-queue", - "version": "8.2.0", + "version": "8.2.1", "description": "Message queues which uses MongoDB.", "main": "mongodb-queue.js", "scripts": { @@ -12,15 +12,17 @@ }, "devDependencies": { "@reedsy/eslint-plugin": "^0.14.2", + "@types/node": "^20.19.0", "eslint": "^8.35.0", "mongodb4": "npm:mongodb@^4.0.0", "mongodb5": "npm:mongodb@^5.0.0", "mongodb6": "npm:mongodb@^6.0.0", + "mongodb7": "npm:mongodb@^7.0.0", "tape": "^4.10.1", "typescript": "^4.9.5" }, "peerDependencies": { - "mongodb": "^4.0.0 || ^5.0.0 || ^6.0.0" + "mongodb": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" }, "homepage": "https://github.com/chilts/mongodb-queue", "repository": { diff --git a/test/setup.js b/test/setup.js index 6efb66a..59dae7e 100644 --- a/test/setup.js +++ b/test/setup.js @@ -19,7 +19,7 @@ const collections = [ ]; module.exports = async function() { - const client = new mongodb.MongoClient(url, {useNewUrlParser: true}); + const client = new mongodb.MongoClient(url); await client.connect(); const db = client.db(dbName);