-
Notifications
You must be signed in to change notification settings - Fork 147
Conversation
@@ -68,7 +68,7 @@ object BsonTransformer extends DefaultBsonTransformers {} | |||
/** | |||
* Default BsonTransformers for native types. | |||
*/ | |||
trait DefaultBsonTransformers { | |||
trait DefaultBsonTransformers extends LowPrio { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to give different priorities to transformOption
and the collections BsonTransformer because otherwise I was having implicits errors in scala 2.13
} | ||
// it should "be mappable thanks to CanBuildFrom" in { | ||
// Document.empty.map({ kv => kv }) should equal(Document.empty) | ||
// val doc1: Document = docMap.map(kv => kv).to(Document) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the to(Document)
is necessary for scala 2.13, but does not work for other scala versions
80a4409
to
fb40732
Compare
Thanks @jtjeferreira, thats great! I'll have to review the approach / reverts but hopefully, I can get 2.13 support out on top of the java 3.11 driver for the next release! |
2.13 support sounds great |
@jtjeferreira thanks so much for the PR! I've rebased and merged it in b37763a Snapshots are available from sonatype: https://oss.sonatype.org/content/repositories/snapshots/org/mongodb/scala/mongo-scala-driver_2.13/ |
Hi @rozza, any chance to have it published to Maven central? Thank you! |
We would also appreciate a release, as that would unblock Alpakka MongoDb connector release for Scala 2.13: akka/alpakka#1535 |
Apologies for the delay, the 2.7 release should be out by the end of next week. |
Most changes were related to new collections, what I did:
Document
collections to2.13-
folderDocument
collections to2.13+
folder and modified according to https://docs.scala-lang.org/overviews/core/custom-collections.htmlI also revert some commits, that were causing compilation issues...