dwyl / learn-phoenix

:fire: Phoenix is the web framework without compromise on speed, reliability or maintainability! Don't settle for less. :rocket:
650 stars 45 forks source link

Phoenix v1.6.0 Released! 🚀 #143

Closed nelsonic closed 3 years ago

nelsonic commented 3 years ago

Really excited about this release: https://github.com/phoenixframework/phoenix/tags

phoenix-1 6rc

While this may appear to be a "minor" update (from SemVer perspective), it's actually pretty significant. See: CHANGELOG: https://github.com/phoenixframework/phoenix/blob/master/CHANGELOG.md#changelog-for-v16

Todo

nelsonic commented 3 years ago

https://www.phoenixframework.org/blog/phoenix-1.6-released

nelsonic commented 3 years ago
phoenix-1 6-released

🚀

nelsonic commented 3 years ago
$ mix archive.install hex phx_new
Resolving Hex dependencies...
Dependency resolution completed:
New:
  phx_new 1.6.0
* Getting phx_new (Hex package)
All dependencies are up to date
Compiling 11 files (.ex)
Generated phx_new app
Generated archive "phx_new-1.6.0.ez" with MIX_ENV=prod
Found existing entry: ~/.mix/archives/phx_new-1.5.5
Are you sure you want to replace it with "phx_new-1.6.0.ez"? [Yn] y
* creating ~/.mix/archives/phx_new-1.6.0
nelsonic commented 3 years ago

Full list of deps for a brand new Phoenix 1.6 app:

  defp deps do
    [
      {:phoenix, "~> 1.6.0"},
      {:phoenix_ecto, "~> 4.4"},
      {:ecto_sql, "~> 3.6"},
      {:postgrex, ">= 0.0.0"},
      {:phoenix_html, "~> 3.0"},
      {:phoenix_live_reload, "~> 1.2", only: :dev},
      {: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.3"},
      {:telemetry_metrics, "~> 0.6"},
      {:telemetry_poller, "~> 1.0"},
      {:gettext, "~> 0.18"},
      {:jason, "~> 1.2"},
      {:plug_cowboy, "~> 2.5"}
    ]
  end
nelsonic commented 3 years ago

Building static assets and hot-reloading is sooooo much faster!!

22:00:46.776 [debug] Downloading esbuild from https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.12.18.tgz

  ../priv/static/assets/app.css  9.6kb
  ../priv/static/assets/app.js   1.3kb

⚡ Done in 10ms
==> app
nelsonic commented 3 years ago

Upgrade instructions: https://gist.github.com/chrismccord/2ab350f154235ad4a4d0f4de6decba7b

nelsonic commented 3 years ago

The step in the Phoenix Upgrade guide where we DELETE the assets/webpack.config.js, assets/package.json, assets/package-lock.json assets/.babelrc and node_modules brings #TearsOfJoy to my eyes: 😂 😍 https://gist.github.com/chrismccord/2ab350f154235ad4a4d0f4de6decba7b#migrate-to-esbuild-for-js-and-css-bundling-optional image

nelsonic commented 3 years ago

Updated the Hits app https://hits.dwyl.com to use Phoenix 1.6.2 https://github.com/dwyl/hits/pull/128

nelsonic commented 3 years ago

We now have a "real" Phoenix 1.6.2 App in "Production"! 🎉 Closing this ticket as confident Phoenix 1.6 is working for us. ✅

nelsonic commented 1 year ago

GOTO #152