Releases: mjmlio/mjml
Releases · mjmlio/mjml
v4.8.0
Features
- A new package
mjml-browser
is available. Use this package if you need to use MJML client-side. - Add
align
attribute tomj-divider
(thanks @thierrylemoulec) - Supports returning siblings elements from a custom component (thanks @IanEdington)
- Move js-beautify and html-minifier to cli, and flag
minify
andbeautify
options as deprecated in mjml-core. They will be removed from the core and only available in cli in MJML 5. (thanks @TrySound) - Flag
mjml-migrate
as deprecated. It will be removed in MJML 5. (thanks @TrySound) - Transpile lib for node 10 (thanks @TrySound)
- Refacto mjml-validator (thanks @TrySound)
- Bump all dependencies (thanks @DRoet)
Fixes
- Fix mjml-spacer in outlook, height was ignored when it was the last element of its parent mj-column (fixes #1971, thanks @Pharmasolin)
- Fix independent border properties on mj-image (fixes #1939, thanks @Pharmasolin)
- Fix conditional comment for meta tag in skeleton (thanks @cheapsteak)
- Added missing
<tbody>
after<table>
tag in mj-column component. (thanks @Pharmasolin) - Add
@babel/runtime
dependency directly to mjml (thanks @doits) - Fix issue with stacking columns within mj-group in Gmail for IOS (thanks @jsteele883)
- Handle border-radius on mj-hero (thanks @vasin)
- Documentation fixes and additions (thanks @theoomoregbee, @GarryFlemings, @KonstantinLukaschenko)
v4.7.1
v4.7.0
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. - Return the mjml json structure (thanks @DRoet)
- Include directory for monorepo packages (thanks @iamandrewluca)
- 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
- Fix mjml-migrate dependencies versions (thanks @TrySound)
- Change to new twitter share link (thanks @kitfit-dave)
- Fix support of 'font-style' on
mj-navbar-link
(thanks @kevingermain) - Fix to allow empty attributes
- Upgrade yargs and drop commander (thanks @TrySound)
- Update juice version (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)
- Documentation fixes (thanks @kevingermain, @dmgawel)
v4.7.0-beta.2
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
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
- Fix mjml-migrate dependencies versions (thanks @TrySound)
- Change to new twitter share link (thanks @kitfit-dave)
- Fix support of 'font-style' on
mj-navbar-link
(thanks @kevingermain) - Documentation fixes (thanks @kevingermain, @dmgawel)
v4.6.3
v4.6.1
v4.6.0
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
v4.5.0
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 ofmj-column-per-33
. Also, theoutlook-group-fix
andfull-width-mobile
classes have been prefixed withmj-
. 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
norhref
will no longer have a<a>
tag around it.