Skip to content

Commit

Permalink
Release 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-foster committed Feb 26, 2023
1 parent 26bb8e7 commit f989243
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### v0.1.3 (2023-02-26)

* **Add**: Automatically dereference symlinks during copy (requires Elixir 1.14) (thanks [@derek-zhou](https://github.com/derek-zhou))
* **Fix**: Choose the correct destination for files with nested watchers with Elixir before 1.12
* **Fix**: Tests requiring multiple file watchers for the same directory failed on Linux
* **Fix**: CI did not work due to lack of `inotify-tools`
* **Fix**: CI now tests against Elixir 1.10 / OTP 21 as well as later versions

### v0.1.2 (2022-12-21)

* **Add**: Profiles can include a `debounce` option to avoid duplicate copy events (thanks [@kuon](https://github.com/kuon))
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ If you plan to copy assets in production, then add `phoenix_copy` as a dependenc
```elixir
def deps do
[
{:phoenix_copy, "~> 0.1.2"}
{:phoenix_copy, "~> 0.1.3"}
]
end
```
Expand All @@ -31,7 +31,7 @@ On the other hand, if you only need to copy assets in development, you can insta
```elixir
def deps do
[
{:phoenix_copy, "~> 0.1.2", only: :dev}
{:phoenix_copy, "~> 0.1.3", only: :dev}
]
end
```
Expand Down
1 change: 1 addition & 0 deletions lib/phoenix_copy.ex
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ defmodule Phoenix.Copy do
destination = Keyword.fetch!(config, :destination)

# TODO: Remove check when support for Elixir < 1.14 is removed.
# https://github.com/elixir-lang/elixir/commit/e453a7547f1f87fe451631714508c9888e3724b5
if Version.match?(System.version(), ">= 1.14.0-rc.0") do
File.cp_r!(source, destination, dereference_symlinks: true)
else
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Phoenix.Copy.MixProject do
def project do
[
app: :phoenix_copy,
version: "0.1.2",
version: "0.1.3",
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
Expand Down

0 comments on commit f989243

Please sign in to comment.