- Render stream emits "log" event with data from onError, onConsoleMessage, onRequestError and onRequestTimeout webpage hooks.
- Switched to PhantomJS 2: replaced the (now deprecated)
phantomjs
dependency withphantomjs-prebuilt
which installs PhantomJS 2. - When '--debug=true' is used as a phantomFlag and
'DEBUG=phantom-render-stream' is set in the environment,
STDERR of the Phantom process is now piped to the parent process STDERR
and labeled as
stderr
so that you can tell it apart fromstdout
. (Mark Stosberg)
####Breaking changes There might be some issue with zooming because of phantomjs 2+
- Provide complete request details when rendering fails. (Mark Stosberg)
- Bug fix: "Render failed" no longer fails due to hardcoded internal timeout value when rendering takes longer than 10 seconds and 'timeout' value is set sufficiently high (#43, fixed by Mark Stosberg)
- New quality option for specifying JPEG image quality. Defaults to 100.
- Added support for passing cookies.
- Added support for injecting polyfills.
- Added support for headers option when rendering a page.
- Documented how to use
render
as a transform stream.
render
now returns a duplex stream
paperSize
can now be set manually.
- fontconfig depenendency is now documented in README.
maxRenders
default was updated to be 500
maxRenders
default was updated to be 1000
- 'retries' option is now documented (Mark Stosberg)
- Add "Troubleshooting" and "See Also" sections to README.md (Mark Stosberg)
- Add HISTORY.md file (Mark Stosberg)
- default value of 'tmp' is now documented (Mark Stosberg)
maxErrors
option is documented. The option is used to limit how many phantom process errors are tolerated befor the process is killed.maxRenders
option is addeded. It is the number of options that a phantom process can make before it will be restarted. Defaults to 20.
- Fix issue with timeouts hanging the tests
- Fixed timeout related issue
- Both 'debug' and 'debug-stream' modules are now in use.
- Refactored how options are passed
- Kill phantom after 3 errors. New
maxErrors
option is added, but not yet documented.
- Forward printMedia option to phantomProcess
- Do not parse JSON strictly.
- Bump ldjson-stream version requirement
- Added support for passing command line options to phanton (Mark Stosberg, Ben Dalton)
- Changed debug code
- Refactored debug code
- Lose debug option and use debug-stream instead
- Add debug option
- Major rewrite.
mkfifo
is no longer used. It had proved problematic. - More options docs
- tmp dir fixes
- converted tabs to spaces
- fixes for 'expects', more tests
- Fix clean-up function
- Fix timeout function
- Added crop margin top crop margin left options (AndrewGrachov)
- Initial hacky Windows support
- Added missing dependencies
- No formal documented history. See Github commits.