Releases: MyIntervals/emogrifier
Releases · MyIntervals/emogrifier
V2.2.0
Added
- Add a
HtmlPruner
class
(#679) - Add
AbstractHtmlProcessor::fromDomDocument
(#676) - Add
AbstractHtmlProcessor::fromHtml
(#675)
Changed
- Make the closures static
(#674) - Keep
<wbr>
elements by default withCssInliner
(#665) - Make the
CssInliner
inheritAbstractHtmlProcessor
(#660) - Separate
CssInliner::inlineCss
and the rendering
(#654)
Removed
- Drop the removal of unprocessable tags from
CssInliner
(#685) - Drop the removal of invisible nodes from
CssInliner
(#684)
Fixed
- Remove opening
<body>
tag frombody
content when element has attribute(s)
(#677,
#683) - Keep development files out of the Composer packages
(#678) - Call all static methods statically in
CssConcatenator
(#670) - Support all HTML5 self-closing tags, including
<embed>
,<source>
,
<track>
and<wbr>
(#653) - Remove all "unprocessable" (e.g.
<wbr>
) tags
(#650) - Correct translated xpath of
:nth-child
selector
(#648)
V2.1.1
V1.2.2
V2.1.0
Added
- PHP 7.3 support
(#638)- Allow PHP 7.3 in
composer.json
- Test in Travis for PHP 7.3
- Allow PHP 7.3 in
- Add a
renderBodyContent()
method
(#633) - Add a
getDomDocument()
method
(#630) - Add a Composer script for PHP CS Fixer
(#607) - Copy matching rules with dynamic pseudo-classes or pseudo-elements in
selectors to the style element
(#280,
#562,
#567) - Add a CssToAttributeConverter
(#546) - Expose the DOMDocument in AbstractHtmlProcessor
(#520) - Add an HtmlNormalizer class
(#513,
#516) - Add a CssInliner class
(#514,
#522) - Composer scripts for the various CI build steps
- Validate the composer.json on Travis
(#476)
Changed
- Mark the work-in-progress classes as
@internal
(#640) - Remove the unprocessable tags from the DOM, not from the raw HTML
(#627) - Reject empty HTML in
setHtml()
(#622) - Stop passing the DOM document around
(#618) - Improve performance by using explicit namespaces for PHP functions
(#573,
#576) - Add type hint checking to the code sniffs
(#566) - Check the code with PHPMD
(#561) - Add the cyclomatic complexity to the checked code sniffs
(#558) - Use the Symfony CSS selector component
(#540)
Deprecated
- Support for PHP 5.5 will be removed in Emogrifier 3.0.
- Support for PHP 5.6 will be removed in Emogrifier 4.0.
- The removal of invisible nodes will be removed in Emogrifier 3.0.
(#473) - Converting CSS styles to (non-CSS) HTML attributes will be removed
in Emogrifier 3.0. Please use the new CssToAttributeConverter instead.
(#474) - Emogrifier 3.x.y will be the last release that supports usage without
Composer (i.e., you can still require the class file).
Starting with version 4.0, Emogrifier will only work with Composer. - The Emogrifier class will be superseded by CssInliner class in
Emogrifier 3.0. For this, the Emogrifier class will be deprecated for
version 3.0 and removed for version 4.0.
Removed
Fixed
- Add required XML PHP extension to
composer.json
(#614) - Add required DOM PHP extension to
composer.json
(#595) - Escape hyphens in regular expressions
(#588) - Fix Travis for PHP 5.x
(#589) - Allow CSS between empty
@media
rule and another@media
rule
(#534) - Allow additional whitespace in media-query-list of disallowed
@media
rules
(#532) - Allow multiple minified
@import
rules in the CSS without error (note:
@import
s are currently ignored,
#527) - Style property ordering when multiple mixed individual and shorthand
properties apply (#511,
#508) - Calculation of selector precedence for selectors involving pseudo-classes
and/or attributes (#502) - Allow
@charset
in the CSS without error (note: its value is currently
ignored, #507) - Allow attribute selectors in descendants
(#506,
#381) - Allow adjacent sibling CSS selector combinator in minified CSS
(#505) - Allow CSS property values containing newlines
(#504)
V1.2.1
V2.0.0
Added
- Support for CSS :not() selector (#431)
- Automatically remove !important annotations from final inline style declarations (#420)
- Automatically move
<style>
block from<head>
to<body>
(#396) - PHP 7.2 support (#398)
- Debug mode. Throw debug exceptions only if debug is active. (#392)
Changed
- Test with latest and oldest dependencies on Travis (#463)
- Always enable the debug mode in the tests (#448)
- Optimize the string operations (#430)
Deprecated
- Support for PHP 5.5 will be removed in Emogrifier 3.0.
- Support for PHP 5.6 will be removed in Emogrifier 4.0.
Removed
Fixed
- Handle invalid/unrecognized selectors in media query blocks (#442)
- Throw (the correct) exception for invalid excluded selectors (#437)
- emogrifyBody must not encode umlaut entities (#414)
- Fix mapped HTML attribute values (#405)
- Make sure the HTML always has a BODY element (#410)
- Make inline style priority higher than css block priority (#404)
- Fix media regex parsing (#402)
- Silence purposefully ignored PHP Warnings (#400)
V1.2.0
V1.1.0 (2016-09-18)
Added
- Add support for PHP 7.1
(#342) - Support the attr|=value selector
(#337) - Support the attr*=value selector
(#330) - Support the attr$=value selector
(#329) - Support the attr^=value selector
(#324) - Support the attr~=value selector
(#323) - Add CSS to HTML attribute mapper
(#288)
Changed
- Remove composer dependency from PHP mbstring extension
(Actual code dependency were removed a lot of time ago)
(#295)
Deprecated
- Support for PHP 5.5 will be removed in Emogrifier 3.0.
- Support for PHP 5.4 will be removed in Emogrifier 2.0.
Fixed
- Ignore value with words more than one in the attribute selector
(#327) - Ignore spaces around the > in the direct child selector
(#322) - Ignore empty media queries
(#307)
(#237) - Ignore pseudo-class when combined with pseudo-element
(#308) - First-child and last-child selectors are broken
(#293) - Second !important rule needs to overwrite the first one
(#292)
V1.0.0
Merge pull request #266 from jjriv/task/release-1.0.0 [TASK] Prepare for the 1.0.0 release
V0.1.1
- some README update
- added two new options disableInlineStylesParsing and disableStyleBlocksParsing