From 8d3bac0c5b730b274fdb42882a1e8fa293309beb Mon Sep 17 00:00:00 2001 From: Bruno do Nascimento Maciel Date: Sun, 10 Nov 2024 20:32:28 -0300 Subject: [PATCH] use clj-http-client --- CHANGELOG.md | 10 +++++++++- project.clj | 3 ++- src/common_clj/integrant_components/http_client.clj | 4 ++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0705f14..60ef86e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ of [keepachangelog.com](http://keepachangelog.com/). ## [Unreleased] +## [37.71.71] - 2024-11-10 + +### Changed + +- Replaced clj-http with clj-http-lite for better compatibility with GraalVM. + ## [37.71.70] - 2024-11-08 ### Removed @@ -1062,7 +1068,9 @@ of [keepachangelog.com](http://keepachangelog.com/). - Add `loose-schema` function. -[Unreleased]: https://github.com/macielti/common-clj/compare/v37.71.70...HEAD +[Unreleased]: https://github.com/macielti/common-clj/compare/v37.71.71...HEAD + +[37.71.71]: https://github.com/macielti/common-clj/compare/v37.71.70...v37.71.71 [37.71.70]: https://github.com/macielti/common-clj/compare/v36.71.70...v37.71.70 diff --git a/project.clj b/project.clj index 744469d..aa6a8ad 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject net.clojars.macielti/common-clj "37.71.70" +(defproject net.clojars.macielti/common-clj "37.71.71" :description "Just common Clojure code that I use across projects" @@ -11,6 +11,7 @@ :dependencies [[org.clojure/clojure "1.12.0"] [morse "0.4.3"] + [org.clj-commons/clj-http-lite "1.0.13"] [prismatic/schema-generators "0.1.5"] [siili/humanize "0.1.1"] [camel-snake-kebab "0.4.3"] diff --git a/src/common_clj/integrant_components/http_client.clj b/src/common_clj/integrant_components/http_client.clj index 1987a54..43c94a5 100644 --- a/src/common_clj/integrant_components/http_client.clj +++ b/src/common_clj/integrant_components/http_client.clj @@ -1,7 +1,7 @@ (ns common-clj.integrant-components.http-client (:require [camel-snake-kebab.core :as camel-snake-kebab] [cheshire.core :as json] - [clj-http.client :as client] + [clj-http.lite.client :as client] [clojure.tools.logging :as log] [iapetos.core :as prometheus] [integrant.core :as ig] @@ -11,7 +11,7 @@ (def method->request-fn {:post client/post :get client/get - :patch client/patch + :put client/put :delete client/delete}) (defmulti request!