From ec898a46ab7455626e3e05036289301403c45ab0 Mon Sep 17 00:00:00 2001 From: Alec Gibson <12036746+alecgibson@users.noreply.github.com> Date: Tue, 29 Aug 2023 16:42:06 +0100 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Add=20support=20for=20`mon?= =?UTF-8?q?godb@6`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change adds support for the latest major version bump of the `mongodb` driver: [v6][1]. None of the breaks appear to affect us, so we just update our `dependencies` and test matrix. [1]: https://github.com/mongodb/node-mongodb-native/releases/tag/v6.0.0 --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 51cbb60..06c67df 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "MongoDB database adapter for ShareDB", "main": "index.js", "dependencies": { - "mongodb": "^3.1.13 || ^4.0.0 || ^5.0.0", + "mongodb": "^3.1.13 || ^4.0.0 || ^5.0.0 || ^6.0.0", "sharedb": "^1.9.1 || ^2.0.0 || ^3.0.0 || ^4.0.0" }, "devDependencies": { @@ -17,6 +17,7 @@ "mongodb3": "npm:mongodb@^3.0.0", "mongodb4": "npm:mongodb@^4.0.0", "mongodb5": "npm:mongodb@^5.0.0", + "mongodb6": "npm:mongodb@^6.0.0", "nyc": "^14.1.1", "ot-json1": "^1.0.1", "sharedb-mingo-memory": "^1.0.0 || ^2.0.0 || ^3.0.0", @@ -30,7 +31,8 @@ "test:mongodb3": "_SHAREDB_MONGODB_DRIVER=mongodb3 npm test", "test:mongodb4": "_SHAREDB_MONGODB_DRIVER=mongodb4 npm test", "test:mongodb5": "_SHAREDB_MONGODB_DRIVER=mongodb5 npm test", - "test:all": "npm run test:mongodb3 && npm run test:mongodb4 && npm run test:mongodb5", + "test:mongodb6": "_SHAREDB_MONGODB_DRIVER=mongodb6 npm test", + "test:all": "npm run test:mongodb3 && npm run test:mongodb4 && npm run test:mongodb5 && npm run test:mongodb6", "test-cover": "nyc --temp-dir=coverage -r text -r lcov npm run test:all" }, "repository": "git://github.com/share/sharedb-mongo.git",