Please can someone point me at the docs for updating from Phoenix version 1.3.0 to 1.3.1
mix phx.new --version
Phoenix v1.3.0
On github i see 1.3.1 was released 2 days ago. Unclear how to get latest when previous version already installed. Do I just run the same installer as for a fresh install?
cjsMBP15:company_meme cj$ mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez
Found existing entry: /Users/cj/.kiex/mix/archives/elixir-1.6.1/phx_new
Are you sure you want to replace it with "https://github.com/phoenixframework/archives/raw/master/phx_new.ez"? [Yn] y
* creating /Users/cj/.kiex/mix/archives/elixir-1.6.1/phx_new
cjsMBP15:company_meme cj$ mix phx.new --version
Phoenix v1.3.2
Hello , after update I have many warning , now Im 1.3 to 1.3.2
warning: Enum.partition/2 is deprecated, use Enum.split_with/2
lib/phoenix/endpoint/handler.ex:39
warning: Enum.partition/2 is deprecated, use Enum.split_with/2
lib/mix/tasks/phoenix.gen.model.ex:155
warning: Enum.partition/2 is deprecated, use Enum.split_with/2
lib/mix/phoenix/schema.ex:234
warning: Plug.Conn.WrapperError.reraise/3 is deprecated. Use reraise/1 or reraise/4 instead.
Found at 2 locations:
lib/phoenix/controller/pipeline.ex:138
lib/phoenix/router.ex:280
Generated phoenix app
==> guardian
Compiling 18 files (.ex)
Generated guardian app
==> trangell_api_gateway_web
Compiling 9 files (.ex)
warning: Plug.Conn.WrapperError.reraise/3 is deprecated. Use reraise/1 or reraise/4 instead.
Found at 3 locations:
lib/trangell_api_gateway_web/router.ex:4
lib/trangell_api_gateway_web/router.ex:8
lib/trangell_api_gateway_web/router.ex:12
Deprecations won’t affect your program. When Elixir hits 2.0, the deprecations will be removed, so you’ll need to fix them then if they haven’t already been fixed. 2.0 seems to be a while away still.
Well. You can not update to elixir 2.0 with phoenix 1.3 anyway, so you do not need to care, and elixir will not remove any of the functions mentioned in the warning before 2.0.
And until we get to Elixir 2.0, we will probably have a phoenix version that is compatible with it.
So most of the time, I simply file issues on the dependency. If there is no reaction I try to get rid of that dependency.
But on my own code I try to keep up to date and warning free. But especially for libraries which try to maintain compatibility since 1.0, it is impossible to adhere to those warnings, without breaking their compatibility promise.