-
Notifications
You must be signed in to change notification settings - Fork 792
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 node4 build issue #542
Conversation
Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
provides minimal requirements warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution!
@@ -3,6 +3,9 @@ | |||
"description": "Accessibility engine for automated Web UI testing", | |||
"version": "3.0.0-alpha.4", | |||
"license": "MPL-2.0", | |||
"engines": { | |||
"node": ">=4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to specify a node version if we're downgrading it to use var
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it just produces a warning for anybody running on older versions, so it's useful
Maybe also add supported node version to test to catch these issues in the future: |
@renatoi our tests running on Circle have different requirements than axe-core for end-users. We transpile lib JS using Babel for backwards-compatibility but this isn't required for our tests. The postinstall script wasn't caught by Babel unfortunately. |
* fix(node4): use var to declare variables Block-scoped declarations (let, const, function, class) not yet supported outside strict mode * feat(package): add engine hint to package.json provides minimal requirements warning
* fix(node4): use var to declare variables Block-scoped declarations (let, const, function, class) not yet supported outside strict mode * feat(package): add engine hint to package.json provides minimal requirements warning
* fix(node4): use var to declare variables Block-scoped declarations (let, const, function, class) not yet supported outside strict mode * feat(package): add engine hint to package.json provides minimal requirements warning
fixes: #541