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

Don't run on Node.js versions less than 8.10.0 #1496

Merged
merged 2 commits into from Mar 15, 2020
Merged

Conversation

watson
Copy link
Member

@watson watson commented Mar 15, 2020

ESLint uses the s (dotAll) flag for regular expressions which isn't supported in Node.js versions earlier than 8.10.0.

I made a similar PR for when the spread operator was introduced in Node.js v8.6.0: #1418

Once this lands, I'll rebase #1495 to make sure we test early Node.js versions in CI.

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update
[x] Bug fix
[ ] New feature
[ ] Other, please explain:

What changes did you make? (Give an overview)

I changed the minimum Node.js version where standard will run to be 8.10.0 (was 8.6.0).

Which issue (if any) does this pull request address?

closes #1494
closes #1455

Is there anything you'd like reviewers to focus on?

Consider if this is actually a breaking change. If so we need to roll back the version of eslint instead of this. However, I think this be accepted so it's not breaking given the circumstances.

@watson
Copy link
Member Author

watson commented Mar 15, 2020

My approach in #1495 doesn't work. Instead, I'll add the minimum version we think we should work on to the .travis.yml file in this PR. We could later consider adding a special test for 8.9.4 as well.

Copy link
Member

@LinusU LinusU left a comment

Choose a reason for hiding this comment

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

Perfect 👍

@LinusU
Copy link
Member

LinusU commented Mar 15, 2020

I think that this approach (minimum as indicated by engines.node, and latest of every stable major) is very good 👍

That's how I do it in many of my packages as well :)

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

Successfully merging this pull request may close these issues.

v14.3.2 broke support with Node.js versions <8.10.0
2 participants