Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to 1.6.2 #61

Merged
merged 2 commits into from
Oct 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
language: elixir
elixir:
- 1.10.3
- 1.12.3
otp_release:
- 22.1.8
- 24.0.2
services:
- postgresql
env:
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ brew install elixir
see: https://hexdocs.pm/phoenix/installation.html <br />
e.g: <br />
```
mix archive.install hex phx_new 1.5.5
mix archive.install hex phx_new 1.6.2
```

3. PostgreSQL (Database Server) installed (_to save chat messages_) <br />
Expand Down Expand Up @@ -172,9 +172,9 @@ elixir -v

You should see something like:
```sh
Erlang/OTP 23 [erts-11.0] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe] [dtrace]
Erlang/OTP 24 [erts-12.1.2] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit]

Elixir 1.10.4 (compiled with Erlang/OTP 22)
Elixir 1.12.3 (compiled with Erlang/OTP 22)
```

Check you have the **latest** version of **Phoenix**:
Expand All @@ -183,7 +183,7 @@ mix phx.new -v
```
You should see:
```sh
Phoenix v1.5.5
Phoenix v1.6.2
```

_Confirm_ **PostgreSQL** is running (_so the App can store chat messages_)
Expand Down Expand Up @@ -1089,7 +1089,7 @@ with the following lines:
```yml
language: elixir
elixir: # Latest version of Elixir
- 1.10
- 1.12.3
services: # ensure that Travis-CI provisions a DB for our test:
- postgresql
env:
Expand Down Expand Up @@ -1152,9 +1152,9 @@ and uses
see:
[issues/40](https://github.com/chrismccord/phoenix_chat_example/issues/40). <br />
There are quite a few differences (breaking changes)
between Phoenix 1.3 and 1.5 (_the latest version_). <br />
between Phoenix 1.3 and 1.6 (_the latest version_). <br />

Our tutorial uses Phoenix `1.5.1` (latest as of May 2020).
Our tutorial uses Phoenix `1.6.2` (latest as of October 2021).
Our hope is that by writing (_and maintaining_)
a step-by-step beginner focussed
tutorial we contribute to the Elixir/Phoenix community
Expand Down
2 changes: 2 additions & 0 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ config :phoenix, :json_library, Jason
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{Mix.env()}.exs"

config :esbuild, :version, "0.13.4"
4 changes: 2 additions & 2 deletions elixir_buildpack.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Elixir version
elixir_version=1.10
elixir_version=1.12.3

# Erlang version
# available versions https://github.com/HashNuke/heroku-buildpack-elixir-otp-builds/blob/master/otp-versions
erlang_version=22.2.7
erlang_version=23.3.2
31 changes: 18 additions & 13 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ defmodule Chat.Mixfile do
def project do
[
app: :chat,
version: "1.5.5",
elixir: "~> 1.10",
version: "1.6.2",
elixir: "~> 1.12.3",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
Expand Down Expand Up @@ -40,21 +40,26 @@ defmodule Chat.Mixfile do
# Type `mix help deps` for examples and options.
defp deps do
[
{:phoenix, "~> 1.5.5"},
{:phoenix_ecto, "~> 4.2.1"},
{:ecto_sql, "~> 3.4.5"},
{:phoenix, "~> 1.6.0"},
{:phoenix_ecto, "~> 4.4"},
{:ecto_sql, "~> 3.7.0"},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 2.11"},
{:phoenix_html, "~> 3.0"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_live_dashboard, "~> 0.2.0"},
{:telemetry_metrics, "~> 0.4"},
{:telemetry_poller, "~> 0.4"},
{:gettext, "~> 0.11"},
{:jason, "~> 1.0"},
{:plug_cowboy, "~> 2.0"},
{:phoenix_live_view, "~> 0.16.4"},
{:floki, ">= 0.30.0", only: :test},
{:phoenix_live_dashboard, "~> 0.5"},
{:esbuild, "~> 0.2", runtime: Mix.env() == :dev},
{:swoosh, "~> 1.5"},
{:telemetry_metrics, "~> 0.6"},
{:telemetry_poller, "~> 1.0"},
{:gettext, "~> 0.18.2"},
{:jason, "~> 1.2.2"},
{:plug_cowboy, "~> 2.5.2"},
{:plug_crypto, "~> 1.2.2"},

# Wake Heroku App. See: https://github.com/dwyl/ping
{:ping, "~> 1.0.1"},
{:ping, "~> 1.1.0"},

# sanitise data to avoid XSS see: https://git.io/fjpGZ
{:html_sanitize_ex, "~> 1.4"},
Expand Down
Loading