Skip to content

Commit 0e9687f

Browse files
Update dependency mongoose to v9 (#355)
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [mongoose](https://mongoosejs.com) ([source](https://redirect.github.com/Automattic/mongoose)) | [`^8.19.0` -> `^9.0.0`](https://renovatebot.com/diffs/npm/mongoose/8.20.1/9.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/mongoose/9.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/mongoose/8.20.1/9.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>Automattic/mongoose (mongoose)</summary> ### [`v9.0.0`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#900--2025-11-21) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.20.1...9.0.0) \================== - BREAKING CHANGE: drop support for callback-based pre middleware, e.g. `next()` in `pre()` hooks - BREAKING CHANGE: update to MongoDB Node driver v7 - BREAKING CHANGE: make UUID schema type return bson UUIDs [#&#8203;15378](https://redirect.github.com/Automattic/mongoose/issues/15378) - BREAKING CHANGE: make findOne(null), find(null), etc. throw an error instead of returning first doc [#&#8203;15019](https://redirect.github.com/Automattic/mongoose/issues/15019) [#&#8203;14948](https://redirect.github.com/Automattic/mongoose/issues/14948) - BREAKING CHANGE: disallow update pipelines by default, require updatePipeline option [#&#8203;15586](https://redirect.github.com/Automattic/mongoose/issues/15586) [#&#8203;14424](https://redirect.github.com/Automattic/mongoose/issues/14424) - BREAKING CHANGE: call virtual ref function with subdoc, not top-level doc [#&#8203;14652](https://redirect.github.com/Automattic/mongoose/issues/14652) [#&#8203;12440](https://redirect.github.com/Automattic/mongoose/issues/12440) [#&#8203;12363](https://redirect.github.com/Automattic/mongoose/issues/12363) - BREAKING CHANGE(types): make create() and insertOne() params more strict, remove generics to prevent type inference [#&#8203;15587](https://redirect.github.com/Automattic/mongoose/issues/15587) [#&#8203;15355](https://redirect.github.com/Automattic/mongoose/issues/15355) - BREAKING CHANGE(types): make FilterQuery properties no longer resolve to any in TypeScript [#&#8203;15422](https://redirect.github.com/Automattic/mongoose/issues/15422) - BREAKING CHANGE(types): change `this` to HydratedDocument for default() and required(), HydratedDocument | Query for validate() [#&#8203;15020](https://redirect.github.com/Automattic/mongoose/issues/15020) [#&#8203;14696](https://redirect.github.com/Automattic/mongoose/issues/14696) - BREAKING CHANGE(types): make id a virtual in TypeScript rather than a property on Document base class [#&#8203;15572](https://redirect.github.com/Automattic/mongoose/issues/15572) [#&#8203;13079](https://redirect.github.com/Automattic/mongoose/issues/13079) - BREAKING CHANGE(types): consolidate RootQuerySelector, Condition, etc. types with MongoDB driver's [#&#8203;15593](https://redirect.github.com/Automattic/mongoose/issues/15593) - BREAKING CHANGE: asyncify update validators, SchemaType.prototype.doValidate(), save hooks for improved stack traces [#&#8203;15312](https://redirect.github.com/Automattic/mongoose/issues/15312) - BREAKING CHANGE: remove bson as direct dependency, use mongodb/lib/bson instead [#&#8203;15576](https://redirect.github.com/Automattic/mongoose/issues/15576) [#&#8203;15154](https://redirect.github.com/Automattic/mongoose/issues/15154) - BREAKING CHANGE: remove \_executionStack, make validate() async function and call Kareem hooks directly vs through wrappers [#&#8203;15298](https://redirect.github.com/Automattic/mongoose/issues/15298) [#&#8203;14906](https://redirect.github.com/Automattic/mongoose/issues/14906) - BREAKING CHANGE: remove browser build, move to [@&#8203;mongoosejs/browser](https://redirect.github.com/mongoosejs/browser) instead [#&#8203;15385](https://redirect.github.com/Automattic/mongoose/issues/15385) [#&#8203;15296](https://redirect.github.com/Automattic/mongoose/issues/15296) - BREAKING CHANGE: remove schematype caster and casterConstructor properties in favor of embeddedSchemaType and Constructor [#&#8203;15513](https://redirect.github.com/Automattic/mongoose/issues/15513) [#&#8203;15179](https://redirect.github.com/Automattic/mongoose/issues/15179) - BREAKING CHANGE: adding missing pluralizations, fixing pluralization: virus -> viruses [#&#8203;14247](https://redirect.github.com/Automattic/mongoose/issues/14247) [ItsBradyDavis](https://redirect.github.com/ItsBradyDavis) - BREAKING CHANGE: remove connection noListener option [#&#8203;15641](https://redirect.github.com/Automattic/mongoose/issues/15641) [#&#8203;15640](https://redirect.github.com/Automattic/mongoose/issues/15640) - feat(types): add Schema.create() for TypeScript type inference [#&#8203;15482](https://redirect.github.com/Automattic/mongoose/issues/15482) [#&#8203;14954](https://redirect.github.com/Automattic/mongoose/issues/14954) - chore: remove examples directory [#&#8203;15597](https://redirect.github.com/Automattic/mongoose/issues/15597) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/LUISDASARTIMANHAS/template-server-express-node-js). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xNi4xIiwidXBkYXRlZEluVmVyIjoiNDIuMTYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
2 parents f2c51b2 + 0733c55 commit 0e9687f

File tree

2 files changed

+94
-21
lines changed

2 files changed

+94
-21
lines changed

package-lock.json

Lines changed: 93 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"express-ws": "^5.0.2",
1919
"helmet": "^8.1.0",
2020
"jsonwebtoken": "^9.0.2",
21-
"mongoose": "^8.19.0",
21+
"mongoose": "^9.0.0",
2222
"multer": "^2.0.2",
2323
"node-cmd": "^5.0.0",
2424
"node-fetch": "^3.3.2",

0 commit comments

Comments
 (0)