diff --git a/package.json b/package.json index 92ffb584..721220a1 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "jsdoc-api": "9.3.4", "jsdoc-parse": "6.2.4", "lint-staged": "15.2.9", - "mongodb": "6.10.0", + "mongodb": "6.12.0", "mongodb-memory-server": "10.1.2", "mongoose": "8.8.1", "pinst": "3.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2c683dbb..e56d8324 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -72,8 +72,8 @@ importers: specifier: 15.2.9 version: 15.2.9 mongodb: - specifier: 6.10.0 - version: 6.10.0(socks@2.7.1) + specifier: 6.12.0 + version: 6.12.0(socks@2.7.1) mongodb-memory-server: specifier: 10.1.2 version: 10.1.2(socks@2.7.1) @@ -932,8 +932,8 @@ packages: resolution: {integrity: sha512-TfRP53RqunNe2HBobVBJ0VLhK1HbfvBYeTC1ahnN64PWvyYyGebmMiPkuwvD9fpw2ZbkoPb8Q7mwy0aR8Z9rvw==} engines: {node: '>=v12.0.0'} - '@mongodb-js/saslprep@1.1.5': - resolution: {integrity: sha512-XLNOMH66KhJzUJNwT/qlMnS4WsNDWD5ASdyaSH3EtK+F4r/CFGa3jT4GNi4mfOitGvWXtdLgQJkQjxSVrio+jA==} + '@mongodb-js/saslprep@1.1.9': + resolution: {integrity: sha512-tVkljjeEaAhCqTzajSdgbQ6gE6f3oneVwa3iXR6csiEwXXOFsiC6Uh9iAjAhXPtqa/XMDHWjjeNH/77m/Yq2dw==} '@nodelib/fs.scandir@2.1.5': resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} @@ -1235,8 +1235,8 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true - bson@6.7.0: - resolution: {integrity: sha512-w2IquM5mYzYZv6rs3uN2DZTOBe2a0zXLj53TGDqwF4l6Sz/XsISrisXOJihArF9+BZ6Cq/GjVht7Sjfmri7ytQ==} + bson@6.10.1: + resolution: {integrity: sha512-P92xmHDQjSKPLHqFxefqMxASNq/aWJMEZugpCjf+AF/pgcUpMMQCg7t7+ewko0/u8AapvF3luf/FoehddEK+sA==} engines: {node: '>=16.20.1'} buffer-crc32@0.2.13: @@ -2734,6 +2734,33 @@ packages: socks: optional: true + mongodb@6.12.0: + resolution: {integrity: sha512-RM7AHlvYfS7jv7+BXund/kR64DryVI+cHbVAy9P61fnb1RcWZqOW1/Wj2YhqMCx+MuYhqTRGv7AwHBzmsCKBfA==} + engines: {node: '>=16.20.1'} + peerDependencies: + '@aws-sdk/credential-providers': ^3.188.0 + '@mongodb-js/zstd': ^1.1.0 || ^2.0.0 + gcp-metadata: ^5.2.0 + kerberos: ^2.0.1 + mongodb-client-encryption: '>=6.0.0 <7' + snappy: ^7.2.2 + socks: ^2.7.1 + peerDependenciesMeta: + '@aws-sdk/credential-providers': + optional: true + '@mongodb-js/zstd': + optional: true + gcp-metadata: + optional: true + kerberos: + optional: true + mongodb-client-encryption: + optional: true + snappy: + optional: true + socks: + optional: true + mongoose@8.8.1: resolution: {integrity: sha512-l7DgeY1szT98+EKU8GYnga5WnyatAu+kOQ2VlVX1Mxif6A0Umt0YkSiksCiyGxzx8SPhGe9a53ND1GD4yVDrPA==} engines: {node: '>=16.20.1'} @@ -4750,7 +4777,7 @@ snapshots: dependencies: lodash: 4.17.21 - '@mongodb-js/saslprep@1.1.5': + '@mongodb-js/saslprep@1.1.9': dependencies: sparse-bitfield: 3.0.3 @@ -5101,7 +5128,7 @@ snapshots: node-releases: 2.0.18 update-browserslist-db: 1.1.0(browserslist@4.24.0) - bson@6.7.0: {} + bson@6.10.1: {} buffer-crc32@0.2.13: {} @@ -6693,7 +6720,7 @@ snapshots: find-cache-dir: 3.3.2 follow-redirects: 1.15.9(debug@4.3.7) https-proxy-agent: 7.0.5 - mongodb: 6.10.0(socks@2.7.1) + mongodb: 6.12.0(socks@2.7.1) new-find-package-json: 2.0.0 semver: 7.6.3 tar-stream: 3.1.7 @@ -6725,15 +6752,23 @@ snapshots: mongodb@6.10.0(socks@2.7.1): dependencies: - '@mongodb-js/saslprep': 1.1.5 - bson: 6.7.0 + '@mongodb-js/saslprep': 1.1.9 + bson: 6.10.1 + mongodb-connection-string-url: 3.0.0 + optionalDependencies: + socks: 2.7.1 + + mongodb@6.12.0(socks@2.7.1): + dependencies: + '@mongodb-js/saslprep': 1.1.9 + bson: 6.10.1 mongodb-connection-string-url: 3.0.0 optionalDependencies: socks: 2.7.1 mongoose@8.8.1(socks@2.7.1): dependencies: - bson: 6.7.0 + bson: 6.10.1 kareem: 2.6.3 mongodb: 6.10.0(socks@2.7.1) mpath: 0.9.0 diff --git a/src/__tests__/mongodbTypes.test.ts b/src/__tests__/mongodbTypes.test.ts index b524777a..d937c399 100644 --- a/src/__tests__/mongodbTypes.test.ts +++ b/src/__tests__/mongodbTypes.test.ts @@ -100,7 +100,7 @@ describe('mongodb types', () => { expectType>({ dbRef: new DBRef('collection', new ObjectId()) }); expectType>({ decimal: new Decimal128('123.45') }); expectType>({ int32: new Int32('123') }); - expectType>({ long: new Long('123', 45) }); + expectType>({ long: new Long(123, 45) }); expectType>({ maxKey: new MaxKey() }); expectType>({ minKey: new MinKey() }); expectType>({ regexp: /foo/ }); @@ -516,7 +516,7 @@ describe('mongodb types', () => { $set: { decimal: new Decimal128('123.45') }, }); expectType>({ $set: { int32: new Int32('123') } }); - expectType>({ $set: { long: new Long('123', 45) } }); + expectType>({ $set: { long: new Long(123, 45) } }); expectType>({ $set: { maxKey: new MaxKey() } }); expectType>({ $set: { minKey: new MinKey() } }); expectType>({ $set: { regexp: /foo/ } });