dwyl / learn-tailwind

🌬️ Learn Tailwind CSS to craft pixel-perfect web apps/sites in less time! 😍
https://dwyl.github.io/learn-tailwind
GNU General Public License v2.0
48 stars 3 forks source link

Bump phoenix_html from 3.3.3 to 4.0.0 #93

Closed dependabot[bot] closed 8 months ago

dependabot[bot] commented 8 months ago

Bumps phoenix_html from 3.3.3 to 4.0.0.

Changelog

Sourced from phoenix_html's changelog.

v4.0.0 (2023-12-19)

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. 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
Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
nelsonic commented 8 months ago

https://github.com/dwyl/learn-tailwind/actions/runs/7378985882/job/20074728803#step:6:82

image
== Compilation error in file lib/app_web/views/error_helpers.ex ==
** (RuntimeError) use Phoenix.HTML is no longer supported in v4.0.

To keep compatibility with previous versions, add {:phoenix_html_helpers, "~> 1.0"} to your mix.exs deps
and then, instead of "use Phoenix.HTML", you might:

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

    (phoenix_html 4.0.0) expanding macro: Phoenix.HTML.__using__/1
    lib/app_web/views/error_helpers.ex:6: AppWeb.ErrorHelpers (module)
    (elixir 1.14.2) expanding macro: Kernel.use/1
    lib/app_web/views/error_helpers.ex:6: AppWeb.ErrorHelpers (module)
Error: Process completed with exit code 1.
nelsonic commented 8 months ago
    error: undefined function csrf_token_value/0 (expected AppWeb.LayoutView to define such a function or for it to be imported, but none are available)
    β”‚
  7 β”‚     <meta name="csrf-token" content={csrf_token_value()}>
    β”‚     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    β”‚
    └─ lib/app_web/templates/layout/root.html.heex:7: AppWeb.LayoutView."root.html"/1

    error: undefined function link/2 (expected AppWeb.LayoutView to define such a function or for it to be imported, but none are available)
    β”‚
 28 β”‚           <%= link "logout", to: "/login" %>
    β”‚               ^^^^
    β”‚
    └─ lib/app_web/templates/layout/root.html.heex:28:15: AppWeb.LayoutView."root.html"/1

== Compilation error in file lib/app_web/views/layout_view.ex ==
** (CompileError) lib/app_web/views/layout_view.ex: cannot compile module AppWeb.LayoutView (errors have been logged)
codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (006ee0e) 100.00% compared to head (0b07913) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #93 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 3 3 Lines 4 4 ========================================= Hits 4 4 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.