Skip to content

Commit

Permalink
Bump lib versions
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanRublev committed May 10, 2024
1 parent a7a876f commit 21123f9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,10 @@ Domo compiled validation functions for the given struct based on the described t

## Changelog

## v1.5.16

* Allow latest dependencies for projects with Elixir > 12

## v1.5.15

* Support sum types as element of a list: [a | b]
Expand Down
22 changes: 17 additions & 5 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Domo.MixProject do
use Mix.Project

@version "1.5.15"
@version "1.5.16"
@repo_url "https://github.com/IvanRublev/Domo"

def project do
Expand Down Expand Up @@ -62,20 +62,32 @@ defmodule Domo.MixProject do
[
# Development and test dependencies
{:ex_check, ">= 0.0.0", only: :dev, runtime: false},
{:dialyxir, "~> 1.3", only: :dev, runtime: false},
{:credo, "~> 1.6", only: :dev, runtime: false},
{:excoveralls, "~> 0.13.4", only: :test, runtime: false},
{:mix_test_watch, "~> 1.0", only: :test, runtime: false},
{:placebo, "~> 1.2", only: :test},
{:ecto, ">= 0.0.0", optional: true},
{:decimal, ">= 0.0.0", optional: true},
{:nimble_parsec, "1.1.0"},

{:nimble_parsec, if(ex_before_12?(), do: "1.1.0", else: "~> 1.1")},
# Documentation dependencies
{:ex_doc, "0.26.0", only: :docs, runtime: false}
{:ex_doc, if(ex_before_12?(), do: "0.26.0", else: "~> 0.26.0"), only: :docs, runtime: false}
]
end

defp ex_before_12? do
[1, minor, _] = ex_version()
minor < 12
end

defp ex_version do
:elixir
|> Application.spec(:vsn)
|> to_string()
|> String.replace(~r/-.*$/, "")
|> String.split(".")
|> Enum.map(&String.to_integer/1)
end

defp aliases do
[
benchmark: "cmd --cd ./benchmark_ecto_domo mix do deps.unlock --all + deps.get + benchmark",
Expand Down

0 comments on commit 21123f9

Please sign in to comment.