Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jan 11, 2024

This PR contains the following updates:

Package Type Update Change
phoenix_html (source) prod major == 2.14.3 -> == 4.3.0

Release Notes

phoenixframework/phoenix_html (phoenix_html)

v4.3.0

Compare Source

  • Enhancements

    • Implement Phoenix.HTML.Safe for Duration
    • Add function head for argument names of normalize_value/2 to improve documentation
    • Allow custom tags in options_for_select
    • Allow datetime as form option values
  • Bug fixes

    • Avoid false positive warnings on Elixir v1.19

v4.2.1

Compare Source

  • Enhancements
    • Add type to Phoenix.HTML.FormField
    • Allow keyword lists in options to use nil as key/value

v4.2.0

Compare Source

  • Enhancements

    • Add Phoenix.HTML.css_escape/1 to escape strings for use inside CSS selectors
    • Add the ability to pass :hr to options_for_select/2 to render a horizontal rule
  • Bug fixes

    • Pass form action through in FormData implementation

v4.1.1

Compare Source

  • Fix dependency resolution error

v4.1.0

Compare Source

  • Enhancements
    • Introduce form :action and consider input as changed if action changes to support better change tracking

v4.0.0

Compare Source

This version removes deprecated functionality and moved all HTML helpers to a separate library. HTML Helpers are no longer used in new apps from Phoenix v1.7, instead it relies on function components from Phoenix.LiveView. Older applications who wish to maintain compatibility, add {:phoenix_html_helpers, "~> 1.0"} to your mix.exs and then replace use Phoenix.HTML in your applications by:

import Phoenix.HTML
import Phoenix.HTML.Form
use PhoenixHTMLHelpers

v3.3.4

Compare Source

v3.3.3

Compare Source

  • Enhancements
    • Allow string fields on input_changed?

v3.3.2

Compare Source

  • Enhancements

    • Address deprecations in Elixir v1.16+
  • Deprecations

    • Deprecate inputs_for/2 and inputs_for/3 (without anonymous functions)

v3.3.1

Compare Source

  • Bug fix
    • Set display to none on generated forms
    • Warn for maps with atom keys

v3.3.0

Compare Source

  • Enhancements

    • Support deeply nested class lists
    • Implement Phoenix.HTML.Safe for URI
    • Implement Phoenix.HTML.FormData for Map
  • Bug fix

    • Generate unique IDs for checkboxes based on the value
    • Use artificial button click instead of form.submit in JavaScript to trigger all relevant events
    • Fix a bug where nil/false/true attributes in aria/data/phx would emit empty or literal values, such as "true" and "false". This release aligns them with all other attributes so both nil and false emit nothing. true emits the attribute with no value.
  • Deprecations

    • Phoenix.HTML.Tag.attributes_escape/1 is deprecated in favor of Phoenix.HTML.attributes_escape/1

v3.2.0

Compare Source

  • Enhancements
    • Raise if the id attribute is set to a number. This is actually an invalid value according to the HTML spec and it can lead to problematic client behaviour, especially in LiveView and other client frameworks.
    • Allow phx attributes to be nested, similar to aria and data attributes
    • Allow hidden fields in forms to be a list of values

v3.1.0

Compare Source

  • Bug fix
    • Do not submit data-method links if default has been prevented
  • Deprecations
    • Deprecate ~E and Phoenix.HTML.Tag.attributes_escape/1
    • Remove deprecated Phoenix.HTML.Link.link/1

v3.0.4

Compare Source

  • Bug fix
    • Ensure class={@​class} in HEEx templates and :class attribute in content_tag are properly escaped against XSS

v3.0.3

Compare Source

  • Bug fix
    • Fix sorting of attributes in tag/content_tag

v3.0.2

Compare Source

  • Enhancements
    • Support maps on Phoenix.HTML.Tag.attributes_escape/1

v3.0.1

Compare Source

  • Enhancements
    • Add Phoenix.HTML.Tag.csrf_input_tag/2

