Commit 0e9687f
authored
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) |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](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
[#​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
[#​15019](https://redirect.github.com/Automattic/mongoose/issues/15019)
[#​14948](https://redirect.github.com/Automattic/mongoose/issues/14948)
- BREAKING CHANGE: disallow update pipelines by default, require
updatePipeline option
[#​15586](https://redirect.github.com/Automattic/mongoose/issues/15586)
[#​14424](https://redirect.github.com/Automattic/mongoose/issues/14424)
- BREAKING CHANGE: call virtual ref function with subdoc, not top-level
doc
[#​14652](https://redirect.github.com/Automattic/mongoose/issues/14652)
[#​12440](https://redirect.github.com/Automattic/mongoose/issues/12440)
[#​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
[#​15587](https://redirect.github.com/Automattic/mongoose/issues/15587)
[#​15355](https://redirect.github.com/Automattic/mongoose/issues/15355)
- BREAKING CHANGE(types): make FilterQuery properties no longer resolve
to any in TypeScript
[#​15422](https://redirect.github.com/Automattic/mongoose/issues/15422)
- BREAKING CHANGE(types): change `this` to HydratedDocument for
default() and required(), HydratedDocument | Query for validate()
[#​15020](https://redirect.github.com/Automattic/mongoose/issues/15020)
[#​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
[#​15572](https://redirect.github.com/Automattic/mongoose/issues/15572)
[#​13079](https://redirect.github.com/Automattic/mongoose/issues/13079)
- BREAKING CHANGE(types): consolidate RootQuerySelector, Condition, etc.
types with MongoDB driver's
[#​15593](https://redirect.github.com/Automattic/mongoose/issues/15593)
- BREAKING CHANGE: asyncify update validators,
SchemaType.prototype.doValidate(), save hooks for improved stack traces
[#​15312](https://redirect.github.com/Automattic/mongoose/issues/15312)
- BREAKING CHANGE: remove bson as direct dependency, use
mongodb/lib/bson instead
[#​15576](https://redirect.github.com/Automattic/mongoose/issues/15576)
[#​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
[#​15298](https://redirect.github.com/Automattic/mongoose/issues/15298)
[#​14906](https://redirect.github.com/Automattic/mongoose/issues/14906)
- BREAKING CHANGE: remove browser build, move to
[@​mongoosejs/browser](https://redirect.github.com/mongoosejs/browser)
instead
[#​15385](https://redirect.github.com/Automattic/mongoose/issues/15385)
[#​15296](https://redirect.github.com/Automattic/mongoose/issues/15296)
- BREAKING CHANGE: remove schematype caster and casterConstructor
properties in favor of embeddedSchemaType and Constructor
[#​15513](https://redirect.github.com/Automattic/mongoose/issues/15513)
[#​15179](https://redirect.github.com/Automattic/mongoose/issues/15179)
- BREAKING CHANGE: adding missing pluralizations, fixing pluralization:
virus -> viruses
[#​14247](https://redirect.github.com/Automattic/mongoose/issues/14247)
[ItsBradyDavis](https://redirect.github.com/ItsBradyDavis)
- BREAKING CHANGE: remove connection noListener option
[#​15641](https://redirect.github.com/Automattic/mongoose/issues/15641)
[#​15640](https://redirect.github.com/Automattic/mongoose/issues/15640)
- feat(types): add Schema.create() for TypeScript type inference
[#​15482](https://redirect.github.com/Automattic/mongoose/issues/15482)
[#​14954](https://redirect.github.com/Automattic/mongoose/issues/14954)
- chore: remove examples directory
[#​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 files changed
+94
-21
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments