Skip to content

v4.0.0

Choose a tag to compare

@AviVahl AviVahl released this 08 Sep 15:08

@file-services/cached:

  • New: fs.realpath, fs.realpathSync, and fs.promises.realpath are now cached.

@file-services/resolve:

  • Breaking: resolver host now requires/uses statSync directly, instead of fileExistsSync/directoryExistsSync.
  • Breaking: resolver now always results an object. resolvedFile key might be undefined, false, or string.
  • New: support object-style browser field mapping in package.json when target is 'web'.
  • Performance: optimize speed of resolution by forcing no Error stack on resolution tries (where Errors are ignored anyhow).

@file-services/commonjs:

  • New: support resolutions to false, and provide empty object at runtime for those.
  • New: allow injecting pre-evaluated modules directly into loadedModules.

@file-services/overlay:

  • Performance: optimize speed for all sync methods by forcing no Error stack in upperFs lookup.

@file-services/typescript:

  • Performance: optimize host by forcing no Error stack in fs calls (where Errors are ignored anyhow).

@file-services/utils:

  • Performance: fileExistsSync/directoryExistsSync by forcing no Error stack.