From 27f4634632bc5af8e91ecd47b7846d4e3ab4b703 Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Sat, 21 Dec 2024 18:03:50 +0100 Subject: [PATCH] Allow newer versions of decimal 2.x I've been keeping an override in a project to be able to upgrade `decimal`. Other dependencies related to Phoenix specify `~> 2.0`, but recently reading the Elixir forum I realized we can do better: https://elixirforum.com/t/conflicting-dependencies-and-use-of-the-operator/68207/14?u=rhcarvalho --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index c6b1df8..c44b316 100644 --- a/mix.exs +++ b/mix.exs @@ -33,7 +33,7 @@ defmodule Mongodb.Mixfile do [ {:telemetry, "~> 1.0"}, {:db_connection, "~> 2.6"}, - {:decimal, "~> 2.1.1"}, + {:decimal, "~> 2.1 and >= 2.1.1"}, {:patch, "~> 0.12.0", only: [:dev, :test]}, {:jason, "~> 1.3", only: [:dev, :test]}, {:credo, "~> 1.7.0", only: [:dev, :test], runtime: false},