Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(operations): fix deprecation warning in Node.js 14 #2735

Closed
wants to merge 1 commit into from
Closed

fix(operations): fix deprecation warning in Node.js 14 #2735

wants to merge 1 commit into from

Conversation

vkarpov15
Copy link
Contributor

Description

What changed?

#2626 introduced a deprecation warning in Node.js 14 due to a circular import, because ../core/index.js eventually imports operations/operation.js. This works around the deprecation warning and makes sure MongoError is actually defined in this file.

Are there any files to ignore?

Nope

vkarpov15 added a commit to Automattic/mongoose that referenced this pull request Feb 8, 2021
@nbbeeken
Copy link
Contributor

nbbeeken commented Feb 9, 2021

Thanks for helping out! since this is a duplicate of #2734 we'll just go with that one since it came in first

@nbbeeken nbbeeken closed this Feb 9, 2021
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.

2 participants