Skip to content

Conversation

@AndrewFerr
Copy link
Member

Some parts of nedb don't work in Node 24 due to calling removed node:utils APIs.

#519 bypassed that problem in unit tests by injecting the required node:utils functions, but that doesn't fix the problem in production or for anything that uses this SDK as a dependency.

This PR moves that injection into source code to fix the problem outside of just tests. It also adds a deprecation warning log to make it clear that NeDB is no longer supported & should not be used anymore.

Monkey patch node:util to include deprecated functions removed as of
Node 24 but still needed by nedb
@AndrewFerr AndrewFerr requested a review from a team as a code owner September 2, 2025 15:13
Copy link
Contributor

@Half-Shot Half-Shot left a comment

Choose a reason for hiding this comment

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

Gooooooood god what a hack.

I'd be minded at this stage to rip out NeDB support entirely? How much work would that be?

@AndrewFerr
Copy link
Member Author

I'd be minded at this stage to rip out NeDB support entirely? How much work would that be?

It probably won't be much trouble, if at all -- the only concern is whether there should be a tool/script to migrate from NeDB to something else.

@Half-Shot
Copy link
Contributor

I think we built those out for a few bridges, and we've supported postgres for ages. I think it might be better to remove it at this point, it's super old.

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.

3 participants