Sanitize has no breaking API changes in this release, but the major version number has been incremented because we've dropped support for end-of-life versions of Ruby. As long as you're using Ruby 3.1.0 or later, this should be a painless upgrade!
Added
-
Added over 100 new CSS properties to the relaxed config, representing all properties that are listed with a status of "Working Draft" or better in the latest W3C "All Properties" list.
-
Added the
@container
CSS at-rule to the relaxed config. -
Added the
-webkit-text-fill-color
CSS property to the relaxed config. @radar - #244
Changed
-
Ruby 3.1.0 is now the oldest supported Ruby version.
-
Sanitize now requires Nokogiri 1.16.8 or higher.