v3.0.0

Compare Source

  • 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

v2.14.3

Compare Source

  • Bug fixes
    • Fix warnings on Elixir v1.12

v2.14.2

Compare Source

  • Deprecations
    • Deprecate Phoenix-specific assigns :view_module and :view_template

v2.14.1

Compare Source

  • Enhancements

    • Add Phoenix.HTML.Form.options_for_select/2
    • Add Phoenix.HTML.Form.inputs_for/3
  • Bug fixes

    • Disable hidden input for disabled checkboxes

v2.14.0

Compare Source

  • Enhancements
    • Remove enforce_utf8 workaround on forms as it is no longer required by browser
    • Remove support tuple-based date/time with microseconds calendar types
    • Allow strings as first element in content_tag
    • Add :srcset support to img_tag
    • Allow inputs_for to skip hidden fields

v2.13.4

Compare Source

  • Bug fixes
    • Fix invalid :line in Elixir v1.10.0

v2.13.3

Compare Source

  • Enhancements

    • Add atom support to FormData
  • Bug fixes

    • Keep proper line numbers on .eex templates for proper coverage

v2.13.2

Compare Source

  • Bug fixes
    • Stop event propagation when confirm dialog is canceled

v2.13.1

Compare Source

  • Enhancements

    • Allow safe content to be given to label
    • Also escale template literals in javascript_escape/1
  • Bug fixes

    • Fix deprecation warnings to point to the correct alternative

v2.13.0

Compare Source

  • Enhancements

    • Require Elixir v1.5+ for more efficient template compilation/rendering
    • Add Phoenix.HTML.Engine.encode_to_iodata!/1
    • Add Phoenix.HTML.Form.form_for/3 that works without an anonymous function
  • Deprecations

    • Deprecate Phoenix.HTML.escape_javascript/1 in favor of Phoenix.HTML.javascript_escape/1 for consistency

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
Copy link
Contributor Author

renovate bot commented Jan 11, 2024

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: mix.lock
Command failed: mix deps.update phoenix_html
    warning: found quoted keyword "test" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes
    │
 52 │      "test": ["ecto.create --quiet", "ecto.migrate", "test"]]
    │       ~
    │
    └─ mix.exs:52:7

    warning: use Mix.Config is deprecated. Use the Config module instead
    │
  6 │ use Mix.Config
    │ ~~~~~~~~~~~~~~
    │
    └─ config/config.exs:6

    warning: Mix.Config.config/2 is deprecated. Use the Config module instead
    │
  9 │ config :eblog,
    │ ~~~~~~~~~~~~~~
    │
    └─ config/config.exs:9

    warning: Mix.Config.config/3 is deprecated. Use the Config module instead
    │
 13 │ config :eblog, Eblog.Endpoint,
    │ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    │
    └─ config/config.exs:13

    warning: Mix.Config.config/3 is deprecated. Use the Config module instead
    │
 21 │ config :logger, :console,
    │ ~~~~~~~~~~~~~~~~~~~~~~~~~
    │
    └─ config/config.exs:21

    warning: Mix.Config.import_config/1 is deprecated. Use the Config module instead
    │
 27 │ import_config "#{Mix.env}.exs"
    │ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    │
    └─ config/config.exs:27

    warning: use Mix.Config is deprecated. Use the Config module instead
    │
  1 │ use Mix.Config
    │ ~~~~~~~~~~~~~~
    │
    └─ config/dev.exs:1

    warning: Mix.Config.config/3 is deprecated. Use the Config module instead
    │
  9 │ config :eblog, Eblog.Endpoint,
    │ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    │
    └─ config/dev.exs:9

    warning: Mix.Config.config/3 is deprecated. Use the Config module instead
    │
 19 │ config :eblog, Eblog.Endpoint,
    │ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    │
    └─ config/dev.exs:19

    warning: Mix.Config.config/3 is deprecated. Use the Config module instead
    │
 30 │ config :logger, :console, format: "[$level] $message\n"
    │ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    │
    └─ config/dev.exs:30

    warning: Mix.Config.config/3 is deprecated. Use the Config module instead
    │
 34 │ config :phoenix, :stacktrace_depth, 20
    │ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    │
    └─ config/dev.exs:34

    warning: Mix.Config.config/3 is deprecated. Use the Config module instead
    │
 37 │ config :eblog, Eblog.Repo,
    │ ~~~~~~~~~~~~~~~~~~~~~~~~~~
    │
    └─ config/dev.exs:37

