mongodb-memory-server-core
Advanced tools
Comparing version 9.0.1 to 9.1.0-beta.1
@@ -230,3 +230,2 @@ "use strict"; | ||
const instance = await MongoInstance_1.MongoInstance.create(mongodOptions); | ||
this.debug(`_startUpInstance: Instance Started, createAuth: "${createAuth}"`); | ||
this._instanceInfo = { | ||
@@ -237,2 +236,4 @@ ...data, | ||
}; | ||
// log after "_instanceInfo" is set so that the port shows up in the message | ||
this.debug(`_startUpInstance: Instance Started, createAuth: "${createAuth}"`); | ||
// always set the "extraConnectionOptions" when "auth" is enabled, regardless of if "createAuth" gets run | ||
@@ -239,0 +240,0 @@ if (this.authObjectEnable() && |
@@ -294,6 +294,8 @@ "use strict"; | ||
if (releaseAsSemver) { | ||
// extra checks for architecture aarch64 (arm64) | ||
// should not assign "name" by itself | ||
if (this.arch === 'aarch64') { | ||
// there are no versions for aarch64 before rhel 8.2 (or currently after) | ||
if (semver.lt(releaseAsSemver, '8.2.0')) { | ||
throw new errors_1.KnownVersionIncompatibilityError(`Rhel ${release}`, this.version, '>=4.4.2', 'ARM64(aarch64) support for rhel is only for rhel82 or higher'); | ||
throw new errors_1.KnownVersionIncompatibilityError(`Rhel ${release} arm64`, this.version, '>=4.4.2', 'ARM64(aarch64) support for rhel is only for rhel82 or higher'); | ||
} | ||
@@ -303,11 +305,17 @@ // there are no versions for aarch64 before mongodb 4.4.2 | ||
if (semver.lt(coercedVersion, '4.4.2') && !testVersionIsLatest(this.version)) { | ||
throw new errors_1.KnownVersionIncompatibilityError(`Rhel ${release}`, this.version, '>=4.4.2'); | ||
throw new errors_1.KnownVersionIncompatibilityError(`Rhel ${release} arm64`, this.version, '>=4.4.2'); | ||
} | ||
if (!semver.eq(releaseAsSemver, '8.2.0')) { | ||
log(`a different rhel version than 8.2 is used: "${release}", using 82 release`); | ||
// rhel 9 does not provide openssl 1.1 anymore, making it incompatible with previous versions | ||
// lowest rhel9 arm64 is 6.0.7 | ||
if (semver.satisfies(releaseAsSemver, '>=9.0.0') && semver.lt(coercedVersion, '6.0.7')) { | ||
throw new errors_1.KnownVersionIncompatibilityError(`Rhel ${release} arm64`, this.version, '>=6.0.7'); | ||
} | ||
// rhel aarch64 support is only for rhel 8.2 (and no version after explicitly) | ||
} | ||
if (semver.satisfies(releaseAsSemver, '>=9.0.0')) { | ||
name += '90'; | ||
} | ||
else if (semver.satisfies(releaseAsSemver, '8.2.0') && this.arch == 'aarch64') { | ||
name += '82'; | ||
} | ||
else if (semver.satisfies(releaseAsSemver, '>=8.0.0')) { | ||
else if (semver.satisfies(releaseAsSemver, '^8.0.0')) { | ||
name += '80'; | ||
@@ -314,0 +322,0 @@ } |
{ | ||
"name": "mongodb-memory-server-core", | ||
"version": "9.0.1", | ||
"version": "9.1.0-beta.1", | ||
"description": "MongoDB Server for testing (core package, without autodownload). The server will allow you to connect your favourite ODM or client library to the MongoDB Server and run parallel integration tests isolated from each other.", | ||
@@ -34,9 +34,9 @@ "main": "lib/index", | ||
"devDependencies": { | ||
"@types/debug": "^4.1.9", | ||
"@types/debug": "^4.1.10", | ||
"@types/find-cache-dir": "^3.2.1", | ||
"@types/follow-redirects": "^1.14.2", | ||
"@types/semver": "^7.5.3", | ||
"@types/tar-stream": "^3.1.1", | ||
"@types/yauzl": "^2.10.1", | ||
"@types/yazl": "^2.4.3", | ||
"@types/follow-redirects": "^1.14.3", | ||
"@types/semver": "^7.5.4", | ||
"@types/tar-stream": "^3.1.2", | ||
"@types/yauzl": "^2.10.2", | ||
"@types/yazl": "^2.4.4", | ||
"rimraf": "^5.0.5", | ||
@@ -52,3 +52,3 @@ "yazl": "^2.5.1" | ||
"https-proxy-agent": "^7.0.2", | ||
"mongodb": "^5.9.0", | ||
"mongodb": "^5.9.1", | ||
"new-find-package-json": "^2.0.0", | ||
@@ -55,0 +55,0 @@ "semver": "^7.5.4", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
378414
5578
1
+ Added@types/node@22.7.3(transitive)
- Removed@types/node@22.7.1(transitive)
Updatedmongodb@^5.9.1