- Change order of parameters when continuing promise chain.
async
's callback function receives (err, result) parameters.- Last result is passed to
done
promise.
- Result of last promise is passed as first parameter to the
async
promise.
- Dependency bump
catch
promise is the new standard way to deal with errors.onError
is being deprecated, the two work the same way.then
promise receives the value returned in the last promise as the first parameter, the second parameter is theutils
object.- Errors generated inside the dynamic scraper's scraping function will fire the
catch
promise.
- Url of the page being scraped can now be easily accessed using
utils.url
. - Added error handling example.
- Passing utils to the error callback by @rvernica
- Add an 'options' argument to DynamicScraper that get passed to Phantom by @vdraceil
- Updated dependencies
- Minor fixes related with documentation.
- Fixed
async
promise works. It can receive values to be passed to the next promise. Internally it now uses this mechanism. - Support for node 0.12.
- Changes in the command-line interface.
- Fixed bug where no argument was given to the
done
promise when there was an error. - Added experimental support for command-line interface.
- Added example.
- The
lastResult
is now made accessible to aRouter
.