** (Mix) Hex dependency resolution failed

@renovate renovate bot force-pushed the renovate/phoenix_html-4.x branch 2 times, most recently from b0a07d5 to b9f0ea3 Compare March 1, 2024 21:32
@renovate renovate bot force-pushed the renovate/phoenix_html-4.x branch from b9f0ea3 to 812dab2 Compare December 28, 2024 10:16
@renovate
Copy link
Contributor Author

renovate bot commented Dec 28, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: mix.lock
Command failed: mix deps.update phoenix_html
    warning: found quoted keyword "test" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes
    │
 52 │      "test": ["ecto.create --quiet", "ecto.migrate", "test"]]
    │      ~
    │
    └─ mix.exs:52:6

    warning: use Mix.Config is deprecated. Use the Config module instead
    │
  6 │ use Mix.Config
    │ ~~~~~~~~~~~~~~
    │
    └─ config/config.exs:6

    warning: Mix.Config.config/2 is deprecated. Use the Config module instead
    │
  9 │ config :eblog,
    │ ~~~~~~~~~~~~~~
    │
    └─ config/config.exs:9

    warning: Mix.Config.config/3 is deprecated. Use the Config module instead
    │
 13 │ config :eblog, Eblog.Endpoint,
    │ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    │
    └─ config/config.exs:13

    warning: Mix.Config.config/3 is deprecated. Use the Config module instead
    │
 21 │ config :logger, :console,
    │ ~~~~~~~~~~~~~~~~~~~~~~~~~
    │
    └─ config/config.exs:21

    warning: Mix.Config.import_config/1 is deprecated. Use the Config module instead
    │
 27 │ import_config "#{Mix.env}.exs"
    │ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    │
    └─ config/config.exs:27

    warning: use Mix.Config is deprecated. Use the Config module instead
    │
  1 │ use Mix.Config
    │ ~~~~~~~~~~~~~~
    │
    └─ config/dev.exs:1

    warning: Mix.Config.config/3 is deprecated. Use the Config module instead
    │
  9 │ config :eblog, Eblog.Endpoint,
    │ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    │
    └─ config/dev.exs:9

    warning: Mix.Config.config/3 is deprecated. Use the Config module instead
    │
 19 │ config :eblog, Eblog.Endpoint,
    │ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    │
    └─ config/dev.exs:19

    warning: Mix.Config.config/3 is deprecated. Use the Config module instead
    │
 30 │ config :logger, :console, format: "[$level] $message\n"
    │ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    │
    └─ config/dev.exs:30

    warning: Mix.Config.config/3 is deprecated. Use the Config module instead
    │
 34 │ config :phoenix, :stacktrace_depth, 20
    │ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    │
    └─ config/dev.exs:34

    warning: Mix.Config.config/3 is deprecated. Use the Config module instead
    │
 37 │ config :eblog, Eblog.Repo,
    │ ~~~~~~~~~~~~~~~~~~~~~~~~~~
    │
    └─ config/dev.exs:37

** (Mix) Hex dependency resolution failed

@renovate renovate bot force-pushed the renovate/phoenix_html-4.x branch from 812dab2 to e403537 Compare February 21, 2025 11:42
@renovate renovate bot force-pushed the renovate/phoenix_html-4.x branch from e403537 to 7d32fd2 Compare August 10, 2025 13:58
@renovate renovate bot force-pushed the renovate/phoenix_html-4.x branch from 7d32fd2 to 2f17f04 Compare September 28, 2025 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant