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
51 changes: 29 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"glob": "^10.3.12",
"husky": "^9.0.11",
"mocha": "^10.2.0",
"mongodb": "^6.13.0",
"mongodb": "^6.14.2",
"mongodb-runner": "^5.7.1",
"node-gyp": "^9.0.0 || ^10.2.0",
"nyc": "^15.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/arg-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@mongodb-js/tsconfig-mongosh": "^1.0.0",
"depcheck": "^1.4.7",
"eslint": "^7.25.0",
"mongodb": "^6.13.0",
"mongodb": "^6.14.2",
"prettier": "^2.8.8"
}
}
2 changes: 1 addition & 1 deletion packages/browser-repl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"mongodb": "^6.13.0",
"mongodb": "^6.14.2",
"@mongodb-js/compass-components": "*",
"@mongodb-js/compass-editor": "*",
"@mongodb-js/eslint-config-mongosh": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli-repl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"glibc-version": "^1.0.0"
},
"devDependencies": {
"mongodb": "^6.13.0",
"mongodb": "^6.14.2",
"@mongodb-js/eslint-config-mongosh": "^1.0.0",
"@mongodb-js/prettier-config-devtools": "^1.0.1",
"@mongodb-js/sbom-tools": "^0.7.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"eslint": "^7.25.0",
"lodash": "^4.17.21",
"moment": "^2.29.1",
"mongodb": "^6.13.0",
"mongodb": "^6.14.2",
"node-fetch": "^3.3.2",
"prettier": "^2.8.8",
"rimraf": "^3.0.2"
Expand Down
7 changes: 3 additions & 4 deletions packages/service-provider-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,12 @@
"@aws-sdk/credential-providers": "^3.525.0",
"@mongosh/errors": "2.4.0",
"bson": "^6.10.3",
"mongodb": "^6.13.0",
"mongodb": "^6.14.2",
"mongodb-build-info": "^1.7.2",
"mongodb-connection-string-url": "^3.0.1",
"mongodb-client-encryption": "^6.1.1"
"mongodb-connection-string-url": "^3.0.1"
},
"optionalDependencies": {
"mongodb-client-encryption": "^6.1.1"
"mongodb-client-encryption": "^6.3.0"
},
"devDependencies": {
"@mongodb-js/eslint-config-mongosh": "^1.0.0",
Expand Down
6 changes: 2 additions & 4 deletions packages/service-provider-node-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,9 @@
"@mongosh/service-provider-core": "3.0.5",
"@mongosh/types": "3.5.0",
"aws4": "^1.12.0",
"mongodb": "^6.13.0",
"mongodb": "^6.14.2",
"mongodb-connection-string-url": "^3.0.1",
"socks": "^2.8.3",
"mongodb-client-encryption": "^6.1.1",
"kerberos": "2.1.0"
"socks": "^2.8.3"
},
"optionalDependencies": {
"kerberos": "2.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,13 @@ describe('NodeDriverServiceProvider', function () {
describe('#replaceOne', function () {
const filter = { name: 'Aphex Twin' };
const replacement = { name: 'Richard James' };
const commandResult = { result: { n: 1, ok: 1 } };
const commandResult = {
acknowledged: true,
matchedCount: 1,
modifiedCount: 1,
upsertedCount: 0,
upsertedId: null,
};

beforeEach(function () {
collectionStub = stubInterface<Collection>();
Expand Down
2 changes: 1 addition & 1 deletion packages/shell-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"bson": "^6.10.3",
"depcheck": "^1.4.7",
"eslint": "^7.25.0",
"mongodb": "^6.13.0",
"mongodb": "^6.14.2",
"prettier": "^2.8.8",
"semver": "^7.5.3"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@mongodb-js/tsconfig-mongosh": "^1.0.0",
"depcheck": "^1.4.7",
"eslint": "^7.25.0",
"mongodb": "^6.13.0",
"mongodb": "^6.14.2",
"prettier": "^2.8.8"
}
}
9 changes: 3 additions & 6 deletions testing/fake-kms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@ export function makeFakeHTTPConnection(handlerList: HandlerList): Duplex & { req

type FakeHTTPServer = http.Server & { requests: http.IncomingMessage[] };
export function makeFakeHTTPServer(handlerList: HandlerList): FakeHTTPServer {
// Using an version of the Node.js HTTP parser with relaxed security guarantees
// here since Node.js 16.16.0+ require CRLF header delimiting in requests,
// and reject LF header delimiting.
// MONGOCRYPT-457 has been filed to potentially address this on the libmongocrypt
// side.
const server = http.createServer({ insecureHTTPParser: true }, (req, res) => {
// NB: We previously set `insecureHTTPParser: true` here because of MONGOCRYPT-457
// and can do so again if libmongocrypt regresses at some point.
const server = http.createServer((req, res) => {
(server as FakeHTTPServer).requests.push(req);
let foundHandler: HandlerFunction | undefined;
const host = req.headers['host'];
Expand Down
Loading