diff --git a/package-lock.json b/package-lock.json index bc07dcb8b1..9ca643c703 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21486,6 +21486,7 @@ "node_modules/mongodb-log-writer": { "version": "1.4.2", "license": "Apache-2.0", + "peer": true, "dependencies": { "bson": "^4.5.1 || ^5.0.0 || ^6.0.0", "heap-js": "^2.3.0" @@ -29302,7 +29303,7 @@ "is-recoverable-error": "^1.0.3", "js-yaml": "^4.1.0", "mongodb-connection-string-url": "^3.0.1", - "mongodb-log-writer": "^1.4.2", + "mongodb-log-writer": "^2.1.0", "numeral": "^2.0.6", "pretty-repl": "^4.0.1", "semver": "^7.5.4", @@ -29358,6 +29359,18 @@ "js-yaml": "bin/js-yaml.js" } }, + "packages/cli-repl/node_modules/mongodb-log-writer": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mongodb-log-writer/-/mongodb-log-writer-2.1.0.tgz", + "integrity": "sha512-ZlNts/L9fs6gQNRuqLcB0+yjjfeyapbxjdkDpeb2bEYOUUThG0iOEhzIFejv0g3TX1SSAsdrT2aGYnFqoQILgQ==", + "license": "Apache-2.0", + "dependencies": { + "heap-js": "^2.3.0" + }, + "peerDependencies": { + "bson": "6.x" + } + }, "packages/connectivity-tests": { "name": "@mongosh/connectivity-tests", "version": "2.4.0", @@ -29664,7 +29677,7 @@ "@mongosh/errors": "2.4.0", "@mongosh/history": "2.4.0", "@mongosh/types": "3.0.0", - "mongodb-log-writer": "^1.4.2", + "mongodb-log-writer": "^2.1.0", "mongodb-redact": "^1.1.5" }, "devDependencies": { @@ -29679,6 +29692,18 @@ "node": ">=14.15.1" } }, + "packages/logging/node_modules/mongodb-log-writer": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mongodb-log-writer/-/mongodb-log-writer-2.1.0.tgz", + "integrity": "sha512-ZlNts/L9fs6gQNRuqLcB0+yjjfeyapbxjdkDpeb2bEYOUUThG0iOEhzIFejv0g3TX1SSAsdrT2aGYnFqoQILgQ==", + "license": "Apache-2.0", + "dependencies": { + "heap-js": "^2.3.0" + }, + "peerDependencies": { + "bson": "6.x" + } + }, "packages/logging/node_modules/mongodb-redact": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/mongodb-redact/-/mongodb-redact-1.1.5.tgz", diff --git a/packages/cli-repl/package.json b/packages/cli-repl/package.json index c444c315b4..93d3bba513 100644 --- a/packages/cli-repl/package.json +++ b/packages/cli-repl/package.json @@ -85,7 +85,7 @@ "is-recoverable-error": "^1.0.3", "js-yaml": "^4.1.0", "mongodb-connection-string-url": "^3.0.1", - "mongodb-log-writer": "^1.4.2", + "mongodb-log-writer": "^2.1.0", "numeral": "^2.0.6", "pretty-repl": "^4.0.1", "semver": "^7.5.4", diff --git a/packages/cli-repl/src/cli-repl.ts b/packages/cli-repl/src/cli-repl.ts index a138552fb6..d3dd3d2e5c 100644 --- a/packages/cli-repl/src/cli-repl.ts +++ b/packages/cli-repl/src/cli-repl.ts @@ -307,7 +307,7 @@ export class CliRepl implements MongoshIOProvider { } markTime(TimingCategories.REPLInstantiation, 'ensured shell homedir'); - await this.logManager.cleanupOldLogfiles(); + await this.logManager.cleanupOldLogFiles(); markTime(TimingCategories.Logging, 'cleaned up log files'); const logger = await this.logManager.createLogWriter(); const { quiet } = CliRepl.getFileAndEvalInfo(this.cliOptions); diff --git a/packages/logging/package.json b/packages/logging/package.json index 1ad0aa0092..ca4a352951 100644 --- a/packages/logging/package.json +++ b/packages/logging/package.json @@ -21,7 +21,7 @@ "@mongosh/errors": "2.4.0", "@mongosh/history": "2.4.0", "@mongosh/types": "3.0.0", - "mongodb-log-writer": "^1.4.2", + "mongodb-log-writer": "^2.1.0", "mongodb-redact": "^1.1.5" }, "devDependencies": {