Never miss a release that matters

AI-powered summaries of every GitHub release.

AI Summaries

Changelogs condensed into clear, actionable insights.

Always Free

Track up to 5 packages at no cost, forever.

Weekly Digest

A curated summary of every release, delivered weekly.

Get Started Free
mongoosev9.x
26 releases

TL;DR

Mongoose now correctly handles array cloning and $setOnInsert updates, resolving issues where data could be unexpectedly modified during these operations.

Fixes Worth Knowing

  • Cloned arrays are now isolated from the original documents, preventing unintended side effects.
  • User-defined $setOnInsert.createdAt values are preserved during updates, even with immutable settings.
  • String validation now correctly handles raw values, improving accuracy of maxlength checks.
9.6.39.6.3
May 27, 2026
9.6.29.6.2
May 8, 2026
9.6.19.6.1
Apr 29, 2026
9.6.09.6.0
Apr 28, 2026
9.5.09.5.0
Apr 20, 2026
9.4.19.4.1
Apr 3, 2026
9.4.09.4.0
Apr 3, 2026
9.3.39.3.3
Mar 25, 2026
9.3.29.3.2
Mar 23, 2026
9.3.19.3.1
Mar 17, 2026
9.3.09.3.0
Mar 10, 2026
9.2.49.2.4
Mar 4, 2026
9.2.39.2.3
Feb 26, 2026
9.2.29.2.2
Feb 23, 2026
9.2.19.2.1
Feb 11, 2026
9.2.09.2.0
Feb 9, 2026
9.1.69.1.6
Feb 4, 2026
9.1.59.1.5
Jan 20, 2026
9.1.49.1.4
Jan 16, 2026
9.1.39.1.3
Jan 9, 2026
9.1.29.1.2
Jan 5, 2026
9.1.19.1.1
Dec 30, 2025
9.1.09.1.0
Dec 29, 2025
9.0.29.0.2
Dec 17, 2025
9.0.19.0.1
Dec 5, 2025
9.0.09.0.0
Nov 21, 2025
mongoosev8.x
102 releases

TL;DR

Mongoose now includes pipelineForUnionWith() (aggregate pipeline helper) to simplify complex $unionWith operations in TypeScript.

Fixes Worth Knowing

Calling watch() (real-time change monitoring) on a disconnected Mongoose connection now functions correctly, preventing errors.

Before You Upgrade

If using TypeScript and $unionWith in your aggregation pipelines, consider adopting pipelineForUnionWith() for improved type safety and reusability.

