Closed alexkreidler closed 1 month ago
Adding an engines block in micro-agent will not solve the problem since it will not override execa's engines block that only supports the current LTS versions. It's not likely that they will change it.
Version 9.0.0 has the following breaking change in the release notes
Dropped support for Node.js version <18.19.0 and 20.0.0 - 20.4.0.
Looking at the docs for addAbortListener, it's not an issue of older versions of Node. The experimental API was introduced in Node 20.5.0 and Node 18.18.0 so it won't work with the version of Node you're running, regardless of whether execa or micro-agent work or not.
https://nodejs.org/api/events.html#eventsaddabortlistenersignal-listener
If you're using the latest Node 20 release the API should work and Exceca should be happy without having to make any changes to micro-agent
I am really confused.In README, it was emphasised that micro-agent supports Node V14 or later.However I've tried v14.18.2 、v16.16.0、v18.4.0,none of the versions is supported.
If it only supports Node V20+, why not modify the README?
PRs always helpful/encuraged :) i'll go ahead and update, thanks for investigating all
I am really confused.In README, it was emphasised that micro-agent supports Node V14 or later.However I've tried v14.18.2 、v16.16.0、v18.4.0,none of the versions is supported.
If it only supports Node V20+, why not modify the README?
That's not what we're saying at all.
Micro-agent supports Node 14 and higher, although it is beyond me why would you want to use an unsupported version of Node, that's your decision.
Changing supported versions of Node is not trivial. That's usually a major change according to semantic versioning and would require a new major release (since it may break deployments using the package), not just a change in the README file.
If you're having problems with addAbortListener
you should run Node 20.5.0 or 18.18.0 where the feature was introduced. That has nothing to do with micro-agent.
If you're getting other errors, please report them as separate issues to make it easier for the maintainers to triage them.
When I run
micro-agent -h
I get:Since execa's supported Node engine versions are only
18.19.0 || >=20.5.0
, this CLI won't work on older versions. Might want to add a note to the README or add your ownengines
field topackage.json
.