Skip to content

Commit 40ffe70

Browse files
committed
✨ Add mongodb 7
1 parent eea5cde commit 40ffe70

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
mongodb:
18-
- '7.0'
18+
- '8.0'
1919
mongo_driver:
2020
- mongodb6
21+
- mongodb7
2122
services:
2223
mongodb:
2324
image: mongo:${{ matrix.mongodb }}

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@reedsy/mongodb-queue",
3-
"version": "8.2.0",
3+
"version": "8.2.1",
44
"description": "Message queues which uses MongoDB.",
55
"main": "mongodb-queue.js",
66
"scripts": {
@@ -12,15 +12,17 @@
1212
},
1313
"devDependencies": {
1414
"@reedsy/eslint-plugin": "^0.14.2",
15+
"@types/node": "^20.19.0",
1516
"eslint": "^8.35.0",
1617
"mongodb4": "npm:mongodb@^4.0.0",
1718
"mongodb5": "npm:mongodb@^5.0.0",
1819
"mongodb6": "npm:mongodb@^6.0.0",
20+
"mongodb7": "npm:mongodb@^7.0.0",
1921
"tape": "^4.10.1",
2022
"typescript": "^4.9.5"
2123
},
2224
"peerDependencies": {
23-
"mongodb": "^4.0.0 || ^5.0.0 || ^6.0.0"
25+
"mongodb": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"
2426
},
2527
"homepage": "https://github.com/chilts/mongodb-queue",
2628
"repository": {

test/setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const collections = [
1919
];
2020

2121
module.exports = async function() {
22-
const client = new mongodb.MongoClient(url, {useNewUrlParser: true});
22+
const client = new mongodb.MongoClient(url);
2323

2424
await client.connect();
2525
const db = client.db(dbName);

0 commit comments

Comments
 (0)