Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation of util.isArray with Array.isArray #64

Closed
wants to merge 5 commits into from

Conversation

Freezler
Copy link

This pull request tackles the deprecation warning caused by the use of util.isArray in the connect-flash library.
The deprecated util.isArray method has been replaced with the recommended Array.isArray method .

Changes:
Replaced var isArray = require('util').isArray with var isArray = Array.isArray in lib/flash.js.
This change prevents the deprecation warning from appearing in the log

  • added .md with easy to follow steps aswell.*

@YasharF
Copy link

YasharF commented Jan 21, 2025

Duplicate of #61 and #57

By the way the fix is a one or two lines of code change. Your diff is a whole lot more than what needs to be changed.

@Freezler
Copy link
Author

oke thanks for letting me know! im deleting it and have another look at it..

@Freezler Freezler closed this Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants