forked from mysticatea/eslint-plugin-node
-
-
Notifications
You must be signed in to change notification settings - Fork 55
Closed
Labels
Description
Environment
Node version: v22.17.1
npm version: 10.8.2
ESLint version: v9.32.0
eslint-plugin-n version: 17.21.3
Operating System: macOS 15.6 (Darwin 24.6.0) on Apple Silicon (arm64)
What rule do you want to report?
n/no-unsupported-features/node-builtins
Link to Minimal Reproducible Example
https://stackblitz.com/edit/stackblitz-starters-ggce9r4h
What did you expect to happen?
URL.createObjectURL
should not trigger an error when using Node.js 22+, since this API has been stable (not experimental) since Node.js 22.17.0.
According to the MDN documentation, URL.createObjectURL
has "Full support" in Node.js since version 16.7. It was only marked as stable as of 22.17.0, but it had not changed since 16.7.
Participation
- I am willing to submit a pull request for this issue.
Additional comments
Fix: lib/unsupported-features/node-builtins-modules/url.js
URL: {
[READ]: { supported: ["7.0.0", "6.13.0"] },
canParse: { [READ]: { supported: ["19.9.0"] } },
createObjectURL: { [READ]: { supported: ["16.7.0"] } },
revokeObjectURL: { [READ]: { supported: ["16.7.0"] } },
},