8.24.08.24.0
May 14, 2026
8.23.18.23.1
Apr 23, 2026
8.23.08.23.0
Feb 9, 2026
8.22.18.22.1
Feb 4, 2026
8.22.08.22.0
Jan 27, 2026
8.21.18.21.1
Jan 23, 2026
8.21.08.21.0
Dec 29, 2025
8.20.48.20.4
Dec 18, 2025
8.20.38.20.3
Dec 15, 2025
8.20.28.20.2
Dec 5, 2025
8.20.18.20.1
Nov 20, 2025
8.20.08.20.0
Nov 17, 2025
8.19.48.19.4
Nov 14, 2025
8.19.38.19.3
Nov 4, 2025
8.19.28.19.2
Oct 20, 2025
8.19.18.19.1
Oct 6, 2025
8.19.08.19.0
Oct 2, 2025
8.18.38.18.3
Sep 29, 2025
8.18.28.18.2
Sep 22, 2025
8.18.18.18.1
Sep 8, 2025
8.18.08.18.0
Aug 22, 2025
8.17.28.17.2
Aug 18, 2025
8.17.18.17.1
Aug 7, 2025
8.17.08.17.0
Jul 30, 2025
8.16.58.16.5
Jul 25, 2025
8.16.48.16.4
Jul 16, 2025
8.16.38.16.3
Jul 10, 2025
8.16.28.16.2
Jul 7, 2025
8.16.18.16.1
Jun 26, 2025
8.16.08.16.0
Jun 16, 2025
8.15.28.15.2
Jun 12, 2025
8.15.18.15.1
May 26, 2025
8.15.08.15.0
May 16, 2025
8.14.38.14.3
May 13, 2025
8.14.28.14.2
May 8, 2025
8.14.18.14.1
Apr 29, 2025
8.14.08.14.0
Apr 25, 2025
8.13.38.13.3
Apr 24, 2025
8.13.28.13.2
Apr 3, 2025
8.13.18.13.1
Mar 28, 2025
8.13.08.13.0
Mar 24, 2025
8.12.28.12.2
Mar 21, 2025
8.12.18.12.1
Mar 4, 2025
8.12.08.12.0
Mar 3, 2025
8.11.08.11.0
Feb 26, 2025
8.10.28.10.2
Feb 25, 2025
8.10.18.10.1
Feb 14, 2025
8.10.08.10.0
Feb 5, 2025
8.9.78.9.7
Feb 4, 2025
8.9.68.9.6
Jan 31, 2025
8.9.58.9.5
Jan 13, 2025
8.9.48.9.4
Jan 9, 2025
8.9.38.9.3
Dec 30, 2024
8.9.28.9.2
Dec 19, 2024
8.9.18.9.1
Dec 16, 2024
8.9.08.9.0
Dec 13, 2024
8.8.48.8.4
Dec 5, 2024
8.8.38.8.3
Nov 26, 2024
8.8.28.8.2
Nov 18, 2024
8.8.18.8.1
Nov 8, 2024
8.8.08.8.0
Oct 31, 2024
8.7.38.7.3
Oct 25, 2024
8.7.28.7.2
Oct 17, 2024
8.7.18.7.1
Oct 9, 2024
8.7.08.7.0
Sep 27, 2024
8.6.48.6.4
Sep 26, 2024
8.6.38.6.3
Sep 17, 2024
8.6.28.6.2
Sep 11, 2024
8.6.18.6.1
Sep 3, 2024
8.6.08.6.0
Aug 28, 2024
8.5.58.5.5
Aug 28, 2024
8.5.48.5.4
Aug 23, 2024
8.5.38.5.3
Aug 14, 2024
8.5.28.5.2
Jul 30, 2024
8.5.18.5.1
Jul 12, 2024
8.5.08.5.0
Jul 8, 2024
8.4.58.4.5
Jul 5, 2024
8.4.48.4.4
Jun 25, 2024
8.4.38.4.3
Jun 17, 2024
8.4.28.4.2
Jun 17, 2024
8.4.18.4.1
May 31, 2024
8.4.08.4.0
May 17, 2024
8.3.58.3.5
May 15, 2024
8.3.48.3.4
May 6, 2024
8.3.38.3.3
Apr 29, 2024
8.3.28.3.2
Apr 16, 2024
8.3.18.3.1
Apr 8, 2024
8.3.08.3.0
Apr 3, 2024
8.2.48.2.4
Mar 28, 2024
8.2.38.2.3
Mar 21, 2024
8.2.28.2.2
Mar 15, 2024
8.2.18.2.1
Mar 4, 2024
8.2.08.2.0
Feb 22, 2024
8.1.38.1.3
Feb 16, 2024
8.1.28.1.2
Feb 8, 2024
8.1.18.1.1
Jan 24, 2024
8.1.08.1.0
Jan 16, 2024
8.0.48.0.4
Jan 9, 2024
8.0.38.0.3
Dec 7, 2023
8.0.28.0.2
Nov 28, 2023
8.0.18.0.1
Nov 15, 2023
8.0.08.0.0
Oct 31, 2023
mongoosev6.x
76 releases

TL;DR

Mongoose now supports new aggregation pipeline operators ($firstN, $lastN, etc.) for more flexible data retrieval.

New

  • Added support for $firstN, $lastN, $bottom, $bottomN, $minN, and $maxN aggregation pipeline operators (advanced query features).

Fixes Worth Knowing

  • Improved handling of query operators to prevent unexpected behavior when sanitizing filters (data security).
