plausible / analytics

Simple, open source, lightweight (< 1 KB) and privacy-friendly web analytics alternative to Google Analytics.
https://plausible.io
GNU Affero General Public License v3.0
18.98k stars 1.02k forks source link

update runtime to elixir-1.17.1 and erlang-27.0 #4255

Closed ruslandoga closed 1 week ago

ruslandoga commented 2 weeks ago

Changes

This PR updates Elixir to 1.17 and Erlang to 27 mostly to bring in Duration. I picked the base image with the smallest alpine version difference (3.18.6 vs 3.18.4) but we can update it as well (to 3.20).

mjml_eex (https://github.com/akoutmos/mjml_eex/pull/19) and credo had to be updated to make them work again.

Warnings from the new Elixir type checker for phoenix_live_view failed CI tests so I backported https://github.com/phoenixframework/phoenix_live_view/commit/489e8de024e03976e9ae38138eec517fbd456d27 in https://github.com/plausible/analytics/pull/4255/commits/0d07f4df226bd3895d26652656725ca043023101. This workaround can be removed once Plausible starts using phoenix_live_view 1.0.0 (currently in rc).

There are warnings from ex_money and phoenix_view too but they don't seem to fail CI so I left them as is. Later ex_money can be updated to 5.17.0 and phoenix_view -- to 2.0.4.

Tests

Changelog

Documentation

Dark mode