Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mongo: driver 4.7.2 (was 4.4.0), adds full support for MongoDB 6.0 #2940

Merged
merged 2 commits into from
Dec 8, 2022
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
6 changes: 1 addition & 5 deletions mongodb/src/test/scala/docs/scaladsl/MongoSinkSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ import scala.concurrent.duration._
import org.scalatest.matchers.must.Matchers
import org.scalatest.wordspec.AnyWordSpec

import scala.annotation.nowarn

class MongoSinkSpec
extends AnyWordSpec
with ScalaFutures
Expand All @@ -39,9 +37,7 @@ class MongoSinkSpec
case class DomainObject(_id: Int, firstProperty: String, secondProperty: String)

val codecRegistry =
fromRegistries(fromProviders(classOf[Number], classOf[DomainObject]), DEFAULT_CODEC_REGISTRY): @nowarn(
"msg=match may not be exhaustive"
)
fromRegistries(fromProviders(classOf[Number], classOf[DomainObject]), DEFAULT_CODEC_REGISTRY)

implicit val system = ActorSystem()

Expand Down
4 changes: 1 addition & 3 deletions mongodb/src/test/scala/docs/scaladsl/MongoSourceSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ import scala.concurrent.duration._
import org.scalatest.matchers.must.Matchers
import org.scalatest.wordspec.AnyWordSpec

import scala.annotation.nowarn

class MongoSourceSpec
extends AnyWordSpec
with ScalaFutures
Expand Down Expand Up @@ -51,7 +49,7 @@ class MongoSourceSpec
import org.mongodb.scala.bson.codecs.Macros._

val codecRegistry =
fromRegistries(fromProviders(classOf[Number]: @nowarn("msg=match may not be exhaustive")), DEFAULT_CODEC_REGISTRY)
fromRegistries(fromProviders(classOf[Number]), DEFAULT_CODEC_REGISTRY)
// #codecs

// #init-connection
Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ object Dependencies {

val MongoDb = Seq(
libraryDependencies ++= Seq(
"org.mongodb.scala" %% "mongo-scala-driver" % "4.4.0" // ApacheV2
"org.mongodb.scala" %% "mongo-scala-driver" % "4.7.2" // ApacheV2
)
)

Expand Down