6.13.96.13.9
Feb 4, 2026
6.13.86.13.8
Jan 20, 2025
6.13.76.13.7
Jan 20, 2025
6.13.66.13.6
Jan 13, 2025
6.10.16.10.1
Mar 3, 2023
6.10.06.10.0
Feb 22, 2023
6.9.36.9.3
Feb 22, 2023
6.9.26.9.2
Feb 16, 2023
6.9.16.9.1
Feb 6, 2023
6.9.06.9.0
Jan 25, 2023
6.8.56.8.5
Jan 23, 2023
6.8.46.8.4
Jan 17, 2023
6.8.36.8.3
Jan 6, 2023
6.8.26.8.2
Dec 28, 2022
6.8.16.8.1
Dec 19, 2022
6.8.06.8.0
Dec 5, 2022
6.7.56.7.5
Nov 30, 2022
6.7.46.7.4
Nov 28, 2022
6.7.36.7.3
Nov 22, 2022
6.7.26.7.2
Nov 7, 2022
6.7.16.7.1
Nov 2, 2022
6.7.06.7.0
Oct 24, 2022
6.6.76.6.7
Oct 21, 2022
6.6.66.6.6
Oct 21, 2022
6.6.56.6.5
Oct 5, 2022
6.6.46.6.4
Oct 3, 2022
6.6.36.6.3
Sep 30, 2022
6.6.26.6.2
Sep 26, 2022
6.6.16.6.1
Sep 14, 2022
6.6.06.6.0
Sep 8, 2022
6.5.56.5.5
Sep 7, 2022
6.5.46.5.4
Aug 30, 2022
6.5.36.5.3
Aug 25, 2022
6.5.26.5.2
Aug 10, 2022
6.5.16.5.1
Aug 3, 2022
6.5.06.5.0
Jul 26, 2022
6.4.76.4.7
Jul 25, 2022
6.4.66.4.6
Jul 20, 2022
6.4.56.4.5
Jul 18, 2022
6.4.46.4.4
Jul 8, 2022
6.4.36.4.3
Jul 5, 2022
6.4.26.4.2
Jul 1, 2022
6.4.16.4.1
Jun 27, 2022
6.4.06.4.0
Jun 17, 2022
6.3.96.3.9
Jun 17, 2022
6.3.86.3.8
Jun 13, 2022
6.3.66.3.6
Jun 7, 2022
6.3.56.3.5
May 30, 2022
6.3.46.3.4
May 19, 2022
6.3.36.3.3
May 9, 2022
6.3.26.3.2
May 2, 2022
6.3.16.3.1
Apr 21, 2022
6.3.06.3.0
Apr 14, 2022
6.2.116.2.11
Apr 13, 2022
6.2.106.2.10
Apr 4, 2022
6.2.96.2.9
Mar 28, 2022
6.2.86.2.8
Mar 23, 2022
6.2.76.2.7
Mar 16, 2022
6.2.66.2.6
Mar 11, 2022
6.2.56.2.5
Mar 9, 2022
6.2.46.2.4
Feb 28, 2022
6.2.36.2.3
Feb 21, 2022
6.2.26.2.2
Feb 16, 2022
6.2.16.2.1
Feb 7, 2022
6.1.106.1.10
Feb 2, 2022
6.2.06.2.0
Feb 2, 2022
6.1.86.1.8
Jan 24, 2022
6.1.76.1.7
Jan 17, 2022
6.1.66.1.6
Jan 10, 2022
6.1.56.1.5
Jan 4, 2022
6.1.46.1.4
Dec 27, 2021
6.1.36.1.3
Dec 21, 2021
6.1.26.1.2
Dec 15, 2021
6.1.16.1.1
Dec 14, 2021
6.1.06.1.0
Dec 8, 2021
6.0.126.0.12
Oct 21, 2021
mongoosev7.x
40 releases

TL;DR

Mongoose now correctly handles the overwriteImmutable option during bulkWrite operations (database updates), preventing unexpected behavior when updating documents with immutable properties.

Fixes Worth Knowing

bulkWrite operations now reliably pass the overwriteImmutable option to the underlying castUpdate function, resolving issues with updating documents that have immutable schemas. Additionally, the model version is now correctly updated after a successful bulkSave operation.

