[tfjs-node] replace deprecated utils#8425
Conversation
|
+1 |
|
+1 |
|
@mattsoulanille can you review this? The fix looks correct and it blocks being able to use tfjs-node on Node >=23. |
|
any news on this? |
|
Same thing, on node 23 (and above) this is absolutely needed. Is there a reason for it not being merged ? |
|
+1 |
|
Thanks! We're currently changing our CI config, so I've run this locally to verify it passes. |
|
why is this still not released? Added this to my project: // nice hack to support tensorflow, if (!util.isArray) { |
Co-authored-by: Matthew Soulanille <msoulanille@google.com>
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.