diff --git a/CHANGELOG.md b/CHANGELOG.md index 69123b3..296f974 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,15 @@ the conventions of [keepachangelog.com](http://keepachangelog.com/). ## [Unreleased] +## [0.34.0] - 2026-09-04 + +### Changed + +- Bump `anthropic-java` and the Bedrock/Vertex artifacts to **2.61.0**. +- Adapt compliance settings to the SDK's renamed request-side + `BetaComplianceSettingsStateParam` and response-side + `BetaComplianceSettingsState` classes. The wrapper public API is unchanged. + ## [0.33.0] - 2026-09-01 ### Changed diff --git a/README.md b/README.md index aa1867d..302b481 100644 --- a/README.md +++ b/README.md @@ -32,13 +32,13 @@ jar. It does not assert parity. tools.deps (`deps.edn`): ```clojure -net.clojars.savya/anthropic-clj {:mvn/version "0.33.0"} +net.clojars.savya/anthropic-clj {:mvn/version "0.34.0"} ``` Leiningen (`project.clj`): ```clojure -[net.clojars.savya/anthropic-clj "0.33.0"] +[net.clojars.savya/anthropic-clj "0.34.0"] ``` Supported Clojure versions: 1.10, 1.11, and 1.12. @@ -55,7 +55,7 @@ Set `ANTHROPIC_API_KEY` in your environment, or pass client options: - `:configure` - receives the raw SDK builder last, for anything not wrapped here (interceptors, a custom `jsonMapper`, or a Bedrock/Vertex `backend`) -Tracks [`com.anthropic/anthropic-java` 2.60.0](https://github.com/anthropics/anthropic-sdk-java/releases/tag/v2.60.0) - see `CHANGELOG.md` for the bump history. +Tracks [`com.anthropic/anthropic-java` 2.61.0](https://github.com/anthropics/anthropic-sdk-java/releases/tag/v2.61.0) - see `CHANGELOG.md` for the bump history. ## Usage diff --git a/build.clj b/build.clj index b57d870..7c33b92 100644 --- a/build.clj +++ b/build.clj @@ -8,7 +8,7 @@ [deps-deploy.deps-deploy :as dd])) (def lib 'net.clojars.savya/anthropic-clj) -(def version "0.33.0") +(def version "0.34.0") (def class-dir "target/classes") (def basis (delay (b/create-basis {:project "deps.edn"}))) (def jar-file (format "target/%s-%s.jar" (name lib) version)) diff --git a/deps.edn b/deps.edn index 062643d..0cbe075 100644 --- a/deps.edn +++ b/deps.edn @@ -1,7 +1,7 @@ {:paths ["src"] :deps {org.clojure/clojure {:mvn/version "1.12.5"} - com.anthropic/anthropic-java {:mvn/version "2.60.0"} + com.anthropic/anthropic-java {:mvn/version "2.61.0"} metosin/jsonista {:mvn/version "1.0.1"}} :aliases @@ -9,15 +9,15 @@ {:extra-paths ["test"] :extra-deps {lambdaisland/kaocha {:mvn/version "1.91.1392"} org.slf4j/slf4j-nop {:mvn/version "2.0.18"} - com.anthropic/anthropic-java-bedrock {:mvn/version "2.60.0"} - com.anthropic/anthropic-java-vertex {:mvn/version "2.60.0"}} + com.anthropic/anthropic-java-bedrock {:mvn/version "2.61.0"} + com.anthropic/anthropic-java-vertex {:mvn/version "2.61.0"}} :main-opts ["-m" "kaocha.runner"]} :bedrock - {:extra-deps {com.anthropic/anthropic-java-bedrock {:mvn/version "2.60.0"}}} + {:extra-deps {com.anthropic/anthropic-java-bedrock {:mvn/version "2.61.0"}}} :vertex - {:extra-deps {com.anthropic/anthropic-java-vertex {:mvn/version "2.60.0"}}} + {:extra-deps {com.anthropic/anthropic-java-vertex {:mvn/version "2.61.0"}}} :malli {:extra-deps {metosin/malli {:mvn/version "0.20.1"}}} diff --git a/doc/getting-started.md b/doc/getting-started.md index 8e02547..478f0b1 100644 --- a/doc/getting-started.md +++ b/doc/getting-started.md @@ -13,13 +13,13 @@ an explicit integration suite. Leiningen: ```clojure -[net.clojars.savya/anthropic-clj "0.33.0"] +[net.clojars.savya/anthropic-clj "0.34.0"] ``` tools.deps: ```clojure -net.clojars.savya/anthropic-clj {:mvn/version "0.33.0"} +net.clojars.savya/anthropic-clj {:mvn/version "0.34.0"} ``` Version `0.11.1` pins `com.anthropic/anthropic-java` `2.48.0`. diff --git a/project.clj b/project.clj index c62138e..7d22d09 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject net.clojars.savya/anthropic-clj "0.33.0" +(defproject net.clojars.savya/anthropic-clj "0.34.0" :plugins [[lein-tools-deps "0.4.5"]] :middleware [lein-tools-deps.plugin/resolve-dependencies-with-deps-edn] :lein-tools-deps/config {:config-files [:install :user :project]} diff --git a/src/anthropic/organization.clj b/src/anthropic/organization.clj index 23aa0ee..a99d4d8 100644 --- a/src/anthropic/organization.clj +++ b/src/anthropic/organization.clj @@ -99,15 +99,15 @@ (defn- ->compliance-state [state] (case (check-enum! state #{:enabled :disabled} :state) - :enabled (com.anthropic.models.beta.organization.compliancesettings.ComplianceSettingUpdateParams$State/ofEnabled + :enabled (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettingsStateParam/ofEnabled (.build (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettingsStateEnabledParam/builder))) - :disabled (com.anthropic.models.beta.organization.compliancesettings.ComplianceSettingUpdateParams$State/ofDisabled + :disabled (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettingsStateParam/ofDisabled (.build (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettingsStateDisabledParam/builder))))) (defn- ->compliance-update-params ^ComplianceSettingUpdateParams [{:keys [state]}] (when-not state (missing-key! :state)) (let [b (ComplianceSettingUpdateParams/builder) - ^com.anthropic.models.beta.organization.compliancesettings.ComplianceSettingUpdateParams$State state-value + ^com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettingsStateParam state-value (->compliance-state state)] (.state b state-value) (.build b))) diff --git a/test/anthropic/organization_test.clj b/test/anthropic/organization_test.clj index d401f27..c0df58e 100644 --- a/test/anthropic/organization_test.clj +++ b/test/anthropic/organization_test.clj @@ -20,14 +20,14 @@ (->params {:state :enabled}) enabled (.build (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettingsStateEnabled/builder)) response (-> (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettings/builder) - (.state (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettings$State/ofEnabled enabled)) + (.state (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettingsState/ofEnabled enabled)) (.build))] (is (.isEnabled (.state p))) (is (= {:state :enabled} (convert response))) (is (= {:state :disabled} (convert (-> (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettings/builder) - (.state (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettings$State/ofDisabled + (.state (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettingsState/ofDisabled (.build (com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettingsStateDisabled/builder)))) (.build)))))))