Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ jobs:
fail-fast: false
matrix:
mongodb:
- '7.0'
- '8.0'
mongo_driver:
- mongodb6
- mongodb7
services:
mongodb:
image: mongo:${{ matrix.mongodb }}
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion test/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const collections = [
];

module.exports = async function() {
const client = new mongodb.MongoClient(url, {useNewUrlParser: true});
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was removed in version 4 of the driver and had been deprecated from themn. Now they removed full this option.

const client = new mongodb.MongoClient(url);

await client.connect();
const db = client.db(dbName);
Expand Down