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

Proposal to archive this package. #99

Open
ghmeier opened this issue Nov 25, 2023 · 2 comments
Open

Proposal to archive this package. #99

ghmeier opened this issue Nov 25, 2023 · 2 comments

Comments

@ghmeier
Copy link
Member

ghmeier commented Nov 25, 2023

As of version 5.0.0, the official mongo nodejs driver supports only promises. Given that the original purpose of this library was to add a promise-compatible interface for the native driver, I think mongoist is no longer useful. Anyone who'd like a promise-compatible api, should just use the native driver.

As a result, I'm proposing adding a notice to the readme and archiving this repo. As it is, the package is pretty out of date and no longer really useful for modern node/mongodb projects.

@MrAmericanMike
Copy link

I believe what you are trying to say is that the official driver doesn't support callbacks anymore?

Farewell to Callbacks
Most notably, we have removed support for callbacks in favor of a Promise-only public API.

Other than that, I'm not super familiar with either library, but I believe Mongoist still brings some stuff to the game that the official driver doesn't, like for example access to collections in a different way.

const collection = db.collection('documents');

With Mongoist we can just:

db.documents.

@ghmeier
Copy link
Member Author

ghmeier commented Apr 7, 2024

The original purpose of this library was to promisify the mongo driver's API (that's why I started maintaining it originally). As you said, the official driver supports promises natively now. As such, I don't think there's a reason to continue maintaining the library and folks should migrate off it.

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

No branches or pull requests

2 participants