- Change order of parameters when continuing promise chain.
async's callback function receives (err, result) parameters.- Last result is passed to
donepromise.
- Result of last promise is passed as first parameter to the
asyncpromise.
- Dependency bump
catchpromise is the new standard way to deal with errors.onErroris being deprecated, the two work the same way.thenpromise receives the value returned in the last promise as the first parameter, the second parameter is theutilsobject.- Errors generated inside the dynamic scraper's scraping function will fire the
catchpromise.
- 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
asyncpromise 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
donepromise when there was an error. - Added experimental support for command-line interface.
- Added example.
- The
lastResultis now made accessible to aRouter.