Skip to content

Commit 547680d

Browse files
authored
Merge pull request #12200 from hasezoey/updateCompat
docs(compatibility): change to use a table
2 parents 25e4580 + d459c8f commit 547680d

File tree

1 file changed

+26
-13
lines changed

1 file changed

+26
-13
lines changed

docs/compatibility.md

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,33 @@
11
# MongoDB Server Version Compatibility
22

3-
Mongoose relies on the [MongoDB Node.js Driver](http://mongodb.github.io/node-mongodb-native/) to talk to MongoDB.
3+
<style>
4+
tr > td, tr > th {
5+
border: 1px solid;
6+
padding: 8px;
7+
}
8+
9+
table tr:nth-child(2n) {
10+
background: rgba(0,0,0,.03);
11+
}
12+
</style>
13+
14+
Mongoose relies on the [MongoDB Node.js Driver](http://mongodb.github.io/node-mongodb-native/) to talk to MongoDB.
415
You can refer to [this table](https://docs.mongodb.com/drivers/node/current/compatibility/) for up-to-date information as to which version of the MongoDB driver supports which version of MongoDB.
516

617
Below are the [semver](http://semver.org/) ranges representing which versions of mongoose are compatible with the listed versions of MongoDB server.
718

8-
* MongoDB Server 2.4.x: mongoose `^3.8` or `4.x`
9-
* MongoDB Server 2.6.x: mongoose `^3.8.8` or `4.x`
10-
* MongoDB Server 3.0.x: mongoose `^3.8.22`, `4.x`, or `5.x`
11-
* MongoDB Server 3.2.x: mongoose `^4.3.0` or `5.x`
12-
* MongoDB Server 3.4.x: mongoose `^4.7.3` or `5.x`
13-
* MongoDB Server 3.6.x: mongoose `5.x`
14-
* MongoDB Server 4.0.x: mongoose `^5.2.0` or `6.x`
15-
* MongoDB Server 4.2.x: mongoose `^5.7.0` or `6.x`
16-
* MongoDB Server 4.4.x: mongoose `^5.10.0` or `6.x`
17-
* MongoDB Server 5.x: mongoose `^6.0.0`
18-
* MongoDB Server 6.x: mongoose `^6.5.0`
19+
| MongoDB Sever | Mongoose |
20+
| :-----------: | :----------------------------: |
21+
| `6.x` | `^6.5.0` |
22+
| `5.x` | `^6.0.0` |
23+
| `4.4.x` | `^5.10.0 \| ^6.0.0` |
24+
| `4.2.x` | `^5.7.0 \| ^6.0.0` |
25+
| `4.0.x` | `^5.2.0 \| ^6.0.0` |
26+
| `3.6.x` | `^5.0.0` |
27+
| `3.4.x` | `^4.7.3 \| ^5.0.0` |
28+
| `3.2.x` | `^4.3.0 \| 5.0.0` |
29+
| `3.0.x` | `^3.8.22 \| ^4.0.0 \| ^5.0.0` |
30+
| `2.6.x` | `^3.8.8 \| ^4.0.0` |
31+
| `2.4.x` | `^3.8.0 \| ^4.0.0` |
1932

20-
Note that Mongoose 5.x dropped support for all versions of MongoDB before 3.0.0. If you need to use MongoDB 2.6 or older, use Mongoose 4.x.
33+
Note that Mongoose `5.x` dropped support for all versions of MongoDB before `3.0.0`. If you need to use MongoDB `2.6` or older, use Mongoose `4.x`.

0 commit comments

Comments
 (0)