Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit a4a304e

Browse files
Add clarification about breaking change
1 parent aa5d740 commit a4a304e

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed

CHANGELOG.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
## v1.0.0
22

3-
* Enhancements
4-
* Add `update/5` for handling more complex update queries like multiple upserts.
5-
* Verify support with MongoDB 4.4 and 5.0
3+
* BREAKING CHANGES
4+
- `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.
65

76
* Internal Improvements
87
* Added CI via Github actions
98

109
* Possible incompatibilities
1110
* Bump supported OTP version to v24
1211

13-
## v0.6.0-dev
14-
1512
* Enhancements
13+
* Add `update/5` for handling more complex update queries like multiple upserts.
14+
* Add support with MongoDB 4.4 and 5.0
1615
* Add support for MongoDB sessions
1716
* Add support for transactions
1817
* Add support for hiding configuration options from logs

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@
44

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

7-
## Features
7+
## 1.0.0 Released: March 22, 2023
8+
9+
There's one breaking change!
10+
- `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}`
11+
The change should be rather mechanical.
812

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

19-
## Immediate Roadmap
20-
21-
* Make sure requests don't go over the 16 MiB limit
22-
* New 2.6 write queries and bulk writes
2324

2425
## Tentative Roadmap
25-
2626
* Use meta-driver test suite
27-
* Server selection / Read preference
28-
- https://www.mongodb.com/blog/post/server-selection-next-generation-mongodb-drivers
29-
- http://docs.mongodb.org/manual/reference/read-preference
3027

3128
## Data representation
3229

0 commit comments

Comments
 (0)