Skip to content

Latest commit

 

History

History
108 lines (85 loc) · 5.22 KB

CHANGELOG.md

File metadata and controls

108 lines (85 loc) · 5.22 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning. [3.0.0] Version 3.x supports DomPDF version 3.x. See the changelog in https://github.com/dompdf/dompdf/releases/tag/v3.0.0

The most notable change in laravel-dompdf are the changed defaults, to be more secure;

  • enable_remote is now false by default. Change with caution.
  • allowedRemoteHosts and artifactPathValidation are added the the config. Also, support for Laravel < 9 and PHP < 8.1 is dropped.

[2.2.0]

What's Changed

  • Fix setOptions by @cesarreyes3 in #1040
  • Bump dompdf minimum to 2.0.7 by @barryvdh

New Contributors

  • @cesarreyes3 made their first contribution in #1040

Full Changelog: https://github.com/barryvdh/laravel-dompdf/compare/v2.1.1...v2.2.0

[2.1.1]

What's Changed

  • Revert "Fix setOptions method" by @barryvdh in #1039

Full Changelog: https://github.com/barryvdh/laravel-dompdf/compare/v2.1.0...v2.1.1

[2.1.0]

What's Changed

  • Convert phpunit by @barryvdh in #952
  • ci: Use GitHub Actions V3 by @DannyvdSluijs in #990
  • Fix named arguments when using facade by @erikn69 in #1002
  • Update dompdf version as a dependancy by @AliSheikhDev in #967
  • ci: Use GitHub Actions V4 by @erikn69 in #1003
  • Fix phpstan analysis by @erikn69 in #972
  • Fix setOptions method by @erikn69 in #974
  • Small typo fix in dompdf config file by @ricklambrechts in #1004
  • Upgrade to larastan/larastan by @parth391 in #1014
  • Fixing "Upgrade to larastan/larastan" by @erikn69 in #1018
  • Laravel 11 Support by @erikn69 in #1036
  • Laravel 11.x Compatibility by @laravel-shift in #1037

New Contributors

  • @DannyvdSluijs made their first contribution in #990
  • @AliSheikhDev made their first contribution in #967
  • @ricklambrechts made their first contribution in #1004
  • @parth391 made their first contribution in #1014
  • @laravel-shift made their first contribution in #1037

Full Changelog: https://github.com/barryvdh/laravel-dompdf/compare/v2.0.1...v2.0.2

[2.0.0]

Version 2 supports DomPDF 2.x

Changed

  • Remove the deprecated class 'Barryvdh\DomPDF\Facade' Facade in favor of Barryvdh\DomPDF\Facade\Pdf
  • Set default Facade to Pdf instead of PDF
  • HTML5 parser option is deprecated, because this is always on.
  • orientation option was never used. Removed in favor of options.default_paper_orientation

Added

  • Upgraded to use dompdf/dompdf 2.x
  • setOption to change only the specified option(s), instead of replace all options.
  • Magic methods to allow calls to Dompdf methods easier. (#892)
  • default_paper_orientation option has been added to the defaults.
  • Add option to set public path (#890)

Deprecated

  • setOptions is now deprecated. Use setOption instead.
  • Config dompdf.defines has been renamed to dompdf.options

[2.0.0-beta3]

Changed

  • Remove the deprecated class 'Barryvdh\DomPDF\Facade' Facade in favor of Barryvdh\DomPDF\Facade\Pdf
  • Set default Facade to Pdf instead of PDF

[2.0.0-beta2]

Added

  • Upgraded to use dompdf/dompdf 2.x
  • setOption to change only the specified option(s), instead of replace all options.
  • Magic methods to allow calls to Dompdf methods easier. (#892)
  • default_paper_orientation option has been added to the defaults.
  • Add option to set public path (#890)

Changed

  • HTML5 parser option is deprecated, because this is always on.
  • orientation option was never used. Removed in favor of options.default_paper_orientation

Deprecated

  • setOptions is now deprecated. Use setOption instead.
  • Config dompdf.defines has been renamed to dompdf.options

Dompdf 2.0.0, highlights since 1.2.x

https://github.com/dompdf/dompdf/releases/tag/v2.0.0

  • Addresses multiple security vulnerabilities (see link)
  • Modifies callback and page_script/page_text handling (breaking change, see link)
  • Switches the HTML5 parser to Masterminds/HTML5
  • Improves CSS property parsing and representation
  • Improves border, outline, and background rendering for inline elements
  • Switches installed fonts and font metrics cache file format to JSON
  • Adds support for the inset CSS shorthand property and the legacy break-word keyword for word-break
  • Adds "end_document" callback event