Skip to content

Commit 2f41bab

Browse files
committed
Updated to latest dependencies. Added support for MongoDB driver v5.x and fixed one failing test after the upgrade.
1 parent f707687 commit 2f41bab

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
"uuid": "^9.0.0"
2828
},
2929
"peerDependencies": {
30-
"mongodb": "3.6.x || 3.7.x || 4.x"
30+
"mongodb": "3.6.x || 3.7.x || 4.x || 5.x"
3131
},
3232
"devDependencies": {
33-
"eslint": "8.30.0",
34-
"eslint-config-prettier": "^8.5.0",
33+
"eslint": "8.38.0",
34+
"eslint-config-prettier": "^8.8.0",
3535
"eslint-plugin-prettier": "^4.2.1",
3636
"mocha": "^10.2.0",
37-
"prettier": "^2.8.1",
38-
"mongodb": "4.13.0"
37+
"prettier": "^2.8.7",
38+
"mongodb": "5.2.0"
3939
}
4040
}

test/uuid-mongodb_spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('MUUID', function () {
5555

5656
it('should convert uuid from mongo BSON binary', () => {
5757
const mUUID = MUUID.from(
58-
Binary(uuidv1(null, Buffer.alloc(16)), Binary.SUBTYPE_UUID)
58+
new Binary(uuidv1(null, Buffer.alloc(16)), Binary.SUBTYPE_UUID)
5959
);
6060
assert.equal(mUUID instanceof Binary, true);
6161
assert.equal(validate(mUUID.toString()), true);

0 commit comments

Comments
 (0)