5.0.0 (2020-05-06)
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Support for 64bit files and files of any size.
srm
function becomessrm.remove
- Global syntax.
secure
standard changes timestamps.- Internal changes:
- Functions are async.
- Standards syntax.
preview
standard becomesmark
.
- Queues up open and readdir calls, and retries them once something closes if there is an EMFILE error from too many file descriptors.
secure
standard now also rename folders.
- Unhandled errors.
- Events are now:
- 'debug'
- 'info'
- 'notice'
- 'warn'
- 'error'
- Npm auto publisher bug.
- Npm auto publisher.
- Custom directory removal.
- More tests.
- Wiki.
- Preview standard.
- Repository location.
- New custom standard syntax.
- Libraries update.
- Default standard when none is provided. (Tests are now a priority)
- Default standard when none is provided.
- Bumped eslint-utils from 1.4.0 to 1.4.2
- Dependabot.
- CLI support. See secure-rm-cli
- Unused packages.
- Code coverage.
- The CLI is deprecated, it moved over
secure-rm-cli
.
- End message when the process is finished.
- Types definitions.
- Mute argument in cli.
- New badges in readme.
- Travis Continuous Integration.
- All JavaScript files have been converted to TypeScript files.
- 'Method' is now 'standard' in the cli and in the lib.
- Custom standard has changed. See the doc.
- CLI will be ported in its own package.
- Comments on every file.
- Error recap at the end of the process.
- Command line tool bugs with paths.
Release of 1.0.0 (stable API) (messed up 1.0.0 on npm so it's 1.0.1)
- More tests.
- Documentation:
- Windows advice.
- Beautified the whole.
- Changelog.
- Promises support.
options
argument insrm
function:options
<Object> (optional) :method
<String> : ID of the method (default: 'secure');customMethod
<Function> : your own method to remove a file (if specified, priority overmethod
);maxBusyTries
<Number> : number of retries if an error occur;disableGlob
<Boolean> : allow or not file globbing (default: true).
- CLI args accordingly.
- Methods IDs are now textual rather than numerical.
- Args for
srm(path, methodID)
are nowsrm(path, options)
. - Updated documentation.