changelogs.md


mrmyhuang/memfs

Repository  -  API  -  Source

3.4.3

May 17, 2022

Bug Fixes

  • ensure js file is copied to expected place (#838) (90e2e1d)

3.4.2

May 17, 2022

Bug Fixes

  • set closed property correct on Node 18 (#836) (d1823e1)

3.4.1

December 30, 2021

Bug Fixes

  • recursively sync children steps to fix rename (43e8222)

3.4.0

November 24, 2021

Features

  • support the throwIfNoEntry option (80cf803)

3.3.0

September 19, 2021

Bug Fixes

  • ๐Ÿ› remove unused method (05b2a47)

Features

  • ๐ŸŽธ add .rmSync(), .rm(), and .promises.rm() methods (2414fb6)
  • ๐ŸŽธ add support for "recursive" and "force" flags in .rm() (7f6714c)

3.2.4

September 2, 2021

Bug Fixes

  • ๐Ÿ› use globalThis defensively (eed6bbf)

3.2.3

August 31, 2021

Bug Fixes

  • global and timers this arg in browser (1e93ab1)
  • prevent callback from triggering twice when callback throws (07e8215)
  • prevent callback from triggering twice when callback throws (6db755d), closes #542

3.2.2

April 5, 2021

Bug Fixes

  • deps: update dependency fs-monkey to v1.0.2 (07f05db)
  • deps: update dependency fs-monkey to v1.0.3 (84346ed)

3.2.1

March 31, 2021

Bug Fixes

  • add The Unlicense license SDPX in package.json (#594) (0e7b04b)

3.2.0

May 19, 2020

Bug Fixes

  • 'fromJSON()' did not consider cwd when creating directories (3d6ee3b)

Features

  • support nested objects in 'fromJSON()' (f8c329c)

3.1.3

May 14, 2020

Bug Fixes

  • deps: update dependency fs-monkey to v1.0.1 (10fc705)

3.1.2

March 12, 2020

Bug Fixes

  • should throw EEXIST instead of EISDIR on mkdirSync('/') (f89eede)

3.1.1

February 17, 2020

Bug Fixes

  • deps: update dependency fs-monkey to v1 (ccd1be0)

3.1.0

February 17, 2020

Features

  • replace fast-extend with native Object.assign (934f1f3)
  • specify engines field with node constraint of >= 8.3.0 (7d3b132)

3.0.6

February 16, 2020

Bug Fixes

  • export DirectoryJSON from index (c447a6c)

3.0.5

February 15, 2020

Bug Fixes

  • remove space from error message (42f870a)
  • use IStore interface instead of Storage (ff82480)
  • use PathLike type from node (98a4014)

3.0.4

January 15, 2020

Bug Fixes

  • ๐Ÿ› handle opening directories with O_DIRECTORY (acdfac8), closes #494

3.0.3

December 25, 2019

Bug Fixes

  • rmdir: proper async functionality (cc75c56)
  • rmdir: support recursive option (1e943ae)
  • watch: suppress event-emitter warnings (1ab2dcb)

3.0.2

December 25, 2019

Bug Fixes

  • watch: trigger change event for creation/deletion of children in a folder (b1b7884)

3.0.1

November 26, 2019

Performance Improvements

  • โšก๏ธ bump fast-extend (606775b)

3.0.0

November 26, 2019

Bug Fixes

  • ๐Ÿ› adjust definition of TCallback to accept null for error parameter (aedcbda)
  • ๐Ÿ› adjust return of Link#walk to return Link | null (1b76cb1)
  • ๐Ÿ› adjust type of children in Link to be possibly undefined (b4945c2)
  • ๐Ÿ› allow _modeToNumber to be called w/ undefined (07c0b7a)
  • ๐Ÿ› allow _modeToNumber to return undefined (3e3c992)
  • ๐Ÿ› allow assertEncoding to be called w/ undefined (e37ab9a)
  • ๐Ÿ› allow Dirent~build to accept undefined for the encoding parameter (8ca3550)
  • ๐Ÿ› allow flagsToNumber to be called w/ undefined (dbfc754)
  • ๐Ÿ› allow mkdtempBase to be called w/ undefined for encoding (f28c395)
  • ๐Ÿ› allow modeToNumber to be called w/ undefined (336821d)
  • ๐Ÿ› allow realpathBase to be called w/ undefined for encoding (e855f1c)
  • ๐Ÿ› create tryGetChild util function (b5093a1)
  • ๐Ÿ› create tryGetChildNode util function (62b5a52)
  • ๐Ÿ› define the type elements in the Volume.releasedFds array (9e21f3a)
  • ๐Ÿ› don't assign null to ._link property in FSWatcher (71569c0)
  • ๐Ÿ› don't assign null to ._steps property in FSWatcher (0e94b9c)
  • ๐Ÿ› don't assign null to .buf property in Node (00be0c2)
  • ๐Ÿ› don't assign null to .link property in File (5d01713)
  • ๐Ÿ› don't assign null to .node property in File (d06201e)
  • ๐Ÿ› don't assign null to .node property in Link (4d7f439)
  • ๐Ÿ› don't assign null to .parent property in Link (b3e60b6)
  • ๐Ÿ› don't assign null to .symlink property in Node (9bfb6f5)
  • ๐Ÿ› don't assign null to StatWatcher.prev property (fd1a253)
  • ๐Ÿ› don't assign null to StatWatcher.vol property (1540522)
  • ๐Ÿ› don't set #vol or #parent of link to null (b396f04)
  • ๐Ÿ› enable strictNullChecks (3896de7)
  • ๐Ÿ› make StatWatcher.timeoutRef property optional (d09cd03)
  • ๐Ÿ› refactor #access to be compatible w/ strictNullChecks (82ed81b)
  • ๐Ÿ› refactor #copyFileSync to be compatible w/ strictNullChecks (40f8337)
  • ๐Ÿ› refactor #createLink to be compatible w/ strictNullChecks (7d8559d)
  • ๐Ÿ› refactor #ftruncate to be compatible w/ strictNullChecks (f2ea3f1)
  • ๐Ÿ› refactor #mkdir to be compatible w/ strictNullChecks (d5d7883)
  • ๐Ÿ› refactor #mkdirp to be compatible w/ strictNullChecks (6cf0bce)
  • ๐Ÿ› refactor #mkdtempBase to be compatible w/ strictNullChecks (d935b3b)
  • ๐Ÿ› refactor #mkdtempSync to be compatible w/ strictNullChecks (7e22617)
  • ๐Ÿ› refactor #newFdNumber to be compatible w/ strictNullChecks (0bc4a15)
  • ๐Ÿ› refactor #newInoNumber to be compatible w/ strictNullChecks (e9ba56c)
  • ๐Ÿ› refactor #openFile to be compatible w/ strictNullChecks (1c4a4ba)
  • ๐Ÿ› refactor #openLink to be compatible w/ strictNullChecks (216a85f)
  • ๐Ÿ› refactor #read to be compatible w/ strictNullChecks (87b587f)
  • ๐Ÿ› refactor #readdirBase to be compatible w/ strictNullChecks (ab248b4)
  • ๐Ÿ› refactor #readFileBase to be compatible w/ strictNullChecks (27a4dad)
  • ๐Ÿ› refactor #readlinkBase to be compatible w/ strictNullChecks (b2e0f76)
  • ๐Ÿ› refactor #resolveSymlinks to be compatible w/ strictNullChecks (6dc4913)
  • ๐Ÿ› refactor #statBase to be compatible w/ strictNullChecks (ba0c20a)
  • ๐Ÿ› refactor #symlink to be compatible w/ strictNullChecks (4148ad3)
  • ๐Ÿ› refactor #truncate to be compatible w/ strictNullChecks (fadbd77)
  • ๐Ÿ› refactor #watch to be compatible w/ strictNullChecks (415a186)
  • ๐Ÿ› refactor #watchFile to be compatible w/ strictNullChecks (2c02287)
  • ๐Ÿ› refactor #write to be compatible w/ strictNullChecks (2ba6e0f)
  • ๐Ÿ› refactor #writeFile to be compatible w/ strictNullChecks (ac78c50)
  • ๐Ÿ› refactor #writeFileBase to be compatible w/ strictNullChecks (e931778)
  • ๐Ÿ› refactor #writeSync to be compatible w/ strictNullChecks (7b67eea)
  • ๐Ÿ› refactor copyFile tests to be compatible w/ strictNullChecks (e318af2)
  • ๐Ÿ› refactor errors to be compatible w/ strictNullChecks (b25c035)
  • ๐Ÿ› refactor exists tests to be compatible w/ strictNullChecks (81a564f)
  • ๐Ÿ› refactor renameSync tests to use tryGetChildNode (8cd782a)
  • ๐Ÿ› refactor volume tests to be compatible w/ strictNullChecks (f02fbac)
  • ๐Ÿ› refactor volume tests to use tryGetChild (5a6624f)
  • ๐Ÿ› refactor volume tests to use tryGetChildNode (34acaac)
  • ๐Ÿ› refactor writeFileSync tests to be compatible w/ strictNullChecks (4b7f164)
  • ๐Ÿ› remove unused getArgAndCb function (f8bb0f8)
  • ๐Ÿ› replace throwError fn w/ inline throw createError() calls (c9a0fd6)

Features

  • ๐ŸŽธ enable TypeScript strict null checks (1998b24)

BREAKING CHANGES

  • TypeScript strict null checks are now enabled which may break some TypeScript users.

2.17.1

November 26, 2019

Bug Fixes

  • set-up semantic-release packages (0554c7e)

2.15.5

July 16, 2019

Bug Fixes

2.15.4

June 1, 2019

Bug Fixes

  • ๐Ÿ› accept null as value in fromJSON functions (9e1af7d)
  • ๐Ÿ› annotate return type of toJSON functions (6609840)

2.15.3

June 1, 2019

Bug Fixes

  • ๐Ÿ› mocks process.emitWarning for browser compatibility (e3456b2), closes #374

2.15.2

February 16, 2019

Bug Fixes

  • ๐Ÿ› BigInt type handling (c640f25)

2.15.1

February 9, 2019

Bug Fixes

  • ๐Ÿ› show directory path when throwing EISDIR in mkdir (9dc7007)
  • ๐Ÿ› throw when creating root directory (f77fa8b), closes #325

2.15.0

January 27, 2019

Features

  • volume: add env variable to suppress fs.promise api warnings (e6b6d0a)

2.14.2

December 11, 2018

Bug Fixes

  • fds to start from 0x7fffffff instead of 0xffffffff (#277) (31e44ba)

2.14.1

November 29, 2018

Bug Fixes

  • don't copy legacy files into dist (ab8ffbb), closes #263

2.14.0

November 12, 2018

Features

  • add bigint option support (00a017e)

2.13.1

November 11, 2018

Bug Fixes

  • ๐Ÿ› don't install semantic-release, incompat with old Node (cd2b69c)