-
Notifications
You must be signed in to change notification settings - Fork 784
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
v4.7.1 broke node <= 6 #4127
Comments
Thanks for the issue. Looks like the problem is in colorjs.io which we brought in to fix #4007. |
I’m confused why it would have ended up bundled into the required entrypoint node if it’s a separate package, but that explains why i couldn’t find the source code in this repo. @LeaVerou, would you accept a PR to improve engine compat for colorjs.io? |
Sure, though if the solution is to bundle a polyfill, I'd rather do it in a separate bundle, so that the one targeting modern environments can stay lean. We can discuss over at the colorjs repo 😊 |
Looks like v4.8.0 also broke node < 16 by using |
Closed via v4.8.2 |
@straker i don't think this was fully fixed, since colorjs.io hasn't been updated to have a polyfill yet. #4127 (comment) was a separate but related issue. |
@straker can this please be reopened? |
Yep sorry, I closed because we fixed the |
Unfortunately if it's bundled inside color.js, i think it might need to be fixed there, but I haven't had a chance to dig into it yet. |
Product
axe-core
Product Version
v4.7.1
Latest Version
Issue Description
Expectation
Be requireable in node < 6.
Actual
Crashes, because
Object.values
was added in node 7.How to Reproduce
Run
require('axe-core')
in node 6.Additional context
I suggest using https://npmjs.com/object.values until you're ready to release a major version that drops support for node 4-6 (please fix v4 for node <= 6 before doing that). I'd be happy to submit a PR.
The text was updated successfully, but these errors were encountered: