nedb icon indicating copy to clipboard operation
nedb copied to clipboard

DeprecationWarning: The `util.isArray` API is deprecated. Please use `Array.isArray()` instead.

Open ipseonet opened this issue 11 months ago • 1 comments

nedb/lib/indexes.js:69:12

if (util.isArray(doc)) { this.insertMultipleDocs(doc); return; }

recommended to be

if (Array.isArray(doc)) { this.insertMultipleDocs(doc); return; }

ipseonet avatar Dec 28 '24 03:12 ipseonet

That is not the only place you need to replace a util function. At many places in datastore.js, indexes.js and model.js you will need to replace the deprecated functions. Do the following replacements: util.isArray(x) with Array.isArray(x) util.isDate(x) with x instanceof Date util.isRegExp(x) with x instanceof RegExp

lowieCOOL avatar Feb 25 '25 10:02 lowieCOOL