intel icon indicating copy to clipboard operation
intel copied to clipboard

Update error check to avoid deprecation warning in NodeJS 22

Open soulgalore opened this issue 1 year ago • 2 comments

Using NodeJS 22 you get a deprecation warning like this:

(node:12388) [DEP0048] DeprecationWarning: The `util.isError` API is deprecated. Please use `ObjectPrototypeToString(e) === "[object Error]" || e instanceof Error` instead.

soulgalore avatar Nov 06 '24 06:11 soulgalore

Hi @seanmonstar I'm a long time user of intel, it has worked great throughout the years, so many thanks for the project! With NodeJS 22 there's a new deprecation warnings that comes when you use intel. Would be great if this could be fixed and released :)

soulgalore avatar Nov 06 '24 06:11 soulgalore

I realize that node's documentation suggests https://nodejs.org/docs/latest-v22.x/api/util.html#utiltypesisnativeerrorvalue util.types.isNativeError, it seems supported since node V10, so it might be a more readable option ?

julienw avatar Feb 23 '25 08:02 julienw