Skip to content

[tfjs-node] replace deprecated utils #8425

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

Merged
merged 2 commits into from
Apr 23, 2025

Conversation

tharvik
Copy link
Contributor

@tharvik tharvik commented Oct 25, 2024

after been marked as deprecated in node 22, node 23 removed nearly all its util.is* functions. so using the node backend in 23 fails quite loudly with some "TypeError: util_1.isNullOrUndefined is not a function".

this PR replace the few places where theses functions were used with node's recommended fixes. or with nullish-coalescing where appropriate.

@andresribeiro
Copy link

+1

@Ananthusubramanian
Copy link

+1

@domdomegg
Copy link

@mattsoulanille can you review this? The fix looks correct and it blocks being able to use tfjs-node on Node >=23.

@mrddter
Copy link

mrddter commented Mar 7, 2025

any news on this?

@barroudjo
Copy link

barroudjo commented Mar 11, 2025

Same thing, on node 23 (and above) this is absolutely needed. Is there a reason for it not being merged ?

@bubbatls
Copy link

+1
Please

@mattsoulanille
Copy link
Member

Thanks! We're currently changing our CI config, so I've run this locally to verify it passes.

@mattsoulanille mattsoulanille merged commit f2e5572 into tensorflow:master Apr 23, 2025
1 check passed
@tharvik tharvik deleted the fix-node23 branch April 23, 2025 21:10
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.

8 participants