Skip to content

Releases: AoDev/Filendir

v1.0.1

28 Feb 14:02
Compare
Choose a tag to compare

Just some dev dependencies updates and CI tests against latest Node.js (v9).

1.0.0

25 Sep 18:53
Compare
Choose a tag to compare

Make filendir methods behave like equivalent fs.write methods

The goal of this change is to, in addition to create missing directories,
provide the exact same features and behaviour as node
fs.writeFile and fs.writeFileSync.

I believe it is a more correct approach.

This includes:

  • methods have the same signatures than corresponding fs.writeFile ones.
  • method writeFile has been added as synonym for async. write
  • docs have been updated
  • more unit tests

BREAKING CHANGE:

  • synchronous write errors are not handled anymore.

They will simply (re)throw an error.
In opposition to the previous behaviour which would return
true or false depending on success. You now have to handle the errors
as you would for the fs.writeFileSync method.