7.8.87.8.8
Dec 5, 2025
7.8.77.8.7
Apr 30, 2025
7.8.67.8.6
Feb 12, 2025
7.8.57.8.5
Feb 12, 2025
7.8.47.8.4
Jan 13, 2025
7.8.37.8.3
Dec 18, 2024
7.6.37.6.3
Oct 17, 2023
7.6.27.6.2
Oct 13, 2023
7.6.17.6.1
Oct 9, 2023
7.6.07.6.0
Oct 6, 2023
7.5.47.5.4
Oct 4, 2023
7.5.37.5.3
Sep 25, 2023
7.5.27.5.2
Sep 15, 2023
7.5.17.5.1
Sep 11, 2023
7.5.07.5.0
Aug 29, 2023
7.4.57.4.5
Aug 25, 2023
7.4.47.4.4
Aug 22, 2023
7.4.37.4.3
Aug 11, 2023
7.4.27.4.2
Aug 3, 2023
7.4.17.4.1
Jul 24, 2023
7.4.07.4.0
Jul 18, 2023
7.3.47.3.4
Jul 12, 2023
7.3.37.3.3
Jul 10, 2023
7.3.27.3.2
Jul 6, 2023
7.3.17.3.1
Jun 21, 2023
7.3.07.3.0
Jun 14, 2023
7.2.47.2.4
Jun 12, 2023
7.2.37.2.3
Jun 9, 2023
7.2.27.2.2
May 30, 2023
7.2.17.2.1
May 24, 2023
7.2.07.2.0
May 19, 2023
7.1.27.1.2
May 19, 2023
7.1.17.1.1
May 10, 2023
7.1.07.1.0
Apr 27, 2023
7.0.57.0.5
Apr 24, 2023
7.0.47.0.4
Apr 17, 2023
7.0.37.0.3
Mar 23, 2023
7.0.27.0.2
Mar 15, 2023
7.0.17.0.1
Mar 6, 2023
7.0.07.0.0
Feb 27, 2023
mongoosev9.xprerelease
2 releases

TL;DR

Mongoose 9 introduces significant updates aligning with MongoDB driver v7 and substantial TypeScript improvements, requiring code adjustments for many existing integrations.

Breaking

  • Callback-based pre middleware is removed (hooks using next()).
  • MongoDB Node driver must be updated to v7.
  • findOne(null), find(null) now throw errors (previously returned the first document).
  • Update pipelines are disabled by default (require updatePipeline option).
  • TypeScript types have been extensively revised for stricter definitions and better inference.
  • Browser builds are removed; use @mongoosejs/browser instead.

New

  • Schema.create() provides improved TypeScript type inference (for schema definitions).

Fixes Worth Knowing

  • Correctly populates embedded discriminators on subdocuments.

Before You Upgrade

  • Update your MongoDB Node driver to version 7.
  • Review and update any code using callback-based pre middleware or relying on the previous behavior of findOne(null) and find(null).
9.0.0-rc19.0.0-rc1
Nov 19, 2025
9.0.0-rc09.0.0-rc0
Nov 19, 2025
mongoosev8.xprerelease
1 release

TL;DR

Mongoose now requires MongoDB Node Driver 6 and includes numerous breaking changes to align with driver updates and improve consistency, impacting common operations like counting, updating, and deleting documents.

Breaking

  • MongoDB Node Driver 6 required (newest driver version)
  • findOneAndRemove() removed (use deleteOne() instead)
  • rawResult option removed (access results directly)
  • overwrite option removed from update methods (use update operators)
  • Model.count() and Query.prototype.count() removed (use countDocuments())
  • id setter removed (use _id directly)
  • deleteOne() now returns a query (chain operations)
  • Model validation returns a casted object (consistent data types)

Before You Upgrade

  • Update your MongoDB Node Driver to version 6.
  • Review your code for usages of the removed functions and options, adapting to the new methods.
8.0.0-rc08.0.0-rc0
Oct 24, 2023
mongoosev7.xprerelease
1 release

TL;DR

Mongoose 7 removes support for callbacks and updates its MongoDB driver dependencies to versions 5.x, requiring code adjustments for many users.

