Skip to content

Bug: False-positive in n/no-unsupported-features/node-builtins #234

@TimShilov

Description

@TimShilov

Environment

Node version: 20.12.1
pnpm version: 8.15.6
ESLint version: 9.0.0
eslint-plugin-n version: 17.1.0
Operating System: MacOS 14.4.1

What rule do you want to report?

n/no-unsupported-features/node-builtins

Link to Minimal Reproducible Example

https://eslint-online-playground.netlify.app/#eNptkMFOwzAMhl8l8gmkrV13QeouHHgA7suQqtatMhInalI0VPXdcZIVNiAnJ/7+/3c8gx/bEi+NcRqLs4calHF2DGIWTjnUilAsoh+tERLIdlj7MGJjSsdPyqOXcJAkSUhqLXnLLtoOD6v28QAbQM9lKLjfq+EuJHdW++d8Lc+r6ZWKsa96GhStZAa3Lj1uKeF4SXCHfTPpII48E5+7bF+M2FpjkDrsNmlsPj/2K3aU0OsmlDe0hBMLTpzDH3JN+94McV+W+DNz9JEQPh1KqLkytps016yIjQ4/XtBFG2pV3FgtkiT28nxZxpHouU6y2LxdyL/Anz1EqnoqqmInIULLdQQkBn5Fx39nxdt+V1T7b42kBZYv8/y1ew==

What did you expect to happen?

The rule reports that stream/promises API is experimental in Node.js v20.12.0 and I'm not sure if that's correct.

The Node.js docs (https://nodejs.org/docs/latest-v20.x/api/stream.html#streams-promises-api) never mention it as experimental (and seems like they never did since it was added v15).

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions