Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Use Array.isArray instead of isarray package. #195

Merged
merged 1 commit into from
May 31, 2017

Conversation

medanat
Copy link
Contributor

@medanat medanat commented May 27, 2017

Removes deprecated package.

@jsf-clabot
Copy link

jsf-clabot commented May 27, 2017

CLA assistant check
All committers have signed the CLA.

@platinumazure
Copy link
Member

Hi @medanat, thanks for the pull request!

The package's "engines" field implies that we support all Node versions from 0.10 onward. However, according to node.green, Array.isArray is only fully supported from Node 6.x onward. So I don't think we can accept this without breaking support for older Node versions, which would require a major release. I'm not saying we can never accept this, but we need to decide if we want to continue supporting older versions of Node first.

@soda0289
Copy link
Member

@platinumazure I'm pretty sure Array.isArray() is supported in nodejs v0.10. All the test are passing even with this change. Node.green is referring to array subclasses and Proxy classes. Older browsers < IE 9 do not support isArray() and would require the package.

@medanat
Copy link
Contributor Author

medanat commented May 27, 2017

I can confirm Array.isArray is available on Node 0.10.0

node-0 10 0

@platinumazure
Copy link
Member

platinumazure commented May 27, 2017 via email

@medanat
Copy link
Contributor Author

medanat commented May 27, 2017

Thanks @platinumazure!

Copy link
Contributor

@JaKXz JaKXz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@platinumazure
Copy link
Member

LGTM, just want a second set of eyes.

Ping @eslint/eslint-team, can we review and merge this? Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants