mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-12-06 04:56:15 +08:00
Support more fs and fs/promises forms (#4652)
* Support more fs and fs/promises forms * fs: release the options view when an encoding cannot be coerced * Format the realpath coercion test * Compare the realpath coercion fixture against the resolved temp directory * Remove an unfinished fs.watch corpus draft
This commit is contained in:
@@ -26738,8 +26738,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -26761,8 +26761,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -26784,8 +26784,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -26807,8 +26807,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -26830,8 +26830,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -26922,8 +26922,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -26945,8 +26945,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -26968,8 +26968,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -26991,7 +26991,7 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
@@ -27014,8 +27014,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -27037,8 +27037,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -27083,8 +27083,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -27106,8 +27106,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -27129,7 +27129,7 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
@@ -27152,8 +27152,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -27175,8 +27175,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -27221,8 +27221,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -27244,8 +27244,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -27267,8 +27267,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -27290,8 +27290,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -27313,8 +27313,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Reads filesystem capacity using string, Buffer, or file URL paths with number or BigInt fields and deferred callbacks; StatFs prototype behavior and complete filesystem error metadata remain unsupported.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -27336,8 +27336,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -27359,8 +27359,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -27382,8 +27382,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -27405,8 +27405,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -27451,8 +27451,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -28118,7 +28118,7 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
@@ -28141,7 +28141,7 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
@@ -28164,7 +28164,7 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
@@ -28279,7 +28279,7 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
@@ -28302,7 +28302,7 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
@@ -28601,7 +28601,7 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
@@ -28624,7 +28624,7 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
@@ -28647,7 +28647,7 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
@@ -29429,8 +29429,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -29452,8 +29452,8 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"detail": "Implemented for the call shapes accepted by the compiler lowering.",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
},
|
||||
@@ -30602,7 +30602,7 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
@@ -30625,7 +30625,7 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
@@ -30648,7 +30648,7 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
@@ -32304,7 +32304,7 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
@@ -32327,7 +32327,7 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
@@ -32350,7 +32350,7 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"detail": "Implemented for the documented scriptc module-loader subset.",
|
||||
"verification": "test-backed"
|
||||
}
|
||||
|
||||
@@ -47572,10 +47572,8 @@
|
||||
"tests/corpus/5450-fs-glob-validation.js",
|
||||
"tests/corpus/5451-fs-promises-glob.ts",
|
||||
"tests/corpus/5452-fs-glob-callback.ts",
|
||||
"tests/corpus/5540-fs-callback-forms.cjs",
|
||||
"tests/corpus/5541-fs-stats-fields.cjs",
|
||||
"tests/corpus/5542-fs-promises-parity.cjs",
|
||||
"tests/corpus/5543-fs-promises-typed.ts",
|
||||
"tests/corpus/5544-fs-opendir.cjs",
|
||||
"tests/corpus/5545-fs-options-encoding.cjs",
|
||||
"tests/corpus/5546-fs-read-stream.cjs",
|
||||
@@ -47617,7 +47615,6 @@
|
||||
"tests/corpus/fs-lchmod.cjs",
|
||||
"tests/corpus/fs-links-times.cjs",
|
||||
"tests/corpus/fs-mkdtemp-disposable.ts",
|
||||
"tests/corpus/fs-native-realpath.ts",
|
||||
"tests/corpus/fs-open-as-blob.ts",
|
||||
"tests/corpus/fs-opendir-buffer-size-uncaught.cjs",
|
||||
"tests/corpus/fs-opendir-callbacks.ts",
|
||||
@@ -47627,9 +47624,11 @@
|
||||
"tests/corpus/fs-promises-watch.ts",
|
||||
"tests/corpus/fs-read-file-sync-option-errors.cjs",
|
||||
"tests/corpus/fs-read-file-sync-options-typed.ts",
|
||||
"tests/corpus/fs-read-write-overloads.cjs",
|
||||
"tests/corpus/fs-readdir-callback-options.ts",
|
||||
"tests/corpus/fs-readdir-encodings.ts",
|
||||
"tests/corpus/fs-readdir-recursive-types.ts",
|
||||
"tests/corpus/fs-realpath-forms.ts",
|
||||
"tests/corpus/fs-realpath-native-callback.cjs",
|
||||
"tests/corpus/fs-stat-callback-ladder.cjs",
|
||||
"tests/corpus/fs-stat-callback-options.cjs",
|
||||
@@ -47649,12 +47648,14 @@
|
||||
"tests/corpus/fs-write-callback-options.cjs",
|
||||
"tests/corpus/fs-write-options.ts",
|
||||
"tests/corpus/fs-write-stored-options.ts",
|
||||
"tests/corpus/fsp-content-ops.cjs",
|
||||
"tests/corpus/fsp-dir-statfs-ops.cjs",
|
||||
"tests/corpus/fsp-options-forms.cjs",
|
||||
"tests/corpus/fsp-path-ops.cjs",
|
||||
"tests/corpus/node24-fs-callback-numeric-flags.cjs",
|
||||
"tests/corpus/node24-fs-links-callbacks.cjs",
|
||||
"tests/corpus/node24-fs-links-errors.cjs",
|
||||
"tests/corpus/node24-fs-links-options.cjs",
|
||||
"tests/corpus/node24-fs-links-promise-errors.cjs",
|
||||
"tests/corpus/node24-fs-links-promises.ts",
|
||||
"tests/corpus/node24-fs-mkdir-sync.ts",
|
||||
"tests/corpus/node24-fs-modes-sync.ts",
|
||||
"tests/corpus/node24-fs-open-sync.ts",
|
||||
@@ -48595,11 +48596,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.access",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.access",
|
||||
"tests": [
|
||||
"tests/corpus/5542-fs-promises-parity.cjs",
|
||||
"tests/corpus/5543-fs-promises-typed.ts"
|
||||
"tests/corpus/fsp-path-ops.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -48622,11 +48622,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.appendFile",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.appendFile",
|
||||
"tests": [
|
||||
"tests/corpus/5542-fs-promises-parity.cjs",
|
||||
"tests/corpus/5543-fs-promises-typed.ts"
|
||||
"tests/corpus/fsp-content-ops.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -48649,21 +48648,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.chmod",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.chmod",
|
||||
"tests": [
|
||||
"tests/corpus/1403-buffer-fs.ts",
|
||||
"tests/corpus/2595-fs-arg-ladders.cjs",
|
||||
"tests/corpus/2919-fs-function-values.ts",
|
||||
"tests/corpus/2920-fs-promises-function-values.ts",
|
||||
"tests/corpus/fs-exists-optional-path.ts",
|
||||
"tests/corpus/fs-write-options.ts",
|
||||
"tests/corpus/node24-fs-callback-numeric-flags.cjs",
|
||||
"tests/corpus/node24-fs-mkdir-sync.ts",
|
||||
"tests/corpus/node24-fs-modes-sync.ts",
|
||||
"tests/corpus/node24-fs-open-sync.ts",
|
||||
"tests/corpus/node24-fs-write-modes-sync.ts",
|
||||
"tests/corpus/node24-fs-write-options-flags.ts"
|
||||
"tests/corpus/fsp-path-ops.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -48686,11 +48674,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.chown",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.chown",
|
||||
"tests": [
|
||||
"tests/corpus/5542-fs-promises-parity.cjs",
|
||||
"tests/corpus/5543-fs-promises-typed.ts"
|
||||
"tests/corpus/fsp-path-ops.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -48713,12 +48700,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.copyFile",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.copyFile",
|
||||
"tests": [
|
||||
"tests/corpus/5542-fs-promises-parity.cjs",
|
||||
"tests/corpus/5543-fs-promises-typed.ts",
|
||||
"tests/corpus/8427-fs-copyfile-writefile-flags.ts"
|
||||
"tests/corpus/fsp-content-ops.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -48829,11 +48814,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.lchown",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.lchown",
|
||||
"tests": [
|
||||
"tests/corpus/5542-fs-promises-parity.cjs",
|
||||
"tests/corpus/5543-fs-promises-typed.ts"
|
||||
"tests/corpus/fsp-path-ops.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -48856,11 +48840,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.lutimes",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.lutimes",
|
||||
"tests": [
|
||||
"tests/corpus/node24-fs-timestamps-promises.ts",
|
||||
"tests/corpus/node24-fs-timestamps-symlinks.ts"
|
||||
"tests/corpus/fsp-path-ops.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -48883,12 +48866,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.link",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.link",
|
||||
"tests": [
|
||||
"tests/corpus/node24-fs-links-promises.ts",
|
||||
"tests/corpus/node24-fs-links-promise-errors.cjs",
|
||||
"tests/fixtures/node-types/fs-links.ts"
|
||||
"tests/corpus/fsp-path-ops.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -48911,10 +48892,11 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.lstat",
|
||||
"tests": [
|
||||
"tests/corpus/2941-fsp-lstat-identity.ts"
|
||||
"tests/corpus/2941-fsp-lstat-identity.ts",
|
||||
"tests/corpus/fsp-options-forms.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -48937,21 +48919,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.mkdir",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.mkdir",
|
||||
"tests": [
|
||||
"tests/corpus/1403-buffer-fs.ts",
|
||||
"tests/corpus/2595-fs-arg-ladders.cjs",
|
||||
"tests/corpus/2919-fs-function-values.ts",
|
||||
"tests/corpus/2920-fs-promises-function-values.ts",
|
||||
"tests/corpus/fs-exists-optional-path.ts",
|
||||
"tests/corpus/fs-write-options.ts",
|
||||
"tests/corpus/node24-fs-callback-numeric-flags.cjs",
|
||||
"tests/corpus/node24-fs-mkdir-sync.ts",
|
||||
"tests/corpus/node24-fs-modes-sync.ts",
|
||||
"tests/corpus/node24-fs-open-sync.ts",
|
||||
"tests/corpus/node24-fs-write-modes-sync.ts",
|
||||
"tests/corpus/node24-fs-write-options-flags.ts"
|
||||
"tests/corpus/fsp-options-forms.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -48974,11 +48945,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.mkdtemp",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.mkdtemp",
|
||||
"tests": [
|
||||
"tests/corpus/5542-fs-promises-parity.cjs",
|
||||
"tests/corpus/5543-fs-promises-typed.ts"
|
||||
"tests/corpus/fsp-options-forms.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -49027,21 +48997,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.open",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.open",
|
||||
"tests": [
|
||||
"tests/corpus/1403-buffer-fs.ts",
|
||||
"tests/corpus/2595-fs-arg-ladders.cjs",
|
||||
"tests/corpus/2919-fs-function-values.ts",
|
||||
"tests/corpus/2920-fs-promises-function-values.ts",
|
||||
"tests/corpus/fs-exists-optional-path.ts",
|
||||
"tests/corpus/fs-write-options.ts",
|
||||
"tests/corpus/node24-fs-callback-numeric-flags.cjs",
|
||||
"tests/corpus/node24-fs-mkdir-sync.ts",
|
||||
"tests/corpus/node24-fs-modes-sync.ts",
|
||||
"tests/corpus/node24-fs-open-sync.ts",
|
||||
"tests/corpus/node24-fs-write-modes-sync.ts",
|
||||
"tests/corpus/node24-fs-write-options-flags.ts"
|
||||
"tests/corpus/fsp-options-forms.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -49064,10 +49023,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.opendir",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.opendir",
|
||||
"tests": [
|
||||
"tests/corpus/5544-fs-opendir.cjs"
|
||||
"tests/corpus/fsp-dir-statfs-ops.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -49090,12 +49049,13 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.readdir",
|
||||
"tests": [
|
||||
"tests/corpus/2942-fsp-readdir-dirent.ts",
|
||||
"tests/corpus/fs-readdir-encodings.ts",
|
||||
"tests/corpus/fs-readdir-recursive-types.ts"
|
||||
"tests/corpus/fs-readdir-recursive-types.ts",
|
||||
"tests/corpus/fsp-options-forms.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -49118,21 +49078,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.readFile",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.readFile",
|
||||
"tests": [
|
||||
"tests/corpus/1403-buffer-fs.ts",
|
||||
"tests/corpus/2595-fs-arg-ladders.cjs",
|
||||
"tests/corpus/2919-fs-function-values.ts",
|
||||
"tests/corpus/2920-fs-promises-function-values.ts",
|
||||
"tests/corpus/fs-exists-optional-path.ts",
|
||||
"tests/corpus/fs-write-options.ts",
|
||||
"tests/corpus/node24-fs-callback-numeric-flags.cjs",
|
||||
"tests/corpus/node24-fs-mkdir-sync.ts",
|
||||
"tests/corpus/node24-fs-modes-sync.ts",
|
||||
"tests/corpus/node24-fs-open-sync.ts",
|
||||
"tests/corpus/node24-fs-write-modes-sync.ts",
|
||||
"tests/corpus/node24-fs-write-options-flags.ts"
|
||||
"tests/corpus/fsp-content-ops.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -49155,13 +49104,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.readlink",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.readlink",
|
||||
"tests": [
|
||||
"tests/corpus/node24-fs-links-promises.ts",
|
||||
"tests/corpus/node24-fs-links-options.cjs",
|
||||
"tests/corpus/node24-fs-links-promise-errors.cjs",
|
||||
"tests/fixtures/node-types/fs-links.ts"
|
||||
"tests/corpus/fsp-options-forms.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -49210,21 +49156,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.rename",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.rename",
|
||||
"tests": [
|
||||
"tests/corpus/1403-buffer-fs.ts",
|
||||
"tests/corpus/2595-fs-arg-ladders.cjs",
|
||||
"tests/corpus/2919-fs-function-values.ts",
|
||||
"tests/corpus/2920-fs-promises-function-values.ts",
|
||||
"tests/corpus/fs-exists-optional-path.ts",
|
||||
"tests/corpus/fs-write-options.ts",
|
||||
"tests/corpus/node24-fs-callback-numeric-flags.cjs",
|
||||
"tests/corpus/node24-fs-mkdir-sync.ts",
|
||||
"tests/corpus/node24-fs-modes-sync.ts",
|
||||
"tests/corpus/node24-fs-open-sync.ts",
|
||||
"tests/corpus/node24-fs-write-modes-sync.ts",
|
||||
"tests/corpus/node24-fs-write-options-flags.ts"
|
||||
"tests/corpus/fsp-path-ops.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -49247,11 +49182,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.rmdir",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.rmdir",
|
||||
"tests": [
|
||||
"tests/corpus/5542-fs-promises-parity.cjs",
|
||||
"tests/corpus/5543-fs-promises-typed.ts"
|
||||
"tests/corpus/fsp-path-ops.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -49274,21 +49208,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.rm",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.rm",
|
||||
"tests": [
|
||||
"tests/corpus/1403-buffer-fs.ts",
|
||||
"tests/corpus/2595-fs-arg-ladders.cjs",
|
||||
"tests/corpus/2919-fs-function-values.ts",
|
||||
"tests/corpus/2920-fs-promises-function-values.ts",
|
||||
"tests/corpus/fs-exists-optional-path.ts",
|
||||
"tests/corpus/fs-write-options.ts",
|
||||
"tests/corpus/node24-fs-callback-numeric-flags.cjs",
|
||||
"tests/corpus/node24-fs-mkdir-sync.ts",
|
||||
"tests/corpus/node24-fs-modes-sync.ts",
|
||||
"tests/corpus/node24-fs-open-sync.ts",
|
||||
"tests/corpus/node24-fs-write-modes-sync.ts",
|
||||
"tests/corpus/node24-fs-write-options-flags.ts"
|
||||
"tests/corpus/fsp-options-forms.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -49311,21 +49234,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.stat",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.stat",
|
||||
"tests": [
|
||||
"tests/corpus/1403-buffer-fs.ts",
|
||||
"tests/corpus/2595-fs-arg-ladders.cjs",
|
||||
"tests/corpus/2919-fs-function-values.ts",
|
||||
"tests/corpus/2920-fs-promises-function-values.ts",
|
||||
"tests/corpus/fs-exists-optional-path.ts",
|
||||
"tests/corpus/fs-write-options.ts",
|
||||
"tests/corpus/node24-fs-callback-numeric-flags.cjs",
|
||||
"tests/corpus/node24-fs-mkdir-sync.ts",
|
||||
"tests/corpus/node24-fs-modes-sync.ts",
|
||||
"tests/corpus/node24-fs-open-sync.ts",
|
||||
"tests/corpus/node24-fs-write-modes-sync.ts",
|
||||
"tests/corpus/node24-fs-write-options-flags.ts"
|
||||
"tests/corpus/fsp-options-forms.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -49348,13 +49260,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.statfs",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.statfs",
|
||||
"tests": [
|
||||
"tests/corpus/node24-fs-statfs.ts",
|
||||
"tests/corpus/node24-fs-statfs-options.cjs",
|
||||
"tests/corpus/node24-fs-statfs-errors.cjs",
|
||||
"tests/fixtures/node-types/fs-statfs.ts"
|
||||
"tests/corpus/fsp-dir-statfs-ops.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -49377,13 +49286,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.symlink",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.symlink",
|
||||
"tests": [
|
||||
"tests/corpus/node24-fs-links-promises.ts",
|
||||
"tests/corpus/node24-fs-links-options.cjs",
|
||||
"tests/corpus/node24-fs-links-promise-errors.cjs",
|
||||
"tests/fixtures/node-types/fs-links.ts"
|
||||
"tests/corpus/fsp-path-ops.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -49406,11 +49312,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.truncate",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.truncate",
|
||||
"tests": [
|
||||
"tests/corpus/5542-fs-promises-parity.cjs",
|
||||
"tests/corpus/5543-fs-promises-typed.ts"
|
||||
"tests/corpus/fsp-path-ops.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -49433,21 +49338,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.unlink",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.unlink",
|
||||
"tests": [
|
||||
"tests/corpus/1403-buffer-fs.ts",
|
||||
"tests/corpus/2595-fs-arg-ladders.cjs",
|
||||
"tests/corpus/2919-fs-function-values.ts",
|
||||
"tests/corpus/2920-fs-promises-function-values.ts",
|
||||
"tests/corpus/fs-exists-optional-path.ts",
|
||||
"tests/corpus/fs-write-options.ts",
|
||||
"tests/corpus/node24-fs-callback-numeric-flags.cjs",
|
||||
"tests/corpus/node24-fs-mkdir-sync.ts",
|
||||
"tests/corpus/node24-fs-modes-sync.ts",
|
||||
"tests/corpus/node24-fs-open-sync.ts",
|
||||
"tests/corpus/node24-fs-write-modes-sync.ts",
|
||||
"tests/corpus/node24-fs-write-options-flags.ts"
|
||||
"tests/corpus/fsp-path-ops.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -49470,10 +49364,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.utimes",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.utimes",
|
||||
"tests": [
|
||||
"tests/corpus/node24-fs-timestamps-promises.ts"
|
||||
"tests/corpus/fsp-path-ops.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -49523,14 +49417,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.promises.writeFile",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fsPromises.writeFile",
|
||||
"tests": [
|
||||
"tests/corpus/1403-buffer-fs.ts",
|
||||
"tests/corpus/2595-fs-arg-ladders.cjs",
|
||||
"tests/corpus/2919-fs-function-values.ts",
|
||||
"tests/corpus/2920-fs-promises-function-values.ts",
|
||||
"tests/corpus/8427-fs-copyfile-writefile-flags.ts"
|
||||
"tests/corpus/fsp-content-ops.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -50415,12 +50305,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fs.read",
|
||||
"tests": [
|
||||
"tests/corpus/5548-fs-callback-arguments.cjs",
|
||||
"tests/corpus/5549-fs-callback-option-checks.cjs",
|
||||
"tests/corpus/fs-readdir-callback-options.ts"
|
||||
"tests/corpus/fs-read-write-overloads.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -50443,12 +50331,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fs.read",
|
||||
"tests": [
|
||||
"tests/corpus/5548-fs-callback-arguments.cjs",
|
||||
"tests/corpus/5549-fs-callback-option-checks.cjs",
|
||||
"tests/corpus/fs-readdir-callback-options.ts"
|
||||
"tests/corpus/fs-read-write-overloads.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -50471,12 +50357,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fs.read",
|
||||
"tests": [
|
||||
"tests/corpus/5548-fs-callback-arguments.cjs",
|
||||
"tests/corpus/5549-fs-callback-option-checks.cjs",
|
||||
"tests/corpus/fs-readdir-callback-options.ts"
|
||||
"tests/corpus/fs-read-write-overloads.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -50657,12 +50541,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fs.realpath",
|
||||
"tests": [
|
||||
"tests/corpus/5548-fs-callback-arguments.cjs",
|
||||
"tests/corpus/5549-fs-callback-option-checks.cjs",
|
||||
"tests/corpus/fs-readdir-callback-options.ts"
|
||||
"tests/corpus/fs-realpath-forms.ts"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -50685,10 +50567,11 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fs.realpath.native",
|
||||
"tests": [
|
||||
"tests/corpus/fs-realpath-native-callback.cjs"
|
||||
"tests/corpus/fs-realpath-native-callback.cjs",
|
||||
"tests/corpus/fs-realpath-forms.ts"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -51166,12 +51049,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fs.write",
|
||||
"tests": [
|
||||
"tests/corpus/5548-fs-callback-arguments.cjs",
|
||||
"tests/corpus/5549-fs-callback-option-checks.cjs",
|
||||
"tests/corpus/fs-readdir-callback-options.ts"
|
||||
"tests/corpus/fs-read-write-overloads.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -51194,12 +51075,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fs.write",
|
||||
"tests": [
|
||||
"tests/corpus/5548-fs-callback-arguments.cjs",
|
||||
"tests/corpus/5549-fs-callback-option-checks.cjs",
|
||||
"tests/corpus/fs-readdir-callback-options.ts"
|
||||
"tests/corpus/fs-read-write-overloads.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -51222,10 +51101,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fs.write",
|
||||
"tests": [
|
||||
"tests/corpus/5540-fs-callback-forms.cjs"
|
||||
"tests/corpus/fs-read-write-overloads.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -52297,21 +52176,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.realpathSync",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fs.realpathSync",
|
||||
"tests": [
|
||||
"tests/corpus/1403-buffer-fs.ts",
|
||||
"tests/corpus/2595-fs-arg-ladders.cjs",
|
||||
"tests/corpus/2919-fs-function-values.ts",
|
||||
"tests/corpus/2920-fs-promises-function-values.ts",
|
||||
"tests/corpus/fs-exists-optional-path.ts",
|
||||
"tests/corpus/fs-write-options.ts",
|
||||
"tests/corpus/node24-fs-callback-numeric-flags.cjs",
|
||||
"tests/corpus/node24-fs-mkdir-sync.ts",
|
||||
"tests/corpus/node24-fs-modes-sync.ts",
|
||||
"tests/corpus/node24-fs-open-sync.ts",
|
||||
"tests/corpus/node24-fs-write-modes-sync.ts",
|
||||
"tests/corpus/node24-fs-write-options-flags.ts"
|
||||
"tests/corpus/fs-realpath-forms.ts"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -52334,10 +52202,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"evidence": "surface-manifest:node-builtin.fs.realpathSync.native",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.fs.realpathSync.native",
|
||||
"tests": [
|
||||
"tests/corpus/fs-native-realpath.ts"
|
||||
"tests/corpus/fs-realpath-forms.ts"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -53805,12 +53673,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.'close'",
|
||||
"tests": [
|
||||
"tests/corpus/5546-fs-read-stream.cjs",
|
||||
"tests/corpus/5547-fs-write-stream.cjs",
|
||||
"tests/corpus/5554-fs-streams-typed.ts"
|
||||
"tests/corpus/5546-fs-read-stream.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -53833,12 +53699,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.'open'",
|
||||
"tests": [
|
||||
"tests/corpus/5546-fs-read-stream.cjs",
|
||||
"tests/corpus/5547-fs-write-stream.cjs",
|
||||
"tests/corpus/5554-fs-streams-typed.ts"
|
||||
"tests/corpus/5546-fs-read-stream.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -53861,12 +53725,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.'ready'",
|
||||
"tests": [
|
||||
"tests/corpus/5546-fs-read-stream.cjs",
|
||||
"tests/corpus/5547-fs-write-stream.cjs",
|
||||
"tests/corpus/5554-fs-streams-typed.ts"
|
||||
"tests/corpus/5546-fs-read-stream.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -55892,12 +55754,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.'close'",
|
||||
"tests": [
|
||||
"tests/corpus/5546-fs-read-stream.cjs",
|
||||
"tests/corpus/5547-fs-write-stream.cjs",
|
||||
"tests/corpus/5554-fs-streams-typed.ts"
|
||||
"tests/corpus/5547-fs-write-stream.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -55920,12 +55780,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.'open'",
|
||||
"tests": [
|
||||
"tests/corpus/5546-fs-read-stream.cjs",
|
||||
"tests/corpus/5547-fs-write-stream.cjs",
|
||||
"tests/corpus/5554-fs-streams-typed.ts"
|
||||
"tests/corpus/5547-fs-write-stream.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
@@ -55948,12 +55806,10 @@
|
||||
"inherited": true
|
||||
},
|
||||
"static": {
|
||||
"status": "partial",
|
||||
"status": "supported",
|
||||
"evidence": "compiler-feature:fs.'ready'",
|
||||
"tests": [
|
||||
"tests/corpus/5546-fs-read-stream.cjs",
|
||||
"tests/corpus/5547-fs-write-stream.cjs",
|
||||
"tests/corpus/5554-fs-streams-typed.ts"
|
||||
"tests/corpus/5547-fs-write-stream.cjs"
|
||||
]
|
||||
},
|
||||
"anchorSource": "exact"
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
{ "chapter": "fs", "signatures": ["`fsPromises.mkdtempDisposable(prefix[, options])`"], "status": "supported", "evidence": ["tests/corpus/fs-mkdtemp-disposable.ts"] },
|
||||
{ "chapter": "fs", "signatures": ["`fs.mkdtempDisposableSync(prefix[, options])`"], "status": "supported", "evidence": ["tests/corpus/fs-mkdtemp-disposable.ts"] },
|
||||
{ "chapter": "fs", "signatures": ["`fs.close(fd[, callback])`"], "status": "partial", "evidence": ["tests/corpus/fs-close-callback.cjs"] },
|
||||
{ "chapter": "fs", "signatures": ["`fs.realpath.native(path[, options], callback)`"], "status": "partial", "evidence": ["tests/corpus/fs-realpath-native-callback.cjs"] },
|
||||
{ "chapter": "fs", "signatures": ["`fs.realpath.native(path[, options], callback)`"], "status": "supported", "evidence": ["tests/corpus/fs-realpath-native-callback.cjs", "tests/corpus/fs-realpath-forms.ts"] },
|
||||
{ "chapter": "fs", "signatures": ["`fs.stat(path[, options], callback)`", "`fs.lstat(path[, options], callback)`", "`fs.fstat(fd[, options], callback)`"], "status": "supported", "evidence": ["tests/corpus/5548-fs-callback-arguments.cjs", "tests/corpus/5549-fs-callback-option-checks.cjs", "tests/corpus/fs-stat-callback-options.cjs", "tests/corpus/fs-stat-callback-ladder.cjs"] },
|
||||
{ "chapter": "fs", "symbols": ["fs.statSync", "fs.lstatSync", "fs.fstatSync"], "status": "supported", "evidence": ["tests/corpus/fs-stat-sync-ladder.cjs", "tests/corpus/fs-stat-runtime-options.ts", "tests/corpus/5747-fs-stat-throw-if-no-entry.ts", "tests/corpus/5748-fs-stat-throw-if-no-entry-js.cjs", "tests/corpus/2950-fs-descriptor-publication.ts"] },
|
||||
{ "chapter": "fs", "signatures": ["`fs.writeFile(file, data[, options], callback)`", "`fs.appendFile(path, data[, options], callback)`"], "status": "supported", "evidence": ["tests/corpus/fs-write-callback-options.cjs", "tests/corpus/5548-fs-callback-arguments.cjs"] },
|
||||
{ "chapter": "fs", "signatures": ["`fs.appendFile(path, data[, options], callback)`", "`fs.chmod(path, mode, callback)`", "`fs.close(fd[, callback])`", "`fs.copyFile(src, dest[, mode], callback)`", "`fs.fstat(fd[, options], callback)`", "`fs.fsync(fd, callback)`", "`fs.lstat(path[, options], callback)`", "`fs.mkdir(path[, options], callback)`", "`fs.mkdtemp(prefix[, options], callback)`", "`fs.open(path[, flags[, mode]], callback)`", "`fs.read(fd, buffer, offset, length, position, callback)`", "`fs.read(fd[, options], callback)`", "`fs.read(fd, buffer[, options], callback)`", "`fs.readdir(path[, options], callback)`", "`fs.readFile(path[, options], callback)`", "`fs.realpath(path[, options], callback)`", "`fs.realpath.native(path[, options], callback)`", "`fs.rmdir(path[, options], callback)`", "`fs.stat(path[, options], callback)`", "`fs.unlink(path, callback)`", "`fs.write(fd, buffer, offset[, length[, position]], callback)`", "`fs.write(fd, buffer[, options], callback)`", "`fs.writeFile(file, data[, options], callback)`"], "status": "partial", "evidence": ["tests/corpus/5548-fs-callback-arguments.cjs", "tests/corpus/5549-fs-callback-option-checks.cjs", "tests/corpus/fs-readdir-callback-options.ts"] },
|
||||
{ "chapter": "fs", "signatures": ["`fs.appendFile(path, data[, options], callback)`", "`fs.chmod(path, mode, callback)`", "`fs.close(fd[, callback])`", "`fs.copyFile(src, dest[, mode], callback)`", "`fs.fstat(fd[, options], callback)`", "`fs.fsync(fd, callback)`", "`fs.lstat(path[, options], callback)`", "`fs.mkdir(path[, options], callback)`", "`fs.mkdtemp(prefix[, options], callback)`", "`fs.open(path[, flags[, mode]], callback)`", "`fs.readdir(path[, options], callback)`", "`fs.readFile(path[, options], callback)`", "`fs.rmdir(path[, options], callback)`", "`fs.stat(path[, options], callback)`", "`fs.unlink(path, callback)`", "`fs.writeFile(file, data[, options], callback)`"], "status": "partial", "evidence": ["tests/corpus/5548-fs-callback-arguments.cjs", "tests/corpus/5549-fs-callback-option-checks.cjs", "tests/corpus/fs-readdir-callback-options.ts"] },
|
||||
{ "chapter": "fs", "parent": "Class: `FileHandle`", "symbols": ["fd"], "status": "supported", "evidence": ["tests/corpus/2686-fs-file-handle.ts", "tests/corpus/fs-filehandle-controls.ts"] },
|
||||
{ "chapter": "fs", "symbols": ["filehandle.chown"], "status": "supported", "evidence": ["tests/corpus/fs-filehandle-data-options.ts"] },
|
||||
{ "chapter": "fs", "symbols": ["FileHandle", "filehandle.fd", "filehandle.close", "filehandle.read", "filehandle.write", "filehandle.readFile", "filehandle.writeFile", "filehandle.appendFile", "filehandle.stat"], "status": "supported", "evidence": ["tests/corpus/2686-fs-file-handle.ts", "tests/corpus/3136-fs-file-handle-options.ts", "tests/corpus/fs-filehandle-data-options.ts"] },
|
||||
@@ -19,11 +19,16 @@
|
||||
{ "chapter": "fs", "symbols": ["fs.statfs", "fs.statfsSync"], "status": "supported", "evidence": ["tests/corpus/node24-fs-statfs-callbacks.cjs", "tests/corpus/node24-fs-statfs-options.cjs", "tests/corpus/node24-fs-statfs-errors.cjs", "tests/corpus/fs-statfs-family.ts", "tests/fixtures/node-types/fs-statfs.ts"] },
|
||||
{ "chapter": "fs", "symbols": ["fs.StatFs"], "status": "supported", "evidence": ["tests/corpus/node24-fs-statfs.ts", "tests/corpus/node24-fs-statfs-options.cjs", "tests/corpus/fs-statfs-family.ts", "tests/fixtures/node-types/fs-statfs.ts"] },
|
||||
{ "chapter": "fs", "parent": "Class: `fs.StatFs`", "symbols": ["type", "bsize", "blocks", "bfree", "bavail", "files", "ffree"], "status": "supported", "evidence": ["tests/corpus/node24-fs-statfs.ts", "tests/corpus/node24-fs-statfs-options.cjs", "tests/fixtures/node-types/fs-statfs.ts"] },
|
||||
{ "chapter": "fs", "signatures": ["`fs.mkdir(path[, options], callback)`", "`fs.readFile(path[, options], callback)`", "`fs.write(fd, string[, position[, encoding]], callback)`"], "status": "partial", "evidence": ["tests/corpus/5540-fs-callback-forms.cjs"] },
|
||||
{ "chapter": "fs", "signatures": ["`fs.read(fd, buffer, offset, length, position, callback)`", "`fs.read(fd[, options], callback)`", "`fs.read(fd, buffer[, options], callback)`", "`fs.write(fd, buffer, offset[, length[, position]], callback)`", "`fs.write(fd, buffer[, options], callback)`", "`fs.write(fd, string[, position[, encoding]], callback)`"], "status": "supported", "evidence": ["tests/corpus/fs-read-write-overloads.cjs"] },
|
||||
{ "chapter": "fs", "signatures": ["`fs.realpath(path[, options], callback)`", "`fs.realpath.native(path[, options], callback)`", "`fs.realpathSync(path[, options])`", "`fs.realpathSync.native(path[, options])`"], "status": "supported", "evidence": ["tests/corpus/fs-realpath-forms.ts"] },
|
||||
{ "chapter": "fs", "signatures": ["`fsPromises.realpath(path[, options])`"], "status": "partial", "evidence": ["tests/corpus/2940-fsp-realpath.ts"] },
|
||||
{ "chapter": "fs", "signatures": ["`fs.mkdir(path[, options], callback)`", "`fs.readFile(path[, options], callback)`"], "status": "partial", "evidence": ["tests/corpus/5540-fs-callback-forms.cjs"] },
|
||||
{ "chapter": "fs", "signatures": ["`fs.access(path[, mode], callback)`", "`fs.chown(path, uid, gid, callback)`", "`fs.lchown(path, uid, gid, callback)`", "`fs.fchown(fd, uid, gid, callback)`", "`fs.truncate(path[, len], callback)`", "`fs.accessSync(path[, mode])`", "`fs.chownSync(path, uid, gid)`", "`fs.lchownSync(path, uid, gid)`", "`fs.truncateSync(path[, len])`"], "status": "supported", "evidence": ["tests/corpus/5542-fs-promises-parity.cjs", "tests/corpus/fs-permissions-family.cjs", "tests/corpus/fs-access-truncate-optional.ts"] },
|
||||
{ "chapter": "fs", "signatures": ["`fs.createReadStream(path[, options])`", "`fs.createWriteStream(path[, options])`", "Class: `fs.ReadStream`", "Class: `fs.WriteStream`", "`writeStream.close([callback])`", "`writeStream.bytesWritten`", "`writeStream.path`"], "status": "partial", "evidence": ["tests/corpus/5546-fs-read-stream.cjs", "tests/corpus/5547-fs-write-stream.cjs", "tests/corpus/5554-fs-streams-typed.ts", "tests/corpus/9751-fs-read-stream-signal.ts", "tests/corpus/9752-fs-write-stream-signal.ts", "tests/corpus/9754-fs-stream-signal-option-values.ts", "tests/corpus/9755-fs-stream-signal-untyped.cjs"] },
|
||||
{ "chapter": "fs", "parent": "Class: `fs.ReadStream`", "signatures": ["`bytesRead` Type: {number}", "`path` Type: {string|Buffer}", "`pending` Type: {boolean}", "Event: `'close'`", "Event: `'open'`", "Event: `'ready'`"], "status": "partial", "evidence": ["tests/corpus/5546-fs-read-stream.cjs", "tests/corpus/5547-fs-write-stream.cjs", "tests/corpus/5554-fs-streams-typed.ts"] },
|
||||
{ "chapter": "fs", "parent": "Class: `fs.WriteStream`", "signatures": ["`pending` Type: {boolean}", "Event: `'close'`", "Event: `'open'`", "Event: `'ready'`"], "status": "partial", "evidence": ["tests/corpus/5546-fs-read-stream.cjs", "tests/corpus/5547-fs-write-stream.cjs", "tests/corpus/5554-fs-streams-typed.ts"] },
|
||||
{ "chapter": "fs", "parent": "Class: `fs.ReadStream`", "signatures": ["`bytesRead` Type: {number}", "`path` Type: {string|Buffer}", "`pending` Type: {boolean}"], "status": "partial", "evidence": ["tests/corpus/5546-fs-read-stream.cjs", "tests/corpus/5547-fs-write-stream.cjs", "tests/corpus/5554-fs-streams-typed.ts"] },
|
||||
{ "chapter": "fs", "parent": "Class: `fs.WriteStream`", "signatures": ["`pending` Type: {boolean}"], "status": "partial", "evidence": ["tests/corpus/5546-fs-read-stream.cjs", "tests/corpus/5547-fs-write-stream.cjs", "tests/corpus/5554-fs-streams-typed.ts"] },
|
||||
{ "chapter": "fs", "parent": "Class: `fs.ReadStream`", "signatures": ["Event: `'open'`", "Event: `'ready'`", "Event: `'close'`"], "status": "supported", "evidence": ["tests/corpus/5546-fs-read-stream.cjs"] },
|
||||
{ "chapter": "fs", "parent": "Class: `fs.WriteStream`", "signatures": ["Event: `'open'`", "Event: `'ready'`", "Event: `'close'`"], "status": "supported", "evidence": ["tests/corpus/5547-fs-write-stream.cjs"] },
|
||||
{ "chapter": "fs", "signatures": ["`filehandle.createReadStream([options])`", "`filehandle.createWriteStream([options])`", "`filehandle.readLines([options])`"], "status": "supported", "evidence": ["tests/corpus/5554-fs-streams-typed.ts", "tests/corpus/9753-file-handle-stream-signal.ts", "tests/corpus/fs-filehandle-lines.ts"] },
|
||||
{"chapter": "fs", "symbols": ["filehandle.pull", "filehandle.pullSync", "filehandle.writer"], "status": "not-applicable", "reason": "Stability 1 and gated by V8's --experimental-stream-iter: in a default Node 24 process typeof fh.pull, typeof fh.pullSync and typeof fh.writer are all \"undefined\", and a compiled program cannot pass V8 flags."},
|
||||
{"chapter": "fs", "signatures": ["`fs.lchmod(path, mode, callback)`", "`fs.lchmodSync(path, mode)`"], "status": "not-applicable", "reason": "Node exports these only where lchmod(2) exists (macOS): on Linux typeof fs.lchmod and typeof fs.lchmodSync are \"undefined\", and the runtime answers Node's not-a-function TypeError if a program reaches them dynamically. The promise form, which exists on every platform, is fsPromises.lchmod."},
|
||||
@@ -37,7 +42,10 @@
|
||||
{ "chapter": "fs", "signatures": ["`dirent.isFile()`", "`dirent.isDirectory()`", "`dirent.isBlockDevice()`", "`dirent.isCharacterDevice()`", "`dirent.isSymbolicLink()`", "`dirent.isFIFO()`", "`dirent.isSocket()`"], "status": "supported", "evidence": ["tests/corpus/fs-dir-listing.ts", "tests/corpus/1541-fs-readdir-dirent.ts", "tests/corpus/5544-fs-opendir.cjs", "tests/corpus/fs-opendir-callbacks.ts"] },
|
||||
{ "chapter": "fs", "signatures": ["`constants` Type: {Object}"], "status": "supported", "evidence": ["tests/corpus/6207-fs-constants-object.ts", "tests/corpus/6208-fs-constants-require.cjs", "tests/corpus/fs-promises-constants.ts"] },
|
||||
{ "chapter": "fs", "symbols": ["fs.utimes", "fs.futimes", "fs.lutimes", "fs.utimesSync", "fs.lutimesSync"], "status": "supported", "evidence": ["tests/corpus/node24-fs-timestamps-callbacks.cjs", "tests/corpus/node24-fs-timestamps-symlinks.ts", "tests/corpus/node24-fs-timestamps-errors.cjs", "tests/corpus/fs-links-times.cjs"] },
|
||||
{ "chapter": "fs", "signatures": ["`fsPromises.lstat(path[, options])`"], "status": "partial", "evidence": ["tests/corpus/2941-fsp-lstat-identity.ts"] },
|
||||
{ "chapter": "fs", "signatures": ["`fsPromises.access(path[, mode])`", "`fsPromises.chmod(path, mode)`", "`fsPromises.chown(path, uid, gid)`", "`fsPromises.lchown(path, uid, gid)`", "`fsPromises.link(existingPath, newPath)`", "`fsPromises.symlink(target, path[, type])`", "`fsPromises.rename(oldPath, newPath)`", "`fsPromises.truncate(path[, len])`", "`fsPromises.utimes(path, atime, mtime)`", "`fsPromises.lutimes(path, atime, mtime)`", "`fsPromises.unlink(path)`", "`fsPromises.rmdir(path[, options])`"], "status": "supported", "evidence": ["tests/corpus/fsp-path-ops.cjs"] },
|
||||
{ "chapter": "fs", "signatures": ["`fsPromises.appendFile(path, data[, options])`", "`fsPromises.copyFile(src, dest[, mode])`", "`fsPromises.readFile(path[, options])`", "`fsPromises.writeFile(file, data[, options])`"], "status": "supported", "evidence": ["tests/corpus/fsp-content-ops.cjs"] },
|
||||
{ "chapter": "fs", "signatures": ["`fsPromises.opendir(path[, options])`", "`fsPromises.statfs(path[, options])`"], "status": "supported", "evidence": ["tests/corpus/fsp-dir-statfs-ops.cjs"] },
|
||||
{ "chapter": "fs", "signatures": ["`fsPromises.lstat(path[, options])`"], "status": "supported", "evidence": ["tests/corpus/2941-fsp-lstat-identity.ts", "tests/corpus/fsp-options-forms.cjs"] },
|
||||
{ "chapter": "fs", "signatures": ["`fs.globSync(pattern[, options])`", "`fs.glob(pattern[, options], callback)`", "`fsPromises.glob(pattern[, options])`"], "status": "supported", "evidence": ["tests/corpus/5448-fs-glob-patterns.ts", "tests/corpus/5449-fs-glob-options.ts", "tests/corpus/5450-fs-glob-validation.js", "tests/corpus/5451-fs-promises-glob.ts", "tests/corpus/5452-fs-glob-callback.ts", "tests/fixtures/node-types/fs-glob.ts"] },
|
||||
{ "chapter": "fs", "signatures": ["`fs.cpSync(src, dest[, options])`", "`fs.cp(src, dest[, options], callback)`", "`fsPromises.cp(src, dest[, options])`"], "status": "supported", "evidence": ["tests/corpus/5567-fs-cpsync.ts", "tests/corpus/5568-fs-cp-errors.js", "tests/corpus/5569-fs-cp-symlinks.ts", "tests/corpus/5570-fs-cp-async.ts", "tests/corpus/5571-fs-cp-deep.ts"] },
|
||||
{ "chapter": "fs", "symbols": ["fs.Stats", "stats.isBlockDevice", "stats.isCharacterDevice", "stats.isDirectory", "stats.isFIFO", "stats.isFile", "stats.isSocket", "stats.isSymbolicLink"], "status": "supported", "evidence": ["tests/corpus/5541-fs-stats-fields.cjs", "tests/corpus/fs-stat-callback-options.cjs", "tests/corpus/fs-stat-sync-ladder.cjs", "tests/corpus/fs-stat-runtime-options.ts", "tests/corpus/fs-stat-callback-ladder.cjs"] },
|
||||
@@ -45,8 +53,9 @@
|
||||
{ "chapter": "fs", "signatures": ["`dev` Type: {number|bigint}", "`ino` Type: {number|bigint}", "`ctimeMs` Type: {number|bigint}"], "status": "supported", "evidence": ["tests/corpus/fs-stats-fields.ts", "tests/corpus/fs-stats-bigint-fields.ts", "tests/corpus/fs-stats-member-tables.cjs", "tests/corpus/2941-fsp-lstat-identity.ts"] },
|
||||
{ "chapter": "fs", "signatures": ["`filehandle.readableWebStream([options])`"], "status": "supported", "evidence": ["tests/corpus/fs-filehandle-web-stream.ts"] },
|
||||
{ "chapter": "fs", "signatures": ["`filehandle[Symbol.asyncDispose]()`"], "status": "supported", "evidence": ["tests/corpus/2844-node-disposable-resources.ts", "tests/corpus/fs-filehandle-lines.ts"] },
|
||||
{ "chapter": "fs", "signatures": ["`fsPromises.realpath(path[, options])`"], "status": "partial", "evidence": ["tests/corpus/2940-fsp-realpath.ts"] },
|
||||
{ "chapter": "fs", "signatures": ["`fsPromises.readdir(path[, options])`"], "status": "partial", "evidence": ["tests/corpus/2942-fsp-readdir-dirent.ts", "tests/corpus/fs-readdir-encodings.ts", "tests/corpus/fs-readdir-recursive-types.ts"] },
|
||||
{ "chapter": "fs", "signatures": [], "status": "partial", "evidence": ["tests/corpus/2940-fsp-realpath.ts"] },
|
||||
{ "chapter": "fs", "signatures": ["`fsPromises.stat(path[, options])`", "`fsPromises.lstat(path[, options])`", "`fsPromises.readlink(path[, options])`", "`fsPromises.mkdir(path[, options])`", "`fsPromises.mkdtemp(prefix[, options])`", "`fsPromises.open(path, flags[, mode])`", "`fsPromises.rm(path[, options])`"], "status": "supported", "evidence": ["tests/corpus/fsp-options-forms.cjs"] },
|
||||
{ "chapter": "fs", "signatures": ["`fsPromises.readdir(path[, options])`"], "status": "supported", "evidence": ["tests/corpus/2942-fsp-readdir-dirent.ts", "tests/corpus/fs-readdir-encodings.ts", "tests/corpus/fs-readdir-recursive-types.ts", "tests/corpus/fsp-options-forms.cjs"] },
|
||||
{ "chapter": "fs", "signatures": ["`fsPromises.watch(filename[, options])`"], "status": "partial", "evidence": ["tests/corpus/fs-promises-watch.ts", "tests/corpus/fs-promises-watch-overflow.cjs"], "fences": ["recursive: true (Node's non-native recursive walker)", "options.signal (AbortSignal)", "options.ignore (a matcher over entry names)", "a non-utf8 encoding, and the iterator outside a `for await`"] },
|
||||
{ "chapter": "fs", "parent": "Common Objects", "signatures": ["Class: `fs.Dirent`"], "status": "partial", "evidence": ["tests/corpus/compat-fs-dirent-realpath.ts"] },
|
||||
{ "chapter": "fs", "parent": "Class: `fs.Dirent`", "signatures": ["`name` Type: {string|Buffer}", "`parentPath` Type: {string}"], "status": "partial", "evidence": ["tests/corpus/compat-fs-dirent-realpath.ts"] },
|
||||
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"order": [
|
||||
"<repo>/tests/corpus/fs-read-write-overloads.cjs"
|
||||
],
|
||||
"diags": []
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"order": [
|
||||
"<repo>/tests/corpus/fs-realpath-forms.ts"
|
||||
],
|
||||
"diags": []
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"order": [
|
||||
"<repo>/tests/corpus/fsp-content-ops.cjs"
|
||||
],
|
||||
"diags": []
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"order": [
|
||||
"<repo>/tests/corpus/fsp-dir-statfs-ops.cjs"
|
||||
],
|
||||
"diags": []
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"order": [
|
||||
"<repo>/tests/corpus/fsp-options-forms.cjs"
|
||||
],
|
||||
"diags": []
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"order": [
|
||||
"<repo>/tests/corpus/fsp-path-ops.cjs"
|
||||
],
|
||||
"diags": []
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
// fs.read and fs.write, every documented overload: the positional buffer
|
||||
// form, the options form without a buffer (which allocates its own, of the
|
||||
// default size, so `length` bounds the read instead), the buffer-with-options
|
||||
// form, and the string form whose null position writes at the descriptor's
|
||||
// current offset.
|
||||
const fs = require("node:fs");
|
||||
const { join } = require("node:path");
|
||||
const { tmpdir } = require("node:os");
|
||||
|
||||
const dir = fs.mkdtempSync(join(tmpdir(), "scr-rw-overloads-"));
|
||||
const rf = join(dir, "r.txt");
|
||||
fs.writeFileSync(rf, "0123456789");
|
||||
const log = [];
|
||||
const head = (b) => JSON.stringify(b.subarray(0, 8).toString());
|
||||
const rfd = fs.openSync(rf, "r");
|
||||
fs.read(rfd, Buffer.alloc(5), 0, 5, 0, (e, n, b) => {
|
||||
log.push(`a ${e === null} ${n} ${head(b)}`);
|
||||
fs.read(rfd, { offset: 0, length: 5, position: 5 }, (e2, n2, b2) => {
|
||||
log.push(`b ${e2 === null} ${n2} ${b2.length === 16384} ${head(b2)}`);
|
||||
fs.read(rfd, Buffer.alloc(4), { position: 2 }, (e3, n3, b3) => {
|
||||
log.push(`c ${e3 === null} ${n3} ${b3.length} ${head(b3)}`);
|
||||
fs.closeSync(rfd);
|
||||
const wf = join(dir, "w.txt");
|
||||
const wfd = fs.openSync(wf, "w");
|
||||
fs.write(wfd, Buffer.from("abc"), 0, 3, 0, (e4, n4) => {
|
||||
log.push(`d ${e4 === null} ${n4}`);
|
||||
fs.write(wfd, Buffer.from("de"), { position: 3 }, (e5, n5) => {
|
||||
log.push(`e ${e5 === null} ${n5}`);
|
||||
fs.write(wfd, "fg", null, "utf8", (e6, n6, s6) => {
|
||||
log.push(`f ${e6 === null} ${n6} ${JSON.stringify(s6)}`);
|
||||
fs.closeSync(wfd);
|
||||
log.push(`g ${JSON.stringify(fs.readFileSync(wf, "utf8"))}`);
|
||||
for (const l of log) console.log(l);
|
||||
fs.rmSync(dir, { recursive: true, force: true });
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,52 @@
|
||||
// realpath and realpathSync, all forms: a plain call, the encoding
|
||||
// options that make the result a Buffer, the string encoding, the .native
|
||||
// twins, the callback forms, fsPromises.realpath, and the errors a missing
|
||||
// path and an unknown encoding raise.
|
||||
import {
|
||||
mkdtempSync,
|
||||
realpath,
|
||||
realpathSync,
|
||||
rmSync,
|
||||
symlinkSync,
|
||||
writeFileSync,
|
||||
} from "node:fs";
|
||||
import { realpath as fspRealpath } from "node:fs/promises";
|
||||
import { join } from "node:path";
|
||||
import { tmpdir } from "node:os";
|
||||
|
||||
const dir = mkdtempSync(join(tmpdir(), "scr-realpath-"));
|
||||
const real = join(dir, "real.txt");
|
||||
writeFileSync(real, "x");
|
||||
const link = join(dir, "link.txt");
|
||||
symlinkSync(real, link);
|
||||
const log: string[] = [];
|
||||
log.push(`sync ${realpathSync(link) === real}`);
|
||||
log.push(`plain ${realpathSync(real) === real}`);
|
||||
const buf: Buffer = realpathSync(link, { encoding: "buffer" });
|
||||
log.push(`buffer ${buf.toString() === real}`);
|
||||
const str: string = realpathSync(link, "utf8");
|
||||
log.push(`str ${str === real}`);
|
||||
log.push(`native ${realpathSync.native(link) === real}`);
|
||||
try {
|
||||
realpathSync(join(dir, "missing"));
|
||||
log.push("missing ok");
|
||||
} catch (err: any) {
|
||||
log.push(`missing ${err.code}`);
|
||||
}
|
||||
try {
|
||||
realpathSync(link, "nope" as BufferEncoding);
|
||||
log.push("encoding ok");
|
||||
} catch (err: any) {
|
||||
log.push(`encoding ${err.code} ${err.name}`);
|
||||
}
|
||||
realpath(link, (e, p) => {
|
||||
log.push(`cb ${e === null} ${p === real}`);
|
||||
realpath.native(link, (e2, p2) => {
|
||||
log.push(`cb native ${e2 === null} ${p2 === real}`);
|
||||
fspRealpath(link).then((p3) => {
|
||||
log.push(`promise ${p3 === real}`);
|
||||
for (const l of log) console.log(l);
|
||||
rmSync(dir, { recursive: true, force: true });
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,35 @@
|
||||
// fs/promises file content operations: writeFile with a mode and a Buffer,
|
||||
// appendFile with an encoding, readFile as a Buffer and as base64, and
|
||||
// copyFile with COPYFILE_EXCL when the destination exists and when it does
|
||||
// not.
|
||||
const fsp = require("node:fs/promises");
|
||||
const { join } = require("node:path");
|
||||
const { tmpdir } = require("node:os");
|
||||
|
||||
async function main() {
|
||||
const dir = await fsp.mkdtemp(join(tmpdir(), "scr-fsp-content-"));
|
||||
const file = join(dir, "a.txt");
|
||||
await fsp.writeFile(file, "héllo", "utf8");
|
||||
await fsp.appendFile(file, "+more");
|
||||
const log = [];
|
||||
log.push(`text ${JSON.stringify(await fsp.readFile(file, "utf8"))}`);
|
||||
const buf = await fsp.readFile(file);
|
||||
log.push(`buffer ${Buffer.isBuffer(buf)} ${buf.length}`);
|
||||
const b64 = await fsp.readFile(file, { encoding: "base64" });
|
||||
log.push(`base64 ${b64 === buf.toString("base64")}`);
|
||||
const copy = join(dir, "b.txt");
|
||||
await fsp.copyFile(file, copy, fsp.constants.COPYFILE_EXCL);
|
||||
log.push(`copy ${JSON.stringify(await fsp.readFile(copy, "utf8"))}`);
|
||||
try {
|
||||
await fsp.copyFile(file, copy, fsp.constants.COPYFILE_EXCL);
|
||||
log.push("copy exists ok");
|
||||
} catch (err) {
|
||||
log.push(`copy exists ${err.code}`);
|
||||
}
|
||||
const modeFile = join(dir, "m.txt");
|
||||
await fsp.writeFile(modeFile, Buffer.from("x"), { mode: 0o600 });
|
||||
log.push(`mode ${(await fsp.stat(modeFile)).mode & 0o777} ${(await fsp.readFile(modeFile))[0]}`);
|
||||
await fsp.rm(dir, { recursive: true, force: true });
|
||||
for (const l of log) console.log(l);
|
||||
}
|
||||
main();
|
||||
@@ -0,0 +1,29 @@
|
||||
// fs/promises opendir with its bufferSize/encoding options (read() rows and
|
||||
// close), readdir's Dirent names, and statfs's filesystem snapshot.
|
||||
const fsp = require("node:fs/promises");
|
||||
const { join } = require("node:path");
|
||||
const { tmpdir } = require("node:os");
|
||||
|
||||
async function main() {
|
||||
const dir = await fsp.mkdtemp(join(tmpdir(), "scr-fsp-dir-"));
|
||||
await fsp.writeFile(join(dir, "a.txt"), "a");
|
||||
await fsp.writeFile(join(dir, "b.txt"), "bb");
|
||||
const log = [];
|
||||
const d = await fsp.opendir(dir, { bufferSize: 4, encoding: "utf8" });
|
||||
const names = [];
|
||||
for (;;) {
|
||||
const entry = await d.read();
|
||||
if (!entry) break;
|
||||
names.push(`${entry.name}:${entry.isFile()}`);
|
||||
}
|
||||
await d.close();
|
||||
names.sort();
|
||||
log.push(`opendir ${names.join(",")}`);
|
||||
const entries = await fsp.readdir(dir, { withFileTypes: true });
|
||||
log.push(`dirent ${entries.map((e) => e.name).sort().join(",")}`);
|
||||
const stats = await fsp.statfs(dir);
|
||||
log.push(`statfs ${typeof stats.bsize} ${stats.bsize > 0} ${typeof stats.type}`);
|
||||
await fsp.rm(dir, { recursive: true, force: true });
|
||||
for (const l of log) console.log(l);
|
||||
}
|
||||
main();
|
||||
@@ -0,0 +1,42 @@
|
||||
// fs/promises with the options that change a result's shape: bigint
|
||||
// stats, Dirent rows and recursive listings, a Buffer readlink, a
|
||||
// recursive mkdir, open/close, copyFile and a recursive rm.
|
||||
const fsp = require("node:fs/promises");
|
||||
const { join } = require("node:path");
|
||||
const { tmpdir } = require("node:os");
|
||||
|
||||
async function main() {
|
||||
const dir = await fsp.mkdtemp(join(tmpdir(), "scr-fsp-"));
|
||||
const file = join(dir, "a.txt");
|
||||
await fsp.writeFile(file, "hello");
|
||||
const link = join(dir, "l.txt");
|
||||
await fsp.symlink(file, link);
|
||||
const log = [];
|
||||
const st = await fsp.stat(file, { bigint: true });
|
||||
log.push(`stat bigint ${typeof st.size} ${st.size === 5n}`);
|
||||
const plain = await fsp.stat(file);
|
||||
log.push(`stat ${typeof plain.size} ${plain.size === 5}`);
|
||||
const lst = await fsp.lstat(link, { bigint: true });
|
||||
log.push(`lstat bigint ${typeof lst.size} ${lst.isSymbolicLink()}`);
|
||||
const entries = await fsp.readdir(dir, { withFileTypes: true });
|
||||
log.push(`dirents ${entries.length} ${entries.every((e) => typeof e.isFile === "function")}`);
|
||||
const recursive = await fsp.readdir(dir, { recursive: true });
|
||||
log.push(`recursive ${recursive.includes("a.txt")}`);
|
||||
const target = await fsp.readlink(link, { encoding: "buffer" });
|
||||
log.push(`readlink ${Buffer.isBuffer(target)}`);
|
||||
const targetStr = await fsp.readlink(link);
|
||||
log.push(`readlink str ${targetStr === file}`);
|
||||
const nested = join(dir, "x", "y");
|
||||
await fsp.mkdir(nested, { recursive: true });
|
||||
log.push(`mkdir ${JSON.stringify(await fsp.readdir(join(dir, "x")))}`);
|
||||
const copy = join(dir, "b.txt");
|
||||
await fsp.copyFile(file, copy);
|
||||
log.push(`copy ${JSON.stringify(await fsp.readFile(copy, "utf8"))}`);
|
||||
const fh = await fsp.open(file, "r");
|
||||
log.push(`open ${fh.fd >= 0}`);
|
||||
await fh.close();
|
||||
await fsp.rm(dir, { recursive: true, force: true });
|
||||
log.push(`rm ${!require("node:fs").existsSync(dir)}`);
|
||||
for (const l of log) console.log(l);
|
||||
}
|
||||
main();
|
||||
@@ -0,0 +1,51 @@
|
||||
// fs/promises path operations: access modes, chmod/chown/lchown, link and
|
||||
// symlink, rename, truncate, utimes/lutimes, unlink and rmdir.
|
||||
const fsp = require("node:fs/promises");
|
||||
const { join } = require("node:path");
|
||||
const { tmpdir } = require("node:os");
|
||||
|
||||
async function main() {
|
||||
const dir = await fsp.mkdtemp(join(tmpdir(), "scr-fsp-ops-"));
|
||||
const file = join(dir, "a.txt");
|
||||
await fsp.writeFile(file, "hello");
|
||||
const log = [];
|
||||
await fsp.access(file, fsp.constants.R_OK | fsp.constants.W_OK);
|
||||
log.push("access ok");
|
||||
try {
|
||||
await fsp.access(join(dir, "missing"));
|
||||
log.push("access missing ok");
|
||||
} catch (err) {
|
||||
log.push(`access missing ${err.code}`);
|
||||
}
|
||||
await fsp.chmod(file, 0o600);
|
||||
log.push(`chmod ${(await fsp.stat(file)).mode & 0o777}`);
|
||||
const uid = process.getuid ? process.getuid() : 0;
|
||||
const gid = process.getgid ? process.getgid() : 0;
|
||||
await fsp.chown(file, uid, gid);
|
||||
await fsp.lchown(file, uid, gid);
|
||||
log.push("chown ok");
|
||||
const link = join(dir, "hard.txt");
|
||||
await fsp.link(file, link);
|
||||
log.push(`link ${(await fsp.stat(link)).nlink >= 2}`);
|
||||
const sym = join(dir, "sym.txt");
|
||||
await fsp.symlink(file, sym);
|
||||
log.push(`symlink ${(await fsp.readlink(sym)) === file}`);
|
||||
const renamed = join(dir, "renamed.txt");
|
||||
await fsp.rename(link, renamed);
|
||||
log.push(`rename ${(await fsp.stat(renamed)).size === 5}`);
|
||||
await fsp.truncate(renamed, 2);
|
||||
log.push(`truncate ${(await fsp.stat(renamed)).size}`);
|
||||
await fsp.utimes(renamed, 1, 1);
|
||||
log.push(`utimes ${(await fsp.stat(renamed)).mtimeMs}`);
|
||||
await fsp.lutimes(sym, 1, 1);
|
||||
log.push("lutimes ok");
|
||||
await fsp.unlink(renamed);
|
||||
const sub = join(dir, "sub");
|
||||
await fsp.mkdir(sub);
|
||||
await fsp.rmdir(sub);
|
||||
log.push(`unlink ${!(await fsp.access(renamed).then(() => true, () => false))}`);
|
||||
log.push(`rmdir ${!(await fsp.access(sub).then(() => true, () => false))}`);
|
||||
await fsp.rm(dir, { recursive: true, force: true });
|
||||
for (const l of log) console.log(l);
|
||||
}
|
||||
main();
|
||||
@@ -0,0 +1,20 @@
|
||||
// A failing encoding coercion must not keep the options record the call
|
||||
// materialized: a loop of failing calls leaves the sanitized lane's audit
|
||||
// clean and the next call correct.
|
||||
import { realpathSync } from "node:fs";
|
||||
import { tmpdir } from "node:os";
|
||||
|
||||
const valueForm = realpathSync as unknown as (p: string, o: unknown) => string;
|
||||
/* Path-independent: /tmp resolves to /private/tmp on macOS. */
|
||||
const base = realpathSync(tmpdir());
|
||||
const bad: { encoding: unknown } = { encoding: Object.create(null) };
|
||||
let threw = 0;
|
||||
for (let i = 0; i < 10000; i++) {
|
||||
try {
|
||||
valueForm(base, bad);
|
||||
} catch {
|
||||
threw += 1;
|
||||
}
|
||||
}
|
||||
console.log("threw", threw);
|
||||
console.log("after", valueForm(base, { encoding: "utf8" }) === base);
|
||||
@@ -0,0 +1 @@
|
||||
{ "plain": 2400, "san": 4300 }
|
||||
@@ -0,0 +1 @@
|
||||
{ "plain": 2400, "san": 4300 }
|
||||
@@ -0,0 +1 @@
|
||||
{ "plain": 2600, "san": 4500 }
|
||||
@@ -0,0 +1 @@
|
||||
{ "plain": 2400, "san": 4300 }
|
||||
@@ -0,0 +1 @@
|
||||
{ "plain": 2600, "san": 4500 }
|
||||
@@ -0,0 +1 @@
|
||||
{ "plain": 2600, "san": 4500 }
|
||||
@@ -0,0 +1,36 @@
|
||||
/* A failing encoding coercion (a value whose toString throws) must not keep
|
||||
* the typed options record the realpath call materialized: the record is
|
||||
* released on that path, so the next call is unaffected and the sanitized
|
||||
* lane's audit reports nothing. Native-only: the program deliberately hits a
|
||||
* coercion path whose message differs from Node's validation. */
|
||||
import { mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
||||
import { spawnSync } from "node:child_process";
|
||||
import { tmpdir } from "node:os";
|
||||
import { join } from "node:path";
|
||||
import { expect, test } from "vitest";
|
||||
import { compile } from "@scriptc/compiler";
|
||||
|
||||
const sanitize = process.env["SCRIPTC_SAN"] === "1";
|
||||
const fixture = join(import.meta.dirname, "..", "fixtures", "fs-realpath-options-coerce-fail.ts");
|
||||
|
||||
test("a failing encoding coercion leaves no retained options record", async () => {
|
||||
const outDir = mkdtempSync(join(tmpdir(), "scriptc-rp-coerce-"));
|
||||
const entry = join(outDir, "main.ts");
|
||||
writeFileSync(entry, readFileSync(fixture, "utf8"));
|
||||
const result = await compile(entry, {
|
||||
backend: "llvm",
|
||||
sanitize,
|
||||
outDir,
|
||||
outPath: join(outDir, "program"),
|
||||
});
|
||||
expect(result.ok, JSON.stringify(result.diagnostics)).toBe(true);
|
||||
if (!result.ok) return;
|
||||
try {
|
||||
const out = spawnSync(result.binaryPath, [], { encoding: "utf8" });
|
||||
expect(out.status).toBe(0);
|
||||
expect(out.stdout.trim().split("\n")).toEqual(["threw 10000", "after true"]);
|
||||
if (sanitize) expect(out.stderr).not.toContain("RC AUDIT FAILED");
|
||||
} finally {
|
||||
rmSync(outDir, { recursive: true, force: true });
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user