-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
ava errors on Node <4.5.0 due to hullabaloo-config-manager #1354
Comments
Ah yeah. |
I agree. Unfortunately pre-4.5 seems to be the default on CircleCI, which is how I discovered this (all my projects using AVA were failing). I added a |
That'd be great!
Do you think AVA should flat out refuse to start if it detects an outdated Node.js version? |
I'd probably give people's environment the benefit of the doubt (like maybe they patched it up/polyfilled it to work somehow?), but print a warning when AVA starts – this would be more immediately visible than npm's warning (the user may have installed a long time ago before running |
👍 |
@novemberborn Just came across this bug too. Wanted to chime in and say that AWS Lambda is still uses 4.3.2 as their "Node 4" version. We're working on getting stuff over to node 6 but it was only released recently. I would imagine plenty of Lambda users still using 4.3.2 in production including ourselves. |
@southpolesteve interesting. I still think the right answer is to require 4.5 or above though. Even if this particular dependency is under our (mine) control, it's quite likely (over Node.js 4's maintenance lifetime) for other dependencies to assume the newer |
Yeah I think you are probably right. Just sucks that this happened at all. I've also sent a note to AWS telling them to upgrade their node 4 version :) |
Node 4 is lts you know? I think https://github.com/feross/safe-buffer would do what's needed here. |
@reconbot yes we could use that in dependencies under our control (e.g. that team members maintain) but I reckon we'll see other dependencies assume Node.js 4.5. It's a losing game. |
I think it's a worthwhile game as long as node4 is in LTS (until 2018-04-01) there are a lot of people still on node 4.3.2 because of lambda (and probably older because of Linux distros) and it's worth trying to support them if we can. I've submitted a patch to LTS isn't forever |
LTS is only meaningful though if you actually update. There have been several security releases since 4.5. |
Lambda is a major holdout, I did accidentally get the program manger in touch with someone from Node who works on LTS, but I doubt we'll see much movement there for a while. I found out that only 4.2+ is considered LTS which still lower that 4.5. Since you do control it and it's the only package blocking <4.5 do you mind holding out a little longer? |
@avajs/core thoughts? |
@novemberborn I would just add |
@sindresorhus fair enough. @reconbot I'll try and get to your PR on the weekend. |
Description
Running
ava
errors immediately on Node 4.4 and lower withTypeError: this is not a typed array
fromhullabaloo-config-manager
. That module'spackage.json
specifies its minimum Node version as 4.5 and they ain't kiddin' – this affects basic usage of AVA.(Unfortunately
npm
doesn't seem to warn aboutengines
for transitive dependencies, so it doesn't even warn abouthullabaloo-config-manager
, but I believe it would warn aboutava
directly.)I recommend updating AVA's
engines
from Node>=4
to>=4.5
.Test Source
// Empty test is fine to reproduce.
Error Message & Stack Trace
Config
(no config necessary)
Command-Line Arguments
Relevant Links
Environment
The text was updated successfully, but these errors were encountered: