From bce1dfe0ecad1374ba78d18c2a1ba1c3033af259 Mon Sep 17 00:00:00 2001 From: Tyler Young Date: Tue, 17 Sep 2024 09:25:46 -0500 Subject: [PATCH] Support Geo v4.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This adds support for either releases of Geo compatible with v3.6 *or* v4.0. For our purposes, the breaking changes in v4.0.0 are not signficant. I've tested overriding the Geo dependency to v4.0.0 on the Felt codebase, where we have a great deal of unit tests round-tripping imports of GeoJSON, and aside from the default SRID change, everything Just Works™. --- mix.exs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mix.exs b/mix.exs index 1880c41..a90e9f3 100644 --- a/mix.exs +++ b/mix.exs @@ -2,7 +2,7 @@ defmodule GeoPostgis.Mixfile do use Mix.Project @source_url "https://github.com/felt/geo_postgis" - @version "3.7.0" + @version "3.7.1" def project do [ @@ -27,7 +27,7 @@ defmodule GeoPostgis.Mixfile do defp deps do [ - {:geo, "~> 3.6"}, + {:geo, "~> 3.6 or ~> 4.0"}, {:postgrex, ">= 0.0.0"}, {:ex_doc, ">= 0.0.0", only: :dev, runtime: false}, {:ecto, "~> 3.0", optional: true},