Skip to content

Releases: mjmlio/mjml

v4.7.0-beta.2

28 Aug 15:57
Compare
Choose a tag to compare

Features

  • Return the mjml json structure (thanks @DRoet)
  • Include directory for monorepo packages (thanks @iamandrewluca)

Fixes

  • Fix #1942 mj-html-attribute cause trailing </link></meta>
  • Fix to allow empty attributes
  • Upgrade yargs and drop commander (thanks @TrySound)
  • Fix validate command to use the default base directory (thanks Yuri Guilherme)
  • Remove extra argument in call to borderParser (thanks @FelixSchwarz)
  • Code improvements (thanks @TrySound, @DRoet)
  • Documentation improvements (thanks @GarryFlemings)

v4.7.0-beta.1

02 Jun 10:02
Compare
Choose a tag to compare

Features

  • Add a new head component, mj-html-attributes, which allows to add any attribute on the generated html tags using css selectors
  • Add support of 'cover' and 'contain' on background-size for mj-section and mj-wrapper (thanks @Alexnortung), and other small improvements of background-images on outlook.
  • Add support of 'srcset' on mj-social-element (thanks @rickytranmer)
  • Add support of 'sizes' on mj-image and mj-social-element (thanks @rickytranmer)
  • Add support of 'letter-spacing' on multiple components
  • Automatically normalize lodash imports (thanks @TrySound)
  • Expose 'ignoreIncludes' option

Fixes

v4.6.3

05 May 15:19
Compare
Choose a tag to compare
  • Fix ignoreIncludes, and expose this option on mjml2html

v4.6.1

03 Mar 16:50
Compare
Choose a tag to compare

Fixes

  • Fix cli's --watch when no --config options defined

v4.6.0

03 Mar 11:38
Compare
Choose a tag to compare

Features

  • Add preprocessors to mjml parser - Fixes #42, #874, #457, #459 (thanks @XBeg9)
  • Add "inner-background-color" to mj-column to improve gutter. You can set different background-colors for padding and content. Also adds "inner-border" and "inner-border-radius".
  • Add "letter-spacing" attribute to mj-button (thanks @milap1296)
  • Add "usemap" attribute to mj-image (thanks @vinikira)

Fixes

  • Fix #1628 --filePath option accepts directories. Also, fix watch of nested includes when filePath is specified.
  • Fix #1670 mj-accordion fallback for Thunderbird (thanks @bertho-zero)
  • Fix #1801 dont escape url when "baseUrl" is set on mj-navbar
  • Fix mj-group background-color on outlook 2016 - set bgcolor on table (thanks @btd)
  • Fix invalid font-size value on p tag on mj-divider (thanks @allentsai93)
  • Fix #1848 cli --version alias
  • Allow "border-radius" to be percentage or px based on several components (thanks @zslabs)
  • Fix http links in code examples (thanks @edjw)
  • Multiple documentation improvements (thanks @GarryFlemings, @toantqt, @petetnt, @allanlewis, @davidsneighbour)

v4.5.1

27 Sep 09:45
Compare
Choose a tag to compare

Fixes

  • fix minify outlook conditionals. Regex could hang forever when many spaces in the last tag inside a conditional.

v4.5.0

17 Sep 07:42
Compare
Choose a tag to compare

Features

  • Allow social elements without links to make simple image-text lists (thanks @krystof-k)
  • Trigger validation warning when mj-include file is not found (#1689)
  • Mj-text line-height accepts negative values (#1639)
  • Prefix some css classes with mj- (#1620)

Fixes

  • Update to latest Yargs to resolve vulnerable transient dependencies (thanks @hermanbanken)
  • Fix auto generated column classes conflicts

Minor breaking changes

  • Due to the fix of the auto generated column classes, 3 columns with no width specified will now have a css class mj-column-per-33-333333333333336 instead of mj-column-per-33. Also, the outlook-group-fix and full-width-mobile classes have been prefixed with mj-. Be careful if you used those in a css selector.
  • Due to the "social elements without links" feature, a mj-social-element with neither name nor href will no longer have a <a> tag around it.

v4.4.0

17 Jul 16:07
Compare
Choose a tag to compare

Features

  • Mj-buttons are now Fully clickable ! (except on outlook)(Thanks to @hellocosmin !)
    Fully clickable when width is in px, when width is in % only the inner-padding is clickable
  • Mj-image: Fix Alt Text, allow font-size and max-height attribute (thanks @Zelltron)
  • Allow to preserve tags from being altered by juice when inlining css (#1450)
  • Add an option to disable migration warnings
  • allow to specify base path for mj-includes in cli (#1546)
  • doc to ignore content during minification (#1527)
  • Other documentation updates

Fixes

  • fix parser issue when failed include (#1607)
  • ignore raw elements in column width calculation in mj-group (#1621)
  • remove old windows phone 8 fix , remove old outlook fixes, lowercase Margin (#1619, #1618, #1614 thanks @hteumeuleu)
  • Bump chokidar & juice to resolve a security vulnerability (thanks @schmod)
  • https for carousel arrows img urls (thanks @sylvaindumont )
  • Upgrade chokidar to fix braces CVE (#1516 thanks @Sparticuz)
  • Fix cli output path calculation with \ separators (windows)
  • Move cross-env into devDependencies (thanks @nexdrew)
  • handle auto value in unit validation, allow it in mj-image height (#1538)
  • set mj-column font-size to 0 (#1560)
  • remove cellpadding and cellspacing from mj-table style
  • Allow 2 values for inner-padding on mj-button and mj-social (thanks @aew)
  • Fix Navbar ico-align attribute (#1495)
  • Don't migrate null values when migrating a json template
  • Fix validation regex, allow unitless line-height and paddings on navbar
  • Fix for ipad display block on social image (#1441)
  • Hero width defaults to container width (#1632)

v4.4.0-beta.3

02 Jul 17:31
Compare
Choose a tag to compare

Fixes

  • fix parser issue when failed include (#1607)
  • ignore raw elements in column width calculation in mj-group (#1621)
  • remove old windows phone 8 fix , remove old outlook fixes, lowercase Margin (#1619, #1618, #1614 thanks @hteumeuleu)
  • Bump chokidar & juice to resolve a security vulnerability (thanks @schmod)
  • https for carousel arrows img urls (thanks @sylvaindumont )

v4.4.0-beta.2

24 May 09:50
Compare
Choose a tag to compare

Features

  • Improve mj-button clickable zone when fixed width
  • allow to specify base path for mj-includes in cli (#1546)
  • doc to ignore content during minification (#1527)
  • Other documentation updates

Fixes

  • Upgrade chokidar to fix braces CVE (#1516 thanks @Sparticuz)
  • Fix cli output path calculation with \ separators (windows)
  • Move cross-env into devDependencies (thanks @nexdrew)
  • handle auto value in unit validation, allow it in mj-image height (#1538)
  • set mj-column font-size to 0 (#1560)
  • remove cellpadding and cellspacing from mj-table style
  • Allow 2 values for inner-padding on mj-button and mj-social (thanks @aew)