package.json's "engines" says "node": ">=10.0.0"
but actual base version is v14.18.0
#1932
Open
3 tasks done
Restify Version: 9.0.0
Node.js Version: any
Expected behaviour
That the "engines" field of "package.json" accurately says what versions of node.js restify works with.
Actual behaviour
The "engines" for [email protected], and in the current repo tip, says
"node": ">=10.0.0"
. However, with anything less that node v14.8.0 importing restify crashes:Repro case
(Shown above.)
Cause
The issue is the usage of "Core modules" (i.e. the
node:
-prefix) in "lib/request.js":Are you willing and able to fix this?
Yes. A few questions, though:
IIUC, The intent of commit c15111f was to drop node v10 and v12 support, so would a PR to update "engines" be acceptable?
Support for all of node v14 (back to v14.0.0) could be restored with the following change.
or even just this change:
Is that desired? I don't have a strong preference.
PR #1923 is somewhat related to this.
Thanks.
The text was updated successfully, but these errors were encountered: