0.19.0 • Pure Kotlin ObjectId and Timestamp, $switch, type aggregation operators, bitwise filter operators, writeConcern and readPreference¶
BSON¶
- Moved
ObjectIdtoopensavvy.ktmongo.bson.types(#6e455683, !80) - Added
ObjectIdGeneratorwith multiple implementations (!80) - Added
ObjectId.MINandObjectId.MAX(!80) - Added
BsonContext.newId(!80) - Added
BsonReader.readInstantandBsonWriter.writeInstant(#244237ed, !88) - Added
opensavvy.ktmongo.bson.types.Timestamp(!89) - Changed timestamp APIs from
Longto the newTimestamptype (!89)
BSON (official)¶
- Deleted the old expect class opensavvy.ktmongo.bson.official.types.ObjectId (!80)
- Added a codec for the new ObjectId (!80)
BSON (multiplatform)¶
- Decreased data copying when reading data (#417128b5, !84)
- Removed autoboxing in the implementation of the reader (#17cab93a, !84)
- Added no-copy piping of BSON from a reader to a writer (!86)
- Added support for reading and writing
BsonType.DateTimeaskotlin.time.Instant(#e15001f4, !88) - Added support for reading and writing
BsonType.RegExp(#2bb5e544, !88) - Added support for reading and writing
BsonType.Timestamp(#aa3c9a9e, !89)
Official driver¶
JvmMongoCollection.findnow returns aJvmMongoIterableinstead of aMongoIterable(!85)
DSL¶
- Added the aggregation operator
$switch(!90) - Added the aggregation operators
$type,$isArray,$isNumber,$toBoolean,$toDate,$toDouble,$toInt,$toLong,$toObjectId,$toStringand$toUUID(!91) - Added the filter operators
$bitAllClear,$bitsAllSet,$bitsAnyClearand$bitsAnySet(!92) - Added the option
writeConcern(!93) - Added the option
readPreference(!94) - Created the
Commandinterface and reorganized all commands to emit their BSON representation (!95)
Documentation¶
Dependencies¶
- Kotlin 2.2.0
Browse the documentation for this version • View release in GitLab