SAP / node-hdb

SAP HANA Database Client for Node
Apache License 2.0
317 stars 97 forks source link

Use `Array.isArray` instead of `util.isArray` #237

Open swaldmann opened 1 month ago

swaldmann commented 1 month ago

Hi, we're currently getting this deprecation warning in our CAP server logs coming from hdb with Node 22:

(node:95002) [DEP0044] DeprecationWarning: The `util.isArray` API is deprecated. Please use `Array.isArray()` instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

This PR replaces all util.isArray by Array.isArray. Node 22 becomes active LTS very soon and this fix is compatible with older Node.js versions.