jaredhanson / connect-flash

Flash message middleware for Connect and Express.
MIT License
1.24k stars 158 forks source link

Use Array.isArray instead of util.isArray in flash.js #58

Closed admstesla closed 3 weeks ago

admstesla commented 3 weeks ago

This PR addresses the [DEP0044] DeprecationWarning in Node.js, which suggests replacing the deprecated util.isArray with Array.isArray(). (below)

(node:38224) [DEP0044] DeprecationWarning: The util.isArrayAPI is deprecated. Please useArray.isArray() instead.

Needed to install diff@latest and vows@latest for npm test to pass.

admstesla commented 3 weeks ago

duplication of https://github.com/jaredhanson/connect-flash/pull/57