Skip to content

Commit

Permalink
chore(Dependencies): mongo scala driver 4.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sfxcode committed Oct 11, 2022
1 parent da705a5 commit f050d78
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
5 changes: 4 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@

## Versions

### 2.5.1
* mongo-scala-driver [4.7.2](https://mongodb.github.io/mongo-java-driver/4.7/driver-scala/)

### 2.5.0
* Github namespace changed to mongocamp organization, name changes to mongocamp-driver-mongodb
* * mongo-scala-driver [4.7.0](https://mongodb.github.io/mongo-java-driver/4.7/driver-scala/)
* mongo-scala-driver [4.7.0](https://mongodb.github.io/mongo-java-driver/4.7/driver-scala/)

### 2.4.0
* Github namespace changed to mongocamp organization, name changes to mongocamp-driver-mongodb
Expand Down
18 changes: 9 additions & 9 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ developers := List(

licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html"))

crossScalaVersions := Seq("2.13.8", "2.12.15")
crossScalaVersions := Seq("2.13.10", "2.12.15")

scalaVersion := crossScalaVersions.value.head

Expand Down Expand Up @@ -80,27 +80,27 @@ resolvers += "Sonatype OSS Snapshots".at("https://oss.sonatype.org/content/repos

// Test

libraryDependencies += "org.specs2" %% "specs2-core" % "4.16.1" % Test
libraryDependencies += "org.specs2" %% "specs2-core" % "4.17.0" % Test

libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.2.11" % Test
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.4.4" % Test

libraryDependencies += "joda-time" % "joda-time" % "2.10.14" % Test
libraryDependencies += "joda-time" % "joda-time" % "2.11.2" % Test

val circeVersion = "0.14.2"
val circeVersion = "0.14.3"

libraryDependencies ++= Seq(
"io.circe" %% "circe-core",
"io.circe" %% "circe-generic",
"io.circe" %% "circe-parser"
).map(_ % circeVersion % Test)

libraryDependencies += "org.mongodb.scala" %% "mongo-scala-driver" % "4.7.0"
libraryDependencies += "org.mongodb.scala" %% "mongo-scala-driver" % "4.7.2"

libraryDependencies += "org.xerial.snappy" % "snappy-java" % "1.1.8.4" % Provided

libraryDependencies += "com.github.luben" % "zstd-jni" % "1.5.2-3" % Provided
libraryDependencies += "com.github.luben" % "zstd-jni" % "1.5.2-4" % Provided

val MongoJavaServerVersion = "1.40.0"
val MongoJavaServerVersion = "1.41.0"

libraryDependencies += "de.bwaldvogel" % "mongo-java-server" % MongoJavaServerVersion % Provided

Expand All @@ -112,7 +112,7 @@ libraryDependencies += "com.typesafe" % "config" % "1.4.2"

libraryDependencies += "com.typesafe.scala-logging" %% "scala-logging" % "3.9.5"

libraryDependencies += "org.scala-lang.modules" %% "scala-collection-compat" % "2.8.0"
libraryDependencies += "org.scala-lang.modules" %% "scala-collection-compat" % "2.8.1"

buildInfoPackage := "dev.mongocamp.driver.mongodb"

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mongodb-driver",
"version": "2.5.1.snapshot",
"version": "2.5.1",
"repository": {
"type": "git",
"url": "git+https://github.com/MongoCamp/mongodb-driver.git"
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.6.2
sbt.version=1.7.2
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ abstract class Base[A]()(implicit ct: ClassTag[A]) extends LazyLogging {

def indexList(): List[MongoIndex] = MongoIndex.convertIndexDocumentsToMongoIndexList(listIndexes)

def indexForName(name: String): Option[MongoIndex] = indexList.find(_.name.equals(name))
def indexForName(name: String): Option[MongoIndex] = indexList().find(_.name.equals(name))

def hasIndexForField(fieldName: String): Boolean = indexList().exists(index => index.fields.contains(fieldName))

Expand Down

0 comments on commit f050d78

Please sign in to comment.