Release v0.14.0
0.14.0
This is a release with major and breaking changes.
The readme has the scoop, but here's the TL;DR:
Change Summary
- Added sitemap-index input generator (also supports gzipped)
- Added verbose output option for debugging
- Dropped support for <= NodeJS 0.12
- Library
run
method now returns a Promise - Improved Error handling, multiple errors reported
Internal Changes
- Promise usage at library and input generator levels
- Added multi-timer lock to protect Notifier data in timer callbacks
- Switched to Async Node I/O calls throughout Notifier
- Added runtime dependencies
- Async-Lock
- Combine-Errors
- mkdirp
Breaking Changes
The library run
method
- Returns a Promise that resolves (or rejects) at the end of the entire run (instead of a boolean indicating start success/failure).
- The second argument (callback) is now optional. If you supply one it will be called on completion, but the
run
Promise will also resolve. The callback argument is deprecated and may be removed at some future date. - The arguments given to a phantomjs process have changed slightly to accommodate the new verbose option.
Dropped Node 0.12 support
- Library now only supports Node 4.x +
Promise Failure Handler Error
A Promise failure handler will receive an Error instance that contains all of the errors that have occurred. Also, the Error instance contains additional properties that contain useful information:
completed
- An array of the file output paths that actually completed and were written to storage.notCompleted
- An array of the file output paths that did not complete and were not written to storage.