simple-node-logger icon indicating copy to clipboard operation
simple-node-logger copied to clipboard

DeprecationWarning util.isDate util.isArray

Open p10tyr opened this issue 1 year ago • 1 comments

https://github.com/p10tyr/rtsp-to-onvif/issues/9

I can make a PR for this. I just want to check if there is somebody around still that will be able to merge it in?

(node:1) [DEP0047] DeprecationWarning: The util.isDate API is deprecated. Please use arg instanceof Date instead. (node:1) [DEP0044] DeprecationWarning: The util.isArray API is deprecated. Please use Array.isArray() instead.

p10tyr avatar Nov 20 '24 20:11 p10tyr

Node 23.0.5 will actually break this library as util.isDate has been removed now. For util.isArray the deprecation warning exists. In both cases the changes are required in AbstractAppender.js As a fix util.isDate(item) has to be replaced by item instanceof Date and util.isArray(msg) has to be replaced by Array.isArray(msg)

tricoos avatar Jan 09 '25 12:01 tricoos