diff --git a/CHANGELOG.md b/CHANGELOG.md index 092c633..d0550f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.1.3] - 2026-04-05 + +### Fixed +- `sandbox/upload` no longer returns `{:error "Input/uuid must be a string"}` — the storage response was parsed with keyword keys (`:uuid`) while the code looked up the string key `"uuid"`, always yielding `nil`. Changed `:as :json` to `:as :json-string-keys` in `upload-to-storage` so the UUID is correctly extracted and forwarded to `pullDirectory`. + ## [0.1.2] - 2026-04-05 ### Added @@ -41,6 +46,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Token resolved from `POCKETENV_TOKEN` env var or `~/.pocketenv/token.json` - MIT License +[0.1.3]: https://github.com/pocketenv-io/pocketenv-clojure/releases/tag/v0.1.3 [0.1.2]: https://github.com/pocketenv-io/pocketenv-clojure/releases/tag/v0.1.2 [0.1.1]: https://github.com/pocketenv-io/pocketenv-clojure/releases/tag/v0.1.1 [0.1.0]: https://github.com/pocketenv-io/pocketenv-clojure/releases/tag/v0.1.0 diff --git a/README.md b/README.md index cef1f16..6a7c864 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Clojure SDK for the [Pocketenv](https://pocketenv.io) sandbox platform. Add to your `deps.edn`: ```clojure -{:deps io.pocketenv/pocketenv {:mvn/version "0.1.2-SNAPSHOT"}} +{:deps io.pocketenv/pocketenv {:mvn/version "0.1.3-SNAPSHOT"}} ``` ## Configuration diff --git a/build.clj b/build.clj index 1d4bca5..5110570 100644 --- a/build.clj +++ b/build.clj @@ -4,7 +4,7 @@ [deps-deploy.deps-deploy :as dd])) (def lib 'io.pocketenv/pocketenv) -(def version "0.1.2-SNAPSHOT") +(def version "0.1.3-SNAPSHOT") #_ ; alternatively, use MAJOR.MINOR.COMMITS: (def version (format "1.0.%s" (b/git-count-revs nil))) (def class-dir "target/classes") diff --git a/src/pocketenv_io/copy.clj b/src/pocketenv_io/copy.clj index 8e6c7e6..9f1066e 100644 --- a/src/pocketenv_io/copy.clj +++ b/src/pocketenv_io/copy.clj @@ -119,7 +119,7 @@ :filename "archive.tar.gz" :mime-type "application/gzip"}] :headers {"Authorization" (str "Bearer " t)} - :as :json + :as :json-string-keys :throw-exceptions false})] (if (<= 200 (:status resp) 299) {:ok (get-in resp [:body "uuid"])}