Skip to content
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.

Update to support mongoose > 7 #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

gavinaiken
Copy link
Contributor

Mongoose 7 and above no longer supports callbacks on queries - see https://mongoosejs.com/docs/migrating_to_7.html#dropped-callback-support

This PR updates mongoose-fill to work with that change, as well as updating dependencies, and converting the whole module to ESM with no more use of babel.

A further rewrite to change the fill functions to use promises themselves instead of callbacks would be advisable, but that would introduce further breaking changes for consumers of the library. I may look at doing another PR in future to do that.

@wclr
Copy link
Owner

wclr commented Nov 9, 2024

Hey, I'm archiving this repo, as it no longer relevant (for me, I probably for the whole ecosystem).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants