Repository navigation
v2.0.0
Breaking release: see UPGRADING.md.
Fixed
- Emails rendered by a real Rails app shipped without the framework CSS: the
stylesheet lookup probedconfig.assets(anOrderedOptionsthat answers
everyrespond_to?withnil) and the<link>fallback was stripped by
Premailer. Assets are now read from the actual Sprockets environment/manifest
or Propshaft load path. - Propshaft hosts no longer risk a boot crash on
assets.precompile. <raw>content is no longer transformed when the layout re-rendered the view,
and an author's literal###RAW0###is left intact.- The word "doctype" in content and
-like characters inside<style>
are no longer rewritten. - Numeric attributes are parsed in strict base 10 (
"010"was read as 8). <cta>,<info-box>,<spacer>and<block-grid>keepid,aria-*,
data-*and the author'sstyle.- Column widths only count sibling columns (a sibling
<p>skewed them). - The secondary button and info-box tokens now reach the stylesheet and dark
mode (1.1.0 announced it, but the SCSS ignored them). .h-line,.block-grid.up-N,.menu,.expanderhad no CSS.render_allrefuses anoutput_diroutside the app and only deletes its own
files (it used torm_rfthe whole directory).- The responsive breakpoint follows
container_widthinstead of a fixed 596px. - Code annotations are registered for the real
inky-*extensions.
Changed
- One transpilation and one inlining pass per email, hooked on
ActionMailer::Base#render_to_body; text parts, attachments and
non-ActiveMail emails are untouched. activemail_inline_styles(*paths)embeds host stylesheets too and raises
ActiveMail::StylesheetNotFoundinstead of warning.<button>and<cta>share one bulletproof, token-styled, inlined rendering.- SCSS uses the module system (
@use/@forward,sass:color,sass:math). - Transpilation is linear in the document size (200 nested rows: ×3.7,
2,000 raw blocks: ×35) and reuses a memoizedCore. Quality::Guardis extensible withQuality::Ruleand gains
translation_missing,single_root,text_part_present,text_part_plain.Qualitygainslocales,formats,around_eachandoutput_filters.- Errors share the
ActiveMail::Errorbase class.
Removed
ActiveMail::Inliner::Interceptorandconfig.register_inline_interceptor.ActiveMail::CompiledStylesheet(replaced byActiveMail::AssetPipeline).- The
<inky>tag. IGNORED_ON_PASSTHROUGH,combine_attributes,pass_through_attributes,
bulletproof_button_tableandBUTTON_PADDING.stylesheet_link_tagfrom the layouts.- The manual
workflow_dispatchrelease trigger.