Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Automattic/mongoose
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Aug 3, 2022
2 parents b57efec + 18b6199 commit c9d6cc5
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 16 deletions.
6 changes: 3 additions & 3 deletions docs/api_split.pug
Expand Up @@ -33,7 +33,7 @@ block content
each prop in item.props
li
a(href='#' + prop.anchorId)
| #{prop.string}
| <code>#{prop.string}</code>
- else
div.nav-item-title
a(href=item.name.toLowerCase() + '.html')
Expand All @@ -44,12 +44,12 @@ block content
each prop in props
li
a(href='#' + prop.anchorId)
| #{prop.string}
| <code>#{prop.string}</code>
each prop in props
hr.separate-api-elements
h3(id=prop.anchorId)
a(href='#' + prop.anchorId)
| #{prop.string}
| <code>#{prop.string}</code>
if prop.deprecated
<span class="deprecated">~DEPRECATED~</span>
if prop.param != null
Expand Down
39 changes: 26 additions & 13 deletions docs/compatibility.md
@@ -1,20 +1,33 @@
# MongoDB Server Version Compatibility

Mongoose relies on the [MongoDB Node.js Driver](http://mongodb.github.io/node-mongodb-native/) to talk to MongoDB.
<style>
tr > td, tr > th {
border: 1px solid;
padding: 8px;
}

table tr:nth-child(2n) {
background: rgba(0,0,0,.03);
}
</style>

Mongoose relies on the [MongoDB Node.js Driver](http://mongodb.github.io/node-mongodb-native/) to talk to MongoDB.
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.

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

* MongoDB Server 2.4.x: mongoose `^3.8` or `4.x`
* MongoDB Server 2.6.x: mongoose `^3.8.8` or `4.x`
* MongoDB Server 3.0.x: mongoose `^3.8.22`, `4.x`, or `5.x`
* MongoDB Server 3.2.x: mongoose `^4.3.0` or `5.x`
* MongoDB Server 3.4.x: mongoose `^4.7.3` or `5.x`
* MongoDB Server 3.6.x: mongoose `5.x`
* MongoDB Server 4.0.x: mongoose `^5.2.0` or `6.x`
* MongoDB Server 4.2.x: mongoose `^5.7.0` or `6.x`
* MongoDB Server 4.4.x: mongoose `^5.10.0` or `6.x`
* MongoDB Server 5.x: mongoose `^6.0.0`
* MongoDB Server 6.x: mongoose `^6.5.0`
| MongoDB Sever | Mongoose |
| :-----------: | :----------------------------: |
| `6.x` | `^6.5.0` |
| `5.x` | `^6.0.0` |
| `4.4.x` | `^5.10.0 \| ^6.0.0` |
| `4.2.x` | `^5.7.0 \| ^6.0.0` |
| `4.0.x` | `^5.2.0 \| ^6.0.0` |
| `3.6.x` | `^5.0.0` |
| `3.4.x` | `^4.7.3 \| ^5.0.0` |
| `3.2.x` | `^4.3.0 \| 5.0.0` |
| `3.0.x` | `^3.8.22 \| ^4.0.0 \| ^5.0.0` |
| `2.6.x` | `^3.8.8 \| ^4.0.0` |
| `2.4.x` | `^3.8.0 \| ^4.0.0` |

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.
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`.
4 changes: 4 additions & 0 deletions docs/css/api.css
Expand Up @@ -32,6 +32,10 @@
font-size: 0.66em;
}

.nav-item-sub > li {
padding: 2px 0px;
}

.api-nav ul {
margin-top: 0.25em;
padding-left: 1em;
Expand Down

0 comments on commit c9d6cc5

Please sign in to comment.