From 43b923b2d909b8af55e4b905fecab7aabef43879 Mon Sep 17 00:00:00 2001 From: Chris McCord Date: Tue, 29 Nov 2022 14:52:00 -0500 Subject: [PATCH] Release 1.4.1 --- CHANGELOG.md | 5 +++++ lib/phoenix_live_reload/live_reloader.ex | 4 ++++ mix.exs | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 54d89c9..7a7c2e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.4.1 (2022-11-29) + +* Improvements + * Support new `:notify` configuration for third-party integration to file change events + ## 1.4.0 (2022-10-29) * Improvements diff --git a/lib/phoenix_live_reload/live_reloader.ex b/lib/phoenix_live_reload/live_reloader.ex index 33cb964..0df5bac 100755 --- a/lib/phoenix_live_reload/live_reloader.ex +++ b/lib/phoenix_live_reload/live_reloader.ex @@ -33,6 +33,10 @@ defmodule Phoenix.LiveReloader do * `:patterns` - a list of patterns to trigger the live reloading. This option is required to enable any live reloading. + * `:notify` - a keyword list of topics pointing to a list of patterns. + A mesage of the form `{:phoenix_live_reload, topic, path}` will be + broadcast on the topic whenever file in the list of patterns changes. + * `:debounce` - an integer in milliseconds to wait before sending live reload events to the browser. Defaults to `0`. diff --git a/mix.exs b/mix.exs index 8fe34c6..b6002a4 100644 --- a/mix.exs +++ b/mix.exs @@ -1,7 +1,7 @@ defmodule PhoenixLiveReload.Mixfile do use Mix.Project - @version "1.4.0" + @version "1.4.1" def project do [