Skip to content

Releases: tschaub/mock-fs

v4.13.0

20 Aug 23:05
Compare
Choose a tag to compare
  • Make process.chdir(), process.cwd(), and fs.createWriteStream() work with bypass() (thanks @3cp, see #307)
  • Fix memory leak associated with Node 10 (thanks #3cp, see #303)
  • Async function handling in bypass() (see #306)
  • Big new feature! Temporarily bypass the mocked filesystem with the bypass() function (thanks @nonara, see #304)

v4.12.0

24 Apr 17:00
e42fdbb
Compare
Choose a tag to compare
  • Check permissions in readdir and readdirSync (thanks @warpdesign, see #295)
  • Add support for Buffer arg on many fs functions (thanks @3cp, see #293)
  • Fix checks for read permission (thanks @3cp, see #289)
  • Correct error code for readFile on a directory (thanks @3cp, see #286)

v4.11.0

24 Apr 17:00
9832d66
Compare
Choose a tag to compare
  • Support withFileTypes when reading directories (thanks @mrmlnc, see #287)

v4.10.4

24 Apr 17:01
7f28122
Compare
Choose a tag to compare
  • Throw ENOTDIR when trying to open an incorrect path (thanks @niieani, see #282)
  • Fix maybeCallback return (thanks @3cp, see #281)