From 77bbc997563ef9916bb3f851688ecc723698e13d Mon Sep 17 00:00:00 2001 From: Gilbert Date: Mon, 15 Jun 2026 23:39:06 +0800 Subject: [PATCH] Loosen elixir requirement to ~> 1.16 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Downstream projects on Elixir 1.16–1.19 (notably pi_bridge) need to resolve json_codec, but the current "~> 1.20" constraint blocks mix deps.get on those releases. The codec macros and generated codec code do not use any 1.20+ features, so loosen the floor to "~> 1.16". Bump to 0.1.5 so downstream mix.exs can pin the new version. --- CHANGELOG.md | 4 ++++ mix.exs | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8099570..49e5ef3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.1.5 - 2026-06-15 + +- Loosen the `elixir:` requirement from `~> 1.20` to `~> 1.16` so downstream projects on Elixir 1.16–1.19 can resolve `json_codec`. The codec macros and generated code do not use 1.20+ features. + ## 0.1.4 - 2026-06-13 - Fix `defstruct` literal defaults so values like `%{}` remain runtime values instead of escaped AST. diff --git a/mix.exs b/mix.exs index cecca45..175d247 100644 --- a/mix.exs +++ b/mix.exs @@ -4,8 +4,8 @@ defmodule JSONCodec.MixProject do def project do [ app: :json_codec, - version: "0.1.4", - elixir: "~> 1.20", + version: "0.1.5", + elixir: "~> 1.16", start_permanent: Mix.env() == :prod, description: "Compile-time generated codecs for JSON-shaped Elixir structs", package: package(),