0.14.0 • Start of the Multiplatform driver, the great rename, $nin and $regex¶
Breaking changes¶
This version contains a major rename that affects almost everything in the DSL module. To learn more about the reasons we did it, see #35 and !54. Although future versions may still have breakages, this was the last planned major change.
- Renamed package
models
tocommand
- Renamed package
expr
toquery
- Moved contents of package
expr.common
totree
- Moved contents of package
options
tocommand
- Moved contents of package
options.common
tocommand
- Renamed
FilterOperators
toFilterQuery
, removedFilterExpression
- Renamed
PredicateOperators
toFilterQueryPredicate
, removedPredicateExpression
- Renamed
UpdateOperators
toUpdateQuery
, removedUpdateExpression
- Renamed
UpsertOperators
toUpsertQuery
- Renamed
Expression
(and its hierarchy) toBsonNode
- Renamed
ValueDsl
toAggregationOperators
BSON¶
- Added
Bson.toByteArray()
andBsonArray.toByteArray()
to access the raw binary BSON representation (!49) writeBinaryData
's subtype parameter was changed fromByte
toUByte
to better mirror the BSON spec (!49)- Added
BsonType.fromCode()
to more easily access a BSON type from its binary representation (!50) - Added
Bson.read()
andBsonArray.read()
to access contents of BSON objects (!50) - Added
BsonContext.readDocument()
andBsonContext.readArray()
to convert from the binary BSON representation to driver objects (!50) - Documented that BSON-writeable objects much implement
toString
with a JSON representation (!54)
BSON (Official)¶
- Removed the dependency on NPM
bson
since it is currently unused (!49)
BSON (Multiplatform)¶
This new module is a pure Kotlin implementation of the BSON spec (#48, #49).
- Write booleans (!49) and read them (!50)
- Write int32 and int64 (!49) and read them (!50)
- Write strings (!49) and read them (!50)
- Write documents (!49) and read them (!50)
- Write doubles (!49) and read them (!50)
- Write arrays (!49) and read them (!50)
- Write binary data (!49)
- Write JS (!49)
- Write datetime (49)
- Write null (!49) and read them (!50)
DSL¶
- Added the filter operator
$nin
(!52) - Added the filter operator
$regex
(!56) - Added the convenience function
BsonNode.toBson()
(!54)
Synchronous driver¶
- Moved
UpdatePipelineOperators
into the correct package (!54)
Deployment¶
- The project is now tested with MongoDB versions 6.0.21, 7.0.18 and 8.0.6 (!53)
Browse the documentation for this version • View release in GitLab