Skip to content

Conversation

@daandtu
Copy link

@daandtu daandtu commented Dec 31, 2025

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