# CHANGELOG (v1.0.X)

## 1.0.0 🚀 (2026-12-05)

### ⚠️ Backwards incompatible changes for 0.1.0
 * [[`PR-9`](https://github.com/deployex/credo_hot_upgrades/pull/9)] Elixir 1.19 or later is required, where 0.1.0 allowed 1.14. The package now follows the support policy of DeployEx and Jellyfish, the last two major Erlang/OTP releases, 28 and 29, and CI runs on both.
 * [[`PR-4`](https://github.com/deployex/credo_hot_upgrades/pull/4)] Test files are no longer checked by default. A test attaches a handler with an anonymous function or sends one in a message as a matter of course, and is never hot upgraded. Give a check its own `files:` in `.credo.exs` to look at them again.
 * [[`PR-3`](https://github.com/deployex/credo_hot_upgrades/pull/3)] `ApplicationStartSideEffects` also reports any call in `Application.start/2` whose result is not used, so a project can get new warnings. Name the modules to leave alone with the `allowed` parameter.
 * [[`PR-4`](https://github.com/deployex/credo_hot_upgrades/pull/4)] The text of every message changed, each one now ends with the fix. The triggers and the check names did not change.

### Bug fixes
 * [[`PR-2`](https://github.com/deployex/credo_hot_upgrades/pull/2)] A capture through a module is no longer reported as a local function: `&__MODULE__.name/arity`, `&:erlang.name/arity` and `&module.name/arity`. Only a capture through an alias was recognised.
 * [[`PR-4`](https://github.com/deployex/credo_hot_upgrades/pull/4)] `ClosureInState` no longer reports a function that a call uses while the value is built, as in `:persistent_term.put(key, Enum.map(rows, &normalize/1))`. It reports a function kept inside a tuple, a list, a map or a struct.
 * [[`PR-4`](https://github.com/deployex/credo_hot_upgrades/pull/4)] A function with a `rescue`, `catch` or `after` block is now looked at. It was skipped by `ApplicationStartSideEffects`, `SupervisorInitSideEffects`, `ProcessDictionaryState`, `ClosureInState`, `LocalReceiveLoop` and `LocalAcceptLoop`.
 * [[`PR-6`](https://github.com/deployex/credo_hot_upgrades/pull/6)] `LiveViewClosure` no longer reports `assign` on the assigns of a function component or on a `conn`, which last for one render and one request.
 * [[`PR-6`](https://github.com/deployex/credo_hot_upgrades/pull/6)] A capture of a function of `Kernel`, `&length/1`, is no longer reported as a local function: it is `&:erlang.length/1` once compiled.
 * [[`PR-6`](https://github.com/deployex/credo_hot_upgrades/pull/6)] `NoNif` reports a module that loads its NIF with `use Rustler` or `use Zig`.
 * [[`PR-6`](https://github.com/deployex/credo_hot_upgrades/pull/6)] `LocalReceiveLoop` reports a loop on a timer, which recurses from the `after` clause of its `receive`.
 * [[`PR-6`](https://github.com/deployex/credo_hot_upgrades/pull/6)] `ClosureInState` reports a function in a `GenServer` state that is a tuple or a list.
 * [[`PR-5`](https://github.com/deployex/credo_hot_upgrades/pull/5)] A module named through `__MODULE__`, as in `__MODULE__.Supervisor.new(attrs)` or `__MODULE__.Options.t()`, no longer crashes `ClosureInState`, `CompileTimeEnv`, `LocalAcceptLoop` and `CacheWithoutCodeChange`.
 * [[`PR-7`](https://github.com/deployex/credo_hot_upgrades/pull/7)] The checks run in a project whose `.credo.exs` lists its own `checks: %{enabled: [...]}`, the file `mix credo.gen.config` writes. Credo drops there the checks a plugin registers, so the plugin line enabled nothing, with no error. The plugin now adds the checks the project does not name.
 * [[`PR-8`](https://github.com/deployex/credo_hot_upgrades/pull/8)] `ClosureInState` no longer reports a map that a `GenServer` callback builds for its own use and does not return. Only the state the callback returns is looked at.

### Enhancements
 * [[`PR-2`](https://github.com/deployex/credo_hot_upgrades/pull/2)] New check `CHU0013` `LiveViewClosure`: a closure kept in a LiveView socket by `attach_hook`, `assign`, or the `dom_id:` of a stream.
 * [[`PR-3`](https://github.com/deployex/credo_hot_upgrades/pull/3)] New check `CHU0014` `CacheWithoutCodeChange`: a `GenServer` that fills a `:persistent_term` or an ETS table and defines no `code_change/3`.
 * [[`PR-4`](https://github.com/deployex/credo_hot_upgrades/pull/4)] Every message ends with the fix, and the README lists the fix of each check.
 * [[`PR-4`](https://github.com/deployex/credo_hot_upgrades/pull/4)] `usage-rules.md` ships in the package for coding agents: how to run the checks alone with JSON output, the fix for each one, and when a warning may be silenced.
 * CredoHotUpgrades is now 1.0.0: the check names, their ids and their parameters are stable and will follow semantic versioning going forward.

# 🚀 Previous Releases
 * [0.1.0 (2026-12-05)](https://hex.pm/packages/credo_hot_upgrades/0.1.0)
