Skip to content

Commit 3a4f4df

Browse files
authored
💥Update node/no-unsupported-features/node-builtins to recognize new fs methods (#261)
1 parent ad139d1 commit 3a4f4df

File tree

2 files changed

+467
-0
lines changed

2 files changed

+467
-0
lines changed

‎lib/rules/no-unsupported-features/node-builtins.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,47 @@ const trackMap = {
145145
},
146146
writev: { [READ]: { supported: "12.9.0" } },
147147
writevSync: { [READ]: { supported: "12.9.0" } },
148+
readv: {
149+
[READ]: { supported: "13.13.0", backported: ["12.17.0"] },
150+
},
151+
readvSync: {
152+
[READ]: { supported: "13.13.0", backported: ["12.17.0"] },
153+
},
154+
lutimes: {
155+
[READ]: { supported: "14.5.0", backported: ["12.19.0"] },
156+
},
157+
lutimesSync: {
158+
[READ]: { supported: "14.5.0", backported: ["12.19.0"] },
159+
},
160+
opendir: {
161+
[READ]: { supported: "12.12.0" },
162+
},
163+
opendirSync: {
164+
[READ]: { supported: "12.12.0" },
165+
},
166+
rm: {
167+
[READ]: { supported: "14.14.0" },
168+
},
169+
rmSync: {
170+
[READ]: { supported: "14.14.0" },
171+
},
172+
read: {
173+
[READ]: { supported: "13.11.0", backported: ["12.17.0"] },
174+
},
175+
readSync: {
176+
[READ]: { supported: "13.11.0", backported: ["12.17.0"] },
177+
},
178+
Dir: {
179+
[READ]: { supported: "12.12.0" },
180+
},
181+
StatWatcher: {
182+
[READ]: { supported: "14.3.0", backported: ["12.20.0"] },
183+
},
184+
},
185+
"fs/promises": {
186+
[READ]: {
187+
supported: "14.0.0",
188+
},
148189
},
149190
http2: {
150191
[READ]: {

0 commit comments

Comments
 (0)