- Docs: Use setEnvironmentOptions to set Browser Language by @stefanzweifel in spatie#701
- @stefanzweifel made their first contribution in spatie#701
Full Changelog: https://github.com/spatie/browsershot/compare/3.57.5...3.57.6
- Add PHP 8.2 Tests Support by @patinthehat in spatie#688
- Add Dependabot Automation by @patinthehat in spatie#689
- Bump actions/checkout from 2 to 3 by @dependabot in spatie#690
- Fixed exception message by @PHLAK in spatie#692
- @patinthehat made their first contribution in spatie#688
- @dependabot made their first contribution in spatie#690
- @PHLAK made their first contribution in spatie#692
Full Changelog: https://github.com/spatie/browsershot/compare/3.57.4...3.57.5
- Allow user to explicitly use a local file for html content. by @daum in spatie#687
- @daum made their first contribution in spatie#687
Full Changelog: https://github.com/spatie/browsershot/compare/3.57.3...3.57.4
- Do not allow
file://
to be used
- Prevent double request interception on POST by @JeppeKnockaert in spatie#664
- @JeppeKnockaert made their first contribution in spatie#664
Full Changelog: https://github.com/spatie/browsershot/compare/3.57.1...3.57.2
- Enable writeOptionsToFile for Windows by @moisish in spatie#660
- @moisish made their first contribution in spatie#660
Full Changelog: https://github.com/spatie/browsershot/compare/3.57.0...3.57.1
- Set custom temp path by @mtawil in spatie#648
- @mtawil made their first contribution in spatie#648
Full Changelog: https://github.com/spatie/browsershot/compare/3.56.0...3.57.0
- add
failedRequests
method
- Add console messages method by @freekmurze in spatie#641
Full Changelog: https://github.com/spatie/browsershot/compare/3.54.0...3.55.0
- Added method setContentUrl to set url when using html method by @vitorsemeano in spatie#635
Full Changelog: https://github.com/spatie/browsershot/compare/3.53.0...3.54.0
- Add support for
omitBackground
by @Ugoku in spatie#629 - Ability to set initial page Number for template Headers by @leonelvsc in spatie#632
- @Ugoku made their first contribution in spatie#629
- @leonelvsc made their first contribution in spatie#632
Full Changelog: https://github.com/spatie/browsershot/compare/3.52.6...3.53.0
- Fixed issue Error: Request is already handled! in NodeJs v17.8.0 by @webaddicto in spatie#623
Full Changelog: https://github.com/spatie/browsershot/compare/3.52.5...3.52.6
- Update savePdf to comply with 50eae92 by @marksalmon in spatie#622
- @marksalmon made their first contribution in spatie#622
Full Changelog: https://github.com/spatie/browsershot/compare/3.52.4...3.52.5
- Improve exception output when output file is missing
- Use function arguments for
mobile
andtouch
by @orkhanahmadov in spatie#610 - Update Puppeteer GitHub link by @ioanschmitt in spatie#598
- Add missing 'to' by @ioanschmitt in spatie#599
- Fix typo by @noreason in spatie#604
- PHPUnit to Pest Converter by @freekmurze in spatie#611
- @ioanschmitt made their first contribution in spatie#598
- @noreason made their first contribution in spatie#604
- @orkhanahmadov made their first contribution in spatie#610
Full Changelog: https://github.com/spatie/browsershot/compare/3.52.3...3.52.4
- Adding compatibility to Symfony 6 by @spackmat in spatie#589
- @spackmat made their first contribution in spatie#589
Full Changelog: https://github.com/spatie/browsershot/compare/3.52.2...3.52.3
- Add debug output to vague
CouldNotTakeBrowsershot
exception
Full Changelog: https://github.com/spatie/browsershot/compare/3.52.1...3.52.2
- Fix Apple Silicon Path Issue by @aerni in spatie#581
- @aerni made their first contribution in spatie#581
Full Changelog: https://github.com/spatie/browsershot/compare/3.52.0...3.52.1
All notable changes to Browsershot
will be documented in this file
- Prevent unsuccessful response by @mikaelpopowicz in spatie#576
- 🚀 Support PHP 8.1 by @Nielsvanpach in spatie#567
- Fix incorrect method reference in README by @intrepidws in spatie#570
- fix
blockDomains
andblockUrls
methods (#564)
- fix browser.js to only abort or continue the request once (#548)
- added functionality to only send headers with navigational requests (#542)
- add support for the --user-data-dir flag (#540)
- support spatie/image v2
- re-add support for symfony/process:^4.2
- add
base64pdf
method (#512)
- add ability to make POST requests (#496)
- bump temporary-directory to version 2.0 (#495)
- add scale option (#478)
- add support for scale option in PDF (#478)
- introduce a selectorIndex to bypass querySelector restrictions (#468)
- improve local require for puppeteer (#461)
- replace
waitFor
withwaitForTimeout
(#452)
- adding ability to pass envars to browser instance (#448)
- add support for PHP 8
- revert changes from previous version
- prevent local files from being rendered
- added
base64Screenshot
- add
usePipe
to use pipe instead of WebSocket (#423)
- pass puppeteer to
callChrome()
(#399)
- Replace emulateMedia call with emulateMediaType (#411)
- account for the removal of require('puppeteer/DeviceDescriptors') (#406)
- get the list of triggered requests (#402)
- add use of WS Endpoint option (#390)
- adds
blockUrls
andblockDomains
- adds disableImages method to prevent images from loading (#362)
- allow symfony 5 components
- allow to connect to remote chromium instance (#341)
- fix screenshots not deleting temporary files on the filesystem
- add support for HTTP authentication
- fix screenshot image manipulations
- allow to specify the cookie domain
- allow JavaScript to be disabled
- add
addChromiumArguments
- add
selectOption
paperSize
andmargins
can now use custom units
- add
writeOptionsToFile
- fix for setting cookies
- update lower deps
- new methods
addStyleTag
anddevice
added - fixed a bug where chrome would not shut down properly
- improve compatibilty with W-w-windows
- add
type
- add
useCookies
- improve compatibility with Windows
- added
waitForFunction
- better handling of timeouts
- add
evaluate
- add
setScreenshotType
- fix typehint in
emulateMedia
- drop PHP 7.0 support
- add
click
- add
setExtraHttpHeaders
- add support for taking screenshot of an element using a selector
- add support for custom binary/browser script
- support symfony ^4.0
- support phpunit ^7.0
- add
waitUntilNetworkIdle
- add ability to set sustom header and footer
- update dep on
spatie/image
- add
setChromePath
- add ability to set node module path
- add ability to output directory to the browser
- add
setDelay
- improve error handling for when no extension is provided
- add
setOption
- refactor internals
- add
setProxyServer
- add
dismissDialogs
- move snapshot package to dev-deps
- allow the use of the 'omitBackground' option when capturing screenshots
- add docblocks for static constructors to support IDE autocompletion
- make
paperSize
use floats instead of integers, addressing US paper sizes
- add
mobile
andtouch
functions
- add
ignoreHttpsErrors
- fix default npm path
- add
noSandbox
- fix setting margins
- add
setNetworkIdleTimeout
- make node and npm paths configurable
- improved out of the box experience for Laravel Valet users
- use Puppeteer to call Chrome
- add various options enabled by using Puppeteer
- add the default path for linux Chromium users
- add
bodyHtml
method
- add high pixel density support
- add support for directly converting some html
- add support for saving
pdf
s
- lower
symfony/process
requirement
- security improvements
- clean up unneeded files
- add support for urls with special characters
- complete rewrite
- ditch PhantomJS is favour of headless Chrome
- fix error message
- added support MacOS
- added support for setting a custom user agent
- added support for setting a custom user agent
- added support for W w w windows
- added support for some more extensions
- make
width
protected
- Fix width issues
- Upgrade
phantomjs
binary
- Fixed a bug where phantomjs keeps on rendering until the end of time
- Added a method to set the background color
- Added timeout parameter
- Added quality parameter