From f1147a62aa39be20cc54abd44673e7cefeb94e1d Mon Sep 17 00:00:00 2001 From: hasezoey Date: Tue, 26 Jul 2022 12:23:17 +0200 Subject: [PATCH 1/4] docs(api_split.pug): add "code" to headers --- docs/api_split.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api_split.pug b/docs/api_split.pug index f9addbca550..d15a3318eed 100644 --- a/docs/api_split.pug +++ b/docs/api_split.pug @@ -49,7 +49,7 @@ block content hr.separate-api-elements h3(id=prop.anchorId) a(href='#' + prop.anchorId) - | #{prop.string} + | #{prop.string} if prop.deprecated ~DEPRECATED~ if prop.param != null From 1e9f1e6e0b7bb45c572e2fe5a96132658f7af9ce Mon Sep 17 00:00:00 2001 From: hasezoey Date: Tue, 26 Jul 2022 12:32:16 +0200 Subject: [PATCH 2/4] docs(api_split.pug): add "code" index list --- docs/api_split.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api_split.pug b/docs/api_split.pug index d15a3318eed..e17d743a877 100644 --- a/docs/api_split.pug +++ b/docs/api_split.pug @@ -44,7 +44,7 @@ block content each prop in props li a(href='#' + prop.anchorId) - | #{prop.string} + | #{prop.string} each prop in props hr.separate-api-elements h3(id=prop.anchorId) From 97be3cf3398455cebaaa36409e50cb2e40ebabeb Mon Sep 17 00:00:00 2001 From: hasezoey Date: Tue, 26 Jul 2022 12:28:09 +0200 Subject: [PATCH 3/4] docs(api_split.pug): add "code" to sidebar entries --- docs/api_split.pug | 2 +- docs/css/api.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/api_split.pug b/docs/api_split.pug index f9addbca550..287a7338e1f 100644 --- a/docs/api_split.pug +++ b/docs/api_split.pug @@ -33,7 +33,7 @@ block content each prop in item.props li a(href='#' + prop.anchorId) - | #{prop.string} + | #{prop.string} - else div.nav-item-title a(href=item.name.toLowerCase() + '.html') diff --git a/docs/css/api.css b/docs/css/api.css index 38549759d1a..5d3e6ffdb45 100644 --- a/docs/css/api.css +++ b/docs/css/api.css @@ -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; From d459c8ff31ecf3baec7b880dd810f3a7431aba3d Mon Sep 17 00:00:00 2001 From: hasezoey Date: Tue, 2 Aug 2022 15:48:39 +0200 Subject: [PATCH 4/4] docs(compatibility): change to use a table --- docs/compatibility.md | 39 ++++++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/docs/compatibility.md b/docs/compatibility.md index 73b64c9e83a..f477f185d6b 100644 --- a/docs/compatibility.md +++ b/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. + + +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`.