Skip to content

Upgrade to Mongoose 9 - #144

Open
daandtu wants to merge 1 commit into
ramiel:masterfrom
daandtu:master
Open

Upgrade to Mongoose 9#144
daandtu wants to merge 1 commit into
ramiel:masterfrom
daandtu:master

Conversation

@daandtu

@daandtu daandtu commented Dec 31, 2025

Copy link
Copy Markdown

Mongoose 9 removed next() in pre middlewares (see Mongoose.js: Migrating from 8.x to 9.x, which are used by mongoose-sequence. My pull request fixes this by refactoring the pre-save hooks to return a promise instead of using callbacks. Moreover, the parallel_hooks option was removed, which is not supported in the latest Mongoose versions. The test functions related to the sequential and parallel hooks were also updated accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant