phoenix_html v3.0.0 Release Notes

Release Date: 2021-08-06 // over 2 years ago
    • โœจ Enhancements

      • Allow extra html attributes on the :prompt option in select
      • Make Plug an optional dependency
      • Prefix form id on inputs when it is given to form_for/3
      • Allow %URI{} to be passed to link/2 and button/2 as :to
      • Expose Phoenix.HTML.Tag.csrf_token_value/1
      • Add Phoenix.HTML.Tag.attributes_escape/1
    • ๐Ÿ› Bug fixes

      • Honor the form attribute when creating hidden checkbox input
      • Use to_iso8601 as the standard implementation for safe dates and times
    • ๐Ÿ—„ Deprecations

      • form_for without an anonymous function has been deprecated. v3.0 has deprecated the usage, v3.1 will emit warnings, and v3.2 will fully remove the functionality
    • Backwards incompatible changes

      • Strings given as attributes keys in tag and content_tag are now emitted as is (without being dasherized) and are also HTML escaped
      • Prefix form id on inputs when it is given to form_for/3
      • By default dates and times will format to the to_iso8601 functions provided by their implementation
      • Do not include csrf-param and method-param in generated csrf_meta_tag
      • Remove deprecated escape_javascript in favor of javascript_escape
      • Remove deprecated field_value in favor of input_value
      • Remove deprecated field_name in favor of input_name
      • Remove deprecated field_id in favor of input_id