-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
docs: add version support and check version docs
- Loading branch information
Showing
7 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# How to Check Your Mongoose Version | ||
|
||
To check what version of Mongoose you are using in Node.js, print out the [`mongoose.version` property](./api/mongoose.html#Mongoose.prototype.version) as follows. | ||
|
||
```javascript | ||
const mongoose = require('mongoose'); | ||
|
||
console.log(mongoose.version); // '7.x.x' | ||
``` | ||
|
||
We recommend printing the Mongoose version from Node.js, because that better handles cases where you have multiple versions of Mongoose installed. | ||
You can also execute the above logic from your terminal using Node.js' `-e` flag as follows. | ||
|
||
``` | ||
# Prints current Mongoose version, e.g. 7.0.3 | ||
node -e "console.log(require('mongoose').version)" | ||
``` | ||
|
||
## Using `npm list` | ||
|
||
You can also [get the installed version of the Mongoose npm package](https://masteringjs.io/tutorials/npm/version) using `npm list`. | ||
|
||
``` | ||
$ npm list mongoose | ||
test@ /path/to/test | ||
└── mongoose@7.0.3 | ||
``` | ||
|
||
`npm list` is helpful because it can identify if you have multiple versions of Mongoose installed. | ||
|
||
Other package managers also support similar functions: | ||
|
||
- [`yarn list --pattern "mongoose"`](https://classic.yarnpkg.com/lang/en/docs/cli/list/) | ||
- [`pnpm list "mongoose"`](https://pnpm.io/cli/list) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Version Support | ||
|
||
Mongoose 7.x (released February 27, 2023) is the current Mongoose major version. | ||
We ship all new bug fixes and features to 7.x. | ||
|
||
## Mongoose 6 | ||
|
||
Mongoose 6.x (released August 24, 2021) is currently in legacy support. | ||
We will continue to ship bug fixes to Mongoose 6 until August 24, 2023. | ||
After August 24, 2023, we will only ship security fixes, and backport requested fixes to Mongoose 6. | ||
Please open a [bug report on GitHub](https://github.com/Automattic/mongoose/issues/new?assignees=&labels=&template=bug.yml) to request backporting a fix to Mongoose 6. | ||
|
||
We are **not** actively backporting any new features from Mongoose 7 into Mongoose 6. | ||
Until August 24, 2023, we will backport requested features into Mongoose 6; please open a [feature request on GitHub](https://github.com/Automattic/mongoose/issues/new?assignees=&labels=enhancement%2Cnew+feature&template=feature.yml) to request backporting a feature into Mongoose 6. | ||
After August 24, 2023, we will not backport any new features into Mongoose 6. | ||
|
||
We do not currently have a formal end of life (EOL) date for Mongoose 6. | ||
However, we will not end support for Mongoose 6 until at least January 1, 2024. | ||
|
||
## Mongoose 5 | ||
|
||
Mongoose 5.x (released January 17, 2018) is currently only receiving security fixes and requested bug fixes. | ||
Please open a [bug report on GitHub](https://github.com/Automattic/mongoose/issues/new?assignees=&labels=&template=bug.yml) to request backporting a fix to Mongoose 5. | ||
We will **not** backport any new features from Mongoose 6 or Mongoose 7 into Mongoose 5. | ||
|
||
Mongoose 5.x end of life (EOL) is March 1, 2024. | ||
Mongoose 5.x will no longer receive any updates, security or otherwise, after that date. |