Skip to content

Conversation

@vkarpov15
Copy link
Collaborator

Summary

9.0 ready to go, just a couple of outstanding chores:

  • release Kareem
  • release mquery

Examples

vkarpov15 and others added 30 commits April 27, 2025 15:07
Co-authored-by: hasezoey <hasezoey@gmail.com>
Co-authored-by: hasezoey <hasezoey@gmail.com>
Co-authored-by: hasezoey <hasezoey@gmail.com>
Async stack traces for common function calls, remove callbacks for `execPost()`.
Co-authored-by: hasezoey <hasezoey@gmail.com>
…omattic/mongoose into vkarpov15/async-custom-hooks-statics
…s-statics

BREAKING CHANGE: Async stack traces for custom methods and statics, remove `promiseOrCallback()`
Co-authored-by: hasezoey <hasezoey@gmail.com>
BREAKING CHANGE: make UUID schema type return bson UUIDs
vkarpov15 and others added 22 commits October 30, 2025 17:27
…er-next

upgrade to pre-release of mongodb node driver 7
Co-authored-by: Hafez <a.hafez852@gmail.com>
…riteArguments in pre("deleteOne") and pre("updateOne") document hooks
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Allow pre() hooks to overwrite arguments to the wrapped function
@vkarpov15 vkarpov15 requested review from Copilot and hasezoey November 7, 2025 19:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Collaborator

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks mostly good to me in its current state.

Co-authored-by: hasezoey <hasezoey@gmail.com>

```javascript
// Works in Mongoose 9
await Model.updateOne({}, [{ $set: { newProp: 'test2' } }], { updatePipeline: true });
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there currently no way to do this globally as mongoose.set('updatePipeline', true);

I can imagine this would be painful if a project is relying heavily on update-pipelines and they would need to change it in potentially hundreds of places

Copy link
Collaborator

@AbdelrahmanHafez AbdelrahmanHafez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment, otherwise LGTM. Great work! 🎉

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.

4 participants