Peter's note: Unfortunately, premailer didn't use to keep a change log. But it's
never too late to start, so let's start here and now.
New option
session=Noneto provide the session used for making http requests.Bug fix: inlined styles are no longer sorted alphabetically. This preserves the input rule order so that premailer does not break style precedence where order is significant, e.g.
div { /* Padding on all sides is 10px. */ padding-left: 5px; padding: 10px; } div { /* Padding on the left side is 5px, on other sides is 10px. */ padding: 10px; padding-left: 5px; }
Prior to this fix premailer would swap the rules in the first example to look like the second.
- New option
allow_loading_external_files=Falsewhen loading externally referenced file URLs. E.g.<link rel=stylesheet href=/path/to/file.css>Be careful to enable this if the HTML loaded isn't trusted. Big security risk otherwise.
- Add
preserve_handlebar_syntaxoption. See #252 Thanks @CraigRobertWhite - Switch to GitHub Actions instead of TravisCI See #253
- Drop support for Python 2.7 and 3.4. Add test support for 3.8
- Don't strip
!importanton stylesheets that are ignored See #242 Thanks @nshenkman
- The
disable_validationwasn't passed tocsstest_to_pairsSee #235 Thanks @mbenedettini
- Add
allow_insecure_ssloption for external URLs
- Change default
cachetoolsimplementation tocachetools.LFUCache. - Now possible to change
cachetoolsimplementation with environment variables. See README.rst. - To avoid thread unsafe execution, the function caching decorator now employs a lock. See #225