Full Changelog: https://github.com/spatie/browsershot/compare/4.4.0...5.0.0
- Requires Puppeteer version 23.0 or higher!
- Add support for media features by @alexwass-lr in #890
- Update obsolete devices API by @alexwass-lr in #891
- Fixed
ignoreHttpsErrors()
method by @PHLAK in #899
- @alexwass-lr made their first contribution in #890
Full Changelog: https://github.com/spatie/browsershot/compare/4.3.1...5.0.0
- Update setting-the-timeout.md by @koernchen02 in #889
- Fix await browser close by @clementmas in #896
- fix disableCaptureURLS by @ziaratban in #873
- Add check for
file:/
URL fetching by @JaredPage in #881 - Added the ability to disable redirects via the
disableRedirects
method by @JaredPage in #881
Full Changelog: https://github.com/spatie/browsershot/compare/4.3.0...4.3.1
- Fix empty PDF issue with Puppeteer ^23.0.0 by @JeppeKnockaert in #876
Full Changelog: https://github.com/spatie/browsershot/compare/4.2.1...4.3.0
Revert changes of 4.2.1 because PDFs do not render correctly anymore (see spatie/laravel-pdf#175)
Full Changelog: https://github.com/spatie/browsershot/compare/4.2.0...4.2.1
- Add options to set protocol timeout by @zarulizham in #865
- Update Laravel Forge instructions.md by @mchev in #872
- Correctly respond to disableCaptureURLS option by @bluesheep100 in #871
- add disableCaptureURLs() document by @ziaratban in #864
- Update handling of browser output for Puppeteer ^23.0.0 by @bluesheep100 in #870
- @zarulizham made their first contribution in #865
- @mchev made their first contribution in #872
- @bluesheep100 made their first contribution in #871
Full Changelog: https://github.com/spatie/browsershot/compare/4.1.3...4.2.0
- option to disable the capturing request by @ziaratban in #861
- @ziaratban made their first contribution in #861
Full Changelog: https://github.com/spatie/browsershot/compare/4.1.2...4.1.3
- Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 by @dependabot in #860
- Fix - Clean up the temporary options file when browser was called successfully by @Ardenexal in #863
- @Ardenexal made their first contribution in #863
Full Changelog: https://github.com/spatie/browsershot/compare/4.1.1...4.1.2
- Issue with Windows temp path fixed by @SyedMuradAliShah in #858
- @SyedMuradAliShah made their first contribution in #858
Full Changelog: https://github.com/spatie/browsershot/compare/4.1.0...4.1.1
- Prevent taking screenshots twice by @clementmas in #849
Full Changelog: https://github.com/spatie/browsershot/compare/4.0.5...4.1.0
- Fix save method if there are no image manipulations by @moisish in #847
Full Changelog: https://github.com/spatie/browsershot/compare/4.0.4...4.0.5
- Fixing
spatie/image
's dependant bot alerts issues incomposer.lock
by @thanosalexandris in #846
- @thanosalexandris made their first contribution in #846
Full Changelog: https://github.com/spatie/browsershot/compare/4.0.3...4.0.4
- Fix redirect history test by @niclas-timm in #836
- Bump aglipanci/laravel-pint-action from 2.3.1 to 2.4 by @dependabot in #838
- Bump dependabot/fetch-metadata from 2.0.0 to 2.1.0 by @dependabot in #841
- Update installation instructions for nodejs + Puppeteer by @benholmen in #843
- Fix generation of large PDFs by @clementmas in #827
- @benholmen made their first contribution in #843
Full Changelog: https://github.com/spatie/browsershot/compare/4.0.2...4.0.3
- Update node version by @alnutile in #830
- Bump dependabot/fetch-metadata from 1.6.0 to 2.0.0 by @dependabot in #832
- Replace waitForTimeout by @niclas-timm in #834
Full Changelog: https://github.com/spatie/browsershot/compare/4.0.1...4.0.2
- Bump aglipanci/laravel-pint-action from 2.3.0 to 2.3.1 by @dependabot in #809
- [Fix] Change
screenshotQuality
property type to integer by @orkhanahmadov in #810
Full Changelog: https://github.com/spatie/browsershot/compare/4.0.0...4.0.1
- modernize codebase
- made dependency on spatie/image optional
- Adding a taggedPdf option by @ntaylor-86 in #804
- @ntaylor-86 made their first contribution in #804
Full Changelog: https://github.com/spatie/browsershot/compare/3.60.2...3.61.0
- Allow symfony/process 7.x by @thecaliskan in #803
- @thecaliskan made their first contribution in #803
Full Changelog: https://github.com/spatie/browsershot/compare/3.60.1...3.60.2
- fixing ?? syntax with ternary by @Chetanp23 in #795
- @Chetanp23 made their first contribution in #795
Full Changelog: https://github.com/spatie/browsershot/compare/3.60.0...3.60.1
- Added getOutput method for full output data access on any request by @vitorsemeano in #780
Full Changelog: https://github.com/spatie/browsershot/compare/3.59.0...3.60.0
- Update return types by @lamberttraccard in #766
- Update requirements.md for Forge provisioning by @colinmackinlay in #777
- Test against php 8.3 by @sergiy-petrov in #781
- Add waitForSelector() by @shadoWalker89 in #715
- Drop support for PHP 7
- @lamberttraccard made their first contribution in #766
- @colinmackinlay made their first contribution in #777
- @sergiy-petrov made their first contribution in #781
Full Changelog: https://github.com/spatie/browsershot/compare/3.58.2...3.59.0
- Let Symfony/process handle the command escape on Windows by @EmanueleCoppola in #757
- Cleanup temporary html files by @angelej in #735
- @angelej made their first contribution in #735
Full Changelog: https://github.com/spatie/browsershot/compare/3.58.1...3.58.2
- Redirect History: Update docs by @bessone in #748
- Bump dependabot/fetch-metadata from 1.5.1 to 1.6.0 by @dependabot in #749
- Fix Windows command escaping by @EmanueleCoppola in #756
- @EmanueleCoppola made their first contribution in #756
Full Changelog: https://github.com/spatie/browsershot/compare/3.58.0...3.58.1
- Read redirect history by @bessone in #747
- @bessone made their first contribution in #747
Full Changelog: https://github.com/spatie/browsershot/compare/3.57.8...3.58.0
- Fix node command error caused by type: module in package.json by @osbre in #740
- @osbre made their first contribution in #740
Full Changelog: https://github.com/spatie/browsershot/compare/3.57.7...3.57.8
- A word was missing by @sdebacker in #704
- Devices url for puppeteer has changed by @Skullbock in #706
- Bump dependabot/fetch-metadata from 1.3.5 to 1.3.6 by @dependabot in #708
- Fix link to Puppeteer devices in creating-images.md by @kriiv in #709
- Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0 by @dependabot in #726
- Update creating-images.md by @adityadees in #732
- Bump dependabot/fetch-metadata from 1.4.0 to 1.5.1 by @dependabot in #737
- @sdebacker made their first contribution in #704
- @Skullbock made their first contribution in #706
- @kriiv made their first contribution in #709
- @adityadees made their first contribution in #732
Full Changelog: https://github.com/spatie/browsershot/compare/3.57.6...3.57.7
- Docs: Use setEnvironmentOptions to set Browser Language by @stefanzweifel in #701
- @stefanzweifel made their first contribution in #701
Full Changelog: https://github.com/spatie/browsershot/compare/3.57.5...3.57.6
- Add PHP 8.2 Tests Support by @patinthehat in #688
- Add Dependabot Automation by @patinthehat in #689
- Bump actions/checkout from 2 to 3 by @dependabot in #690
- Fixed exception message by @PHLAK in #692
- @patinthehat made their first contribution in #688
- @dependabot made their first contribution in #690
- @PHLAK made their first contribution in #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 #687
- @daum made their first contribution in #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 #664
- @JeppeKnockaert made their first contribution in #664
Full Changelog: https://github.com/spatie/browsershot/compare/3.57.1...3.57.2
- Enable writeOptionsToFile for Windows by @moisish in #660
- @moisish made their first contribution in #660
Full Changelog: https://github.com/spatie/browsershot/compare/3.57.0...3.57.1
- Set custom temp path by @mtawil in #648
- @mtawil made their first contribution in #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 #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 #635
Full Changelog: https://github.com/spatie/browsershot/compare/3.53.0...3.54.0
- Add support for
omitBackground
by @Ugoku in #629 - Ability to set initial page Number for template Headers by @leonelvsc in #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 #623
Full Changelog: https://github.com/spatie/browsershot/compare/3.52.5...3.52.6
- Update savePdf to comply with 50eae92 by @marksalmon in #622
- @marksalmon made their first contribution in #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 #610 - Update Puppeteer GitHub link by @ioanschmitt in #598
- Add missing 'to' by @ioanschmitt in #599
- Fix typo by @noreason in #604
- PHPUnit to Pest Converter by @freekmurze in #611
- @ioanschmitt made their first contribution in #598
- @noreason made their first contribution in #604
- @orkhanahmadov made their first contribution in #610
Full Changelog: https://github.com/spatie/browsershot/compare/3.52.3...3.52.4
- Adding compatibility to Symfony 6 by @spackmat in #589
- @spackmat made their first contribution in #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 #581
- @aerni made their first contribution in #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 #576
- 🚀 Support PHP 8.1 by @Nielsvanpach in #567
- Fix incorrect method reference in README by @intrepidws in #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
- update dep on
spatie/image
- 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