Closed bugb closed 10 months ago
As noted in the client's documentation, the Elasticsearch Node.js client and supporting libraries like this one will drop support for Node.js versions that have reached end of life between minor versions. Node.js v12 reached EOL in April of 2022, so we no longer support it as of client version 8.4.0. Support for v14 and v16 will end when I ship 8.11.0 of the client in the next few days.
It's not uncommon that somebody already opened an issue or in the best case it's already fixed but not merged. That's the reason why you should search at first before submitting a new one.
Please read this entire template before posting any issue. If you ignore these instructions and post an issue here that does not follow the instructions, your issue might be closed, locked, and assigned the
not reproducible
label.🐛 Bug Report
Since undici version 5.28.0, they will not support Nodejs 12 and below. It has been confirmed https://github.com/nodejs/undici/issues/2469#event-11070377134 or you can check the diff from the version v5.27 latest to the version 5.28 here where you can see a lot of
??
(optional chainning) and?.
(nullish coalescing) synxtax those are not availble in Nodejs 12 and below.This problem happens due to the line below:
undici will be resolved to the version under 6.0, due to npm follows semver spec. Or you can check the online version of npm semver calculation here.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Your Environment
@elastic/elasticsearch
version: 8.2Additional information