Closed msimerson closed 3 years ago
I opened an issue at https://github.com/kach/nearley/issues/564 to ask about this.
Wouldn’t a good option be to polyfill it?
On Jan 5, 2021, at 6:49 PM, Gene Hightower notifications@github.com wrote:
I opened an issue at kach/nearley#564 to ask about this.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
We could, but flat
might not be the only call nearley generates that requires node > 10.
Update: testing seems to indicate that it is.
I've started using https://github.com/andris9/mailauth which requires node 14.
Is the plan for Haraka to maintain support for Node 10 until it's official end-of-life date of 2021-04-30?
Our Standard Operating Procedure is to support the versions of node.js that are supported upstream. Being this close to EOL, I was feeling it was okay to drop 10.x early, but then I considered the users of this module that aren't using it in Haraka. Since this turned out to be a breaking change, it really deserved a semver major bump.
It's worthy of a major version, I agree.
nearly produces output that uses
array.flat()
which doesn't exist in node < 11. Nearly installs just fine, it compiles the grammar.js file, but then when Haraka calls it it crashes because.flat
doesn't exist.I see a couple options: