Skip to content

Commit

Permalink
Add clarification about breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmessinger committed Mar 23, 2023
1 parent aa5d740 commit a4a304e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
9 changes: 4 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
## v1.0.0

* Enhancements
* Add `update/5` for handling more complex update queries like multiple upserts.
* Verify support with MongoDB 4.4 and 5.0
* BREAKING CHANGES
- `Mongo.find_one_and_replace/5`, `Mongo.find_one_and_update/5` now return `{:ok, Mongo.FindAndModifyResult{:value, :matched_count, :upserted_id, :updated_existing}}` instead of `{:ok, doc}`. The change should be rather mechanical as `value` is the same as `doc` only wrapped in a struct containing other information about the write.

* Internal Improvements
* Added CI via Github actions

* Possible incompatibilities
* Bump supported OTP version to v24

## v0.6.0-dev

* Enhancements
* Add `update/5` for handling more complex update queries like multiple upserts.
* Add support with MongoDB 4.4 and 5.0
* Add support for MongoDB sessions
* Add support for transactions
* Add support for hiding configuration options from logs
Expand Down
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@

[Documentation for MongoDB is available online](http://hexdocs.pm/mongodb/).

## Features
## 1.0.0 Released: March 22, 2023

There's one breaking change!
- `Mongo.find_one_and_replace/5`, `Mongo.find_one_and_update/5` now return `{:ok, Mongo.FindAndModifyResult{:value, :matched_count, :upserted_id, :updated_existing}}` instead of `{:ok, doc}`
The change should be rather mechanical.

* Supports MongoDB versions 3.4, 3.6, 4.0, 4.2, 4.4, 5.0 (on 1.0-beta)
## Features
* Supports MongoDB versions 3.4, 3.6, 4.0, 4.2, 4.4, 5.0
* Connection pooling (through `db_connection`)
* Streaming cursors
* Performant ObjectID generation
Expand All @@ -16,17 +21,9 @@
* Replica sets
* Sessions and transactions

## Immediate Roadmap

* Make sure requests don't go over the 16 MiB limit
* New 2.6 write queries and bulk writes

## Tentative Roadmap

* Use meta-driver test suite
* Server selection / Read preference
- https://www.mongodb.com/blog/post/server-selection-next-generation-mongodb-drivers
- http://docs.mongodb.org/manual/reference/read-preference

## Data representation

Expand Down

0 comments on commit a4a304e

Please sign in to comment.