Current section
43 Versions
Jump to
Current section
43 Versions
Compare versions
4
files changed
+13
additions
-4
deletions
| @@ -1,5 +1,9 @@ | |
| 1 1 | # CHANGELOG |
| 2 2 | |
| 3 | + ## v0.3.1 (2020-10-17) |
| 4 | + |
| 5 | + * Ensure the dashboard compiles without optional dependencies |
| 6 | + |
| 3 7 | ## v0.3.0 (2020-10-16) |
| 4 8 | |
| 5 9 | * Use `$initial_call` from process dictionary as the initial call whenever available |
| @@ -78,4 +78,4 @@ | |
| 78 78 | {<<"optional">>,true}, |
| 79 79 | {<<"repository">>,<<"hexpm">>}, |
| 80 80 | {<<"requirement">>,<<"~> 0.2">>}]]}. |
| 81 | - {<<"version">>,<<"0.3.0">>}. |
| 81 | + {<<"version">>,<<"0.3.1">>}. |
| @@ -117,6 +117,9 @@ defmodule Phoenix.LiveDashboard.EctoStatsPage do | |
| 117 117 | |
| 118 118 | # Phoenix.HMTL.Safe may be not be implemented for Decimal |
| 119 119 | # if PhoenixEcto is not available, so we handle it here. |
| 120 | - defp convert_value(%Decimal{} = decimal), do: Decimal.to_string(decimal) |
| 121 | - defp convert_value(value), do: value |
| 120 | + defp convert_value(%struct{} = decimal) when struct == Decimal, |
| 121 | + do: Decimal.to_string(decimal) |
| 122 | + |
| 123 | + defp convert_value(value), |
| 124 | + do: value |
| 122 125 | end |
| @@ -1,7 +1,7 @@ | |
| 1 1 | defmodule Phoenix.LiveDashboard.MixProject do |
| 2 2 | use Mix.Project |
| 3 3 | |
| 4 | - @version "0.3.0" |
| 4 | + @version "0.3.1" |
| 5 5 | |
| 6 6 | def project do |
| 7 7 | [ |
| @@ -42,11 +42,13 @@ defmodule Phoenix.LiveDashboard.MixProject do | |
| 42 42 | # Run "mix help deps" to learn about dependencies. |
| 43 43 | defp deps do |
| 44 44 | [ |
| 45 | + # Actual deps |
| 45 46 | {:phoenix_live_view, "~> 0.14.3", phoenix_live_view_opts()}, |
| 46 47 | {:telemetry_metrics, "~> 0.4.0 or ~> 0.5.0 or ~> 0.6.0"}, |
| 47 48 | {:phoenix_html, "~> 2.14.1 or ~> 2.15"}, |
| 48 49 | {:ecto_psql_extras, "~> 0.2", optional: true}, |
| 49 50 | |
| 51 | + # Dev and test |
| 50 52 | {:circular_buffer, "~> 0.2", only: :dev}, |
| 51 53 | {:telemetry_poller, "~> 0.4", only: :dev}, |
| 52 54 | {:phoenix_live_reload, "~> 1.2", only: :dev}, |