Full Changelog: https://github.com/spatie/browsershot/compare/5.0.2...5.0.3
Full Changelog: https://github.com/spatie/browsershot/compare/5.0.1...5.0.2
Full Changelog: https://github.com/spatie/browsershot/compare/5.0.0...5.0.1
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 spatie#890
- Update obsolete devices API by @alexwass-lr in spatie#891
- Fixed
ignoreHttpsErrors()
method by @PHLAK in spatie#899
- @alexwass-lr made their first contribution in spatie#890
Full Changelog: https://github.com/spatie/browsershot/compare/4.3.1...5.0.0
- Update setting-the-timeout.md by @koernchen02 in spatie#889
- Fix await browser close by @clementmas in spatie#896
- fix disableCaptureURLS by @ziaratban in spatie#873
- Add check for
file:/
URL fetching by @JaredPage in spatie#881 - Added the ability to disable redirects via the
disableRedirects
method by @JaredPage in spatie#881
- @koernchen02 made their first contribution in spatie#889
- @JaredPage made their first contribution in spatie#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 spatie#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 spatie#865
- Update Laravel Forge instructions.md by @mchev in spatie#872
- Correctly respond to disableCaptureURLS option by @bluesheep100 in spatie#871
- add disableCaptureURLs() document by @ziaratban in spatie#864
- Update handling of browser output for Puppeteer ^23.0.0 by @bluesheep100 in spatie#870
- @zarulizham made their first contribution in spatie#865
- @mchev made their first contribution in spatie#872
- @bluesheep100 made their first contribution in spatie#871
Full Changelog: https://github.com/spatie/browsershot/compare/4.1.3...4.2.0
- option to disable the capturing request by @ziaratban in spatie#861
- @ziaratban made their first contribution in spatie#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 spatie#860
- Fix - Clean up the temporary options file when browser was called successfully by @Ardenexal in spatie#863
- @Ardenexal made their first contribution in spatie#863
Full Changelog: https://github.com/spatie/browsershot/compare/4.1.1...4.1.2
- Issue with Windows temp path fixed by @SyedMuradAliShah in spatie#858
- @SyedMuradAliShah made their first contribution in spatie#858
Full Changelog: https://github.com/spatie/browsershot/compare/4.1.0...4.1.1
- Prevent taking screenshots twice by @clementmas in spatie#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 spatie#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 spatie#846
- @thanosalexandris made their first contribution in spatie#846
Full Changelog: https://github.com/spatie/browsershot/compare/4.0.3...4.0.4
- Fix redirect history test by @niclas-timm in spatie#836
- Bump aglipanci/laravel-pint-action from 2.3.1 to 2.4 by @dependabot in spatie#838
- Bump dependabot/fetch-metadata from 2.0.0 to 2.1.0 by @dependabot in spatie#841
- Update installation instructions for nodejs + Puppeteer by @benholmen in spatie#843
- Fix generation of large PDFs by @clementmas in spatie#827
- @benholmen made their first contribution in spatie#843
Full Changelog: https://github.com/spatie/browsershot/compare/4.0.2...4.0.3
- Update node version by @alnutile in spatie#830
- Bump dependabot/fetch-metadata from 1.6.0 to 2.0.0 by @dependabot in spatie#832
- Replace waitForTimeout by @niclas-timm in spatie#834
- @alnutile made their first contribution in spatie#830
- @niclas-timm made their first contribution in spatie#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 spatie#809
- [Fix] Change
screenshotQuality
property type to integer by @orkhanahmadov in spatie#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 spatie#804
- @ntaylor-86 made their first contribution in spatie#804
Full Changelog: https://github.com/spatie/browsershot/compare/3.60.2...3.61.0
- Allow symfony/process 7.x by @thecaliskan in spatie#803
- @thecaliskan made their first contribution in spatie#803
Full Changelog: https://github.com/spatie/browsershot/compare/3.60.1...3.60.2
- fixing ?? syntax with ternary by @Chetanp23 in spatie#795
- @Chetanp23 made their first contribution in spatie#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 spatie#780
Full Changelog: https://github.com/spatie/browsershot/compare/3.59.0...3.60.0
- Update return types by @lamberttraccard in spatie#766
- Update requirements.md for Forge provisioning by @colinmackinlay in spatie#777
- Test against php 8.3 by @sergiy-petrov in spatie#781
- Add waitForSelector() by @shadoWalker89 in spatie#715
- Drop support for PHP 7
- @lamberttraccard made their first contribution in spatie#766
- @colinmackinlay made their first contribution in spatie#777
- @sergiy-petrov made their first contribution in spatie#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 spatie#757
- Cleanup temporary html files by @angelej in spatie#735
- @angelej made their first contribution in spatie#735
Full Changelog: https://github.com/spatie/browsershot/compare/3.58.1...3.58.2
- Redirect History: Update docs by @bessone in spatie#748
- Bump dependabot/fetch-metadata from 1.5.1 to 1.6.0 by @dependabot in spatie#749
- Fix Windows command escaping by @EmanueleCoppola in spatie#756
- @EmanueleCoppola made their first contribution in spatie#756
Full Changelog: https://github.com/spatie/browsershot/compare/3.58.0...3.58.1
- Read redirect history by @bessone in spatie#747
- @bessone made their first contribution in spatie#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 spatie#740
- @osbre made their first contribution in spatie#740
Full Changelog: https://github.com/spatie/browsershot/compare/3.57.7...3.57.8
- A word was missing by @sdebacker in spatie#704
- Devices url for puppeteer has changed by @Skullbock in spatie#706
- Bump dependabot/fetch-metadata from 1.3.5 to 1.3.6 by @dependabot in spatie#708
- Fix link to Puppeteer devices in creating-images.md by @kriiv in spatie#709
- Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0 by @dependabot in spatie#726
- Update creating-images.md by @adityadees in spatie#732
- Bump dependabot/fetch-metadata from 1.4.0 to 1.5.1 by @dependabot in spatie#737
- @sdebacker made their first contribution in spatie#704
- @Skullbock made their first contribution in spatie#706
- @kriiv made their first contribution in spatie#709
- @adityadees made their first contribution in spatie#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 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
- 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