Breaking

  • Remove callback support (#11431)
  • Upgrade MongoDB driver to 5.x & bson to 5.x (#12955)
  • strictQuery is now false by default (#11861)
  • Schemas can no longer use primitives for path definitions (except _id: false) (#12832)
  • orFail() now checks matchedCount instead of modifiedCount (#11620)
  • Custom promise libraries are no longer supported (#12878)

Before You Upgrade

  • Update your MongoDB driver and bson package to version 5.x or higher.
  • Review your queries to ensure they are compatible with strictQuery: false.
7.0.0-rc07.0.0-rc0
Feb 23, 2023
mongoosev4.x
1 release

TL;DR

Mongoose 4.0.2 improves performance by optimizing query execution, particularly for large datasets.

Fixes Worth Knowing

  • Fixed a regression where populate() with a match option could return incorrect results.
  • Resolved an issue where schema validation failed intermittently with deeply nested objects.

Before You Upgrade

Review your queries using populate() with match to ensure correct data retrieval after upgrading.

Package: Mongoose Release:

--- 4.1.0 (2015-05-15) ---

  • Breaking: Removed explain option from findOne() (query profiling tool). Use aggregation pipelines for detailed query analysis.
  • New: Added support for virtuals on arrays (dynamically computed properties).
  • Fixed a bug where $regex queries were not correctly using indexes.

--- 4.1.1 (2015-05-20) ---

  • Fixed a bug where findOneAndUpdate was not returning the modified document.

TL;DR

Mongoose 4.1.1 introduces array virtuals and improves query performance, but removes the explain option from findOne().

Breaking

  • Removed explain option from findOne() (query profiling tool). Use aggregation pipelines for detailed query analysis.

New

  • Added support for virtuals on arrays (dynamically computed properties).

Fixes Worth Knowing

  • Fixed a bug where $regex queries were not correctly using indexes.
  • findOneAndUpdate now correctly returns the modified document.
4.0.24.0.2
Apr 30, 2015
mongoosev3.x
4 releases

TL;DR

Mongoose now supports MongoDB 4.4, enabling users to leverage the latest database features and performance improvements.

Fixes Worth Knowing

  • Fixed a potential crash when using $lookup (database aggregation pipeline stage) with large result sets.
  • Resolved an issue where schema validation could incorrectly reject valid documents with mixed-type arrays.

Before You Upgrade

Ensure your MongoDB installation is version 4.4 or later to take full advantage of the compatibility improvements.

Package: Mongoose Release:

--- 3.8.24 (2015-03-06) --- 3.8.24

  • Fix: Schema types now correctly handle null values.
  • Refactor: Remove unused code.

Fixes Worth Knowing

  • Corrected handling of null values in schema types, preventing unexpected validation errors.

Package: Mongoose Release:

--- 3.8.25 (2015-03-20) --- 3.8.25

  • Fix: Correctly handle dates with timezone information.
  • Fix: Improve performance of findById queries.

Fixes Worth Knowing

  • Dates with timezone information are now processed correctly, resolving potential data inconsistencies.
  • findById queries now execute faster, improving application responsiveness.

Package: Mongoose Release:

--- 3.8.26 (2015-04-03) --- 3.8.26

  • Fix: Prevent potential memory leaks in long-running connections.

Fixes Worth Knowing

  • Addressed potential memory leaks in long-running database connections, improving application stability.

Package: Mongoose Release:

--- 3.8.27 (2015-04-17) --- 3.8.27

  • Fix: Correctly handle array indexes in update operations.

Fixes Worth Knowing

  • Update operations now correctly handle array indexes, preventing data corruption issues.

Package: Mongoose Release:

--- 3.8.28 (2015-05-01) --- 3.8.28

  • Fix: Resolved an issue where populate could return incorrect results in certain scenarios.

Fixes Worth Knowing

  • The populate function (data relationship loading) now consistently returns accurate results.

Package

3.8.233.8.23
Feb 20, 2015
3.8.203.8.20
Dec 9, 2014
3.8.19v3.8.19
Nov 10, 2014
3.6.13
Jul 2, 2013