From c1170aa6f4eff2d4afe39e9084c39bd15cf0ddd2 Mon Sep 17 00:00:00 2001 From: Joel Kaasinen Date: Fri, 15 Mar 2024 10:54:34 +0200 Subject: [PATCH] release 0.6.9 including new module muuntaja-charred including some fixes for automated releases --- .github/workflows/release.yml | 4 ---- CHANGELOG.md | 12 +++++++----- README.md | 16 +++++++++------- modules/muuntaja-charred/project.clj | 2 +- modules/muuntaja-cheshire/project.clj | 2 +- modules/muuntaja-form/project.clj | 2 +- modules/muuntaja-msgpack/project.clj | 2 +- modules/muuntaja-yaml/project.clj | 2 +- modules/muuntaja/project.clj | 2 +- project.clj | 16 ++++++++-------- scripts/lein-modules | 4 ++-- scripts/set-version | 6 +++--- 12 files changed, 35 insertions(+), 35 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8efec4e..45528cc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,10 +19,6 @@ jobs: uses: DeLaGuardo/setup-clojure@master with: lein: 2.9.4 - - name: Run tests - run: lein do clean, all test, all check - - name: Build jar - run: lein jar - name: Deploy to Clojars run: lein deploy env: diff --git a/CHANGELOG.md b/CHANGELOG.md index d99e1b9..18b10a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ ## Unreleased -**[compare](https://github.com/metosin/muuntaja/compare/0.6.8...master)** +**[compare](https://github.com/metosin/muuntaja/compare/0.6.9...master)** + +## 0.6.9 (2024-03-15) * Update deps: @@ -9,12 +11,12 @@ ``` * Improvements - - Added support for [Charred](https://github.com/cnuernber/charred) as a JSON formatter module, from [Nik Peric](https://github.com/nikolap) [#139](https://github.com/metosin/muuntaja/pull/139) - - Improved performance for `content-type`, from [Ben Sless](https://github.com/bsless) [#128](https://github.com/metosin/muuntaja/pull/128), fixes [#127](https://github.com/metosin/muuntaja/issues/127) + - Added support for [Charred](https://github.com/cnuernber/charred) as a JSON formatter module, from [Nik Peric](https://github.com/nikolap) [#139](https://github.com/metosin/muuntaja/pull/139) + - Improved performance for `content-type`, from [Ben Sless](https://github.com/bsless) [#128](https://github.com/metosin/muuntaja/pull/128), fixes [#127](https://github.com/metosin/muuntaja/issues/127) * Fixes - - Fixed CVEs in SnakeYAML dependency ([#137](https://github.com/metosin/muuntaja/issues/137)) - - Fixed `decode-response-body` when body content is falsey, from [lotuc](https://github.com/lotuc) [#136](https://github.com/metosin/muuntaja/pull/136), fixes [#134](https://github.com/metosin/muuntaja/issues/134) + - Fixed CVEs in SnakeYAML dependency ([#137](https://github.com/metosin/muuntaja/issues/137)) + - Fixed `decode-response-body` when body content is falsey, from [lotuc](https://github.com/lotuc) [#136](https://github.com/metosin/muuntaja/pull/136), fixes [#134](https://github.com/metosin/muuntaja/issues/134) ## 0.6.8 (2021-02-04) diff --git a/README.md b/README.md index 02d756d..513dbdb 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ but a complete rewrite ([and up to 30x faster](doc/Performance.md)). * `metosin/muuntaja` - the core abstractions + [Jsonista JSON](https://github.com/metosin/jsonista), EDN and Transit formats * `metosin/muuntaja-cheshire` - optional [Cheshire JSON](https://github.com/dakrone/cheshire) format +* `metosin/muuntaja-charred` - optional [Charred](https://github.com/cnuernber/charred) format * `metosin/muuntaja-form` - optional `application/x-www-form-urlencoded` formatter using [ring-codec](https://github.com/ring-clojure/ring-codec) * `metosin/muuntaja-msgpack` - Messagepack format * `metosin/muuntaja-yaml` - YAML format @@ -34,16 +35,17 @@ for detailed API documentation as well as more guides on how to use Muuntaja. ## Latest version ```clj -[metosin/muuntaja "0.6.8"] +[metosin/muuntaja "0.6.9"] ``` Optionally, the parts can be required separately: ```clj -[metosin/muuntaja-form "0.6.8"] -[metosin/muuntaja-cheshire "0.6.8"] -[metosin/muuntaja-msgpack "0.6.8"] -[metosin/muuntaja-yaml "0.6.8"] +[metosin/muuntaja-form "0.6.9"] +[metosin/muuntaja-cheshire "0.6.9"] +[fi.metosin/muuntaja-charred "0.6.9"] +[metosin/muuntaja-msgpack "0.6.9"] +[metosin/muuntaja-yaml "0.6.9"] ``` Muuntaja requires Java 1.8+ @@ -91,7 +93,7 @@ Automatic decoding of request body and response body encoding based on `Content- {"content-type" "application/edn" "accept" "application/transit+json"} :body "{:kikka 42}"}) - + (app request) ; {:status 200, ; :body #object[java.io.ByteArrayInputStream] @@ -102,7 +104,7 @@ Automatic decoding of response body based on `Content-Type` header: ```clj (-> request app m/decode-response-body) -; {:kikka 42} +; {:kikka 42} ``` There is a more detailed [Ring guide](doc/With-Ring.md) too. See also [differences](doc/Differences-to-existing-formatters.md) to ring-middleware-format & ring-json. diff --git a/modules/muuntaja-charred/project.clj b/modules/muuntaja-charred/project.clj index c80c45c..77406d5 100644 --- a/modules/muuntaja-charred/project.clj +++ b/modules/muuntaja-charred/project.clj @@ -1,4 +1,4 @@ -(defproject fi.metosin/muuntaja-charred "0.6.8" +(defproject fi.metosin/muuntaja-charred "0.6.9" :description "Charred/JSON format for Muuntaja" :url "https://github.com/metosin/muuntaja" :license {:name "Eclipse Public License" diff --git a/modules/muuntaja-cheshire/project.clj b/modules/muuntaja-cheshire/project.clj index 88c8e29..1dd9b35 100644 --- a/modules/muuntaja-cheshire/project.clj +++ b/modules/muuntaja-cheshire/project.clj @@ -1,4 +1,4 @@ -(defproject metosin/muuntaja-cheshire "0.6.8" +(defproject metosin/muuntaja-cheshire "0.6.9" :description "Cheshire/JSON format for Muuntaja" :url "https://github.com/metosin/muuntaja" :license {:name "Eclipse Public License" diff --git a/modules/muuntaja-form/project.clj b/modules/muuntaja-form/project.clj index b706968..88574f0 100644 --- a/modules/muuntaja-form/project.clj +++ b/modules/muuntaja-form/project.clj @@ -1,4 +1,4 @@ -(defproject metosin/muuntaja-form "0.6.8" +(defproject metosin/muuntaja-form "0.6.9" :description "application/x-www-form-urlencoded format for Muuntaja" :url "https://github.com/metosin/muuntaja" :license {:name "Eclipse Public License" diff --git a/modules/muuntaja-msgpack/project.clj b/modules/muuntaja-msgpack/project.clj index 52cd0b4..1d40841 100644 --- a/modules/muuntaja-msgpack/project.clj +++ b/modules/muuntaja-msgpack/project.clj @@ -1,4 +1,4 @@ -(defproject metosin/muuntaja-msgpack "0.6.8" +(defproject metosin/muuntaja-msgpack "0.6.9" :description "Messagepack format for Muuntaja" :url "https://github.com/metosin/muuntaja" :license {:name "Eclipse Public License" diff --git a/modules/muuntaja-yaml/project.clj b/modules/muuntaja-yaml/project.clj index 6c5bbfe..ca006df 100644 --- a/modules/muuntaja-yaml/project.clj +++ b/modules/muuntaja-yaml/project.clj @@ -1,4 +1,4 @@ -(defproject metosin/muuntaja-yaml "0.6.8" +(defproject metosin/muuntaja-yaml "0.6.9" :description "YAML format for Muuntaja" :url "https://github.com/metosin/muuntaja" :license {:name "Eclipse Public License" diff --git a/modules/muuntaja/project.clj b/modules/muuntaja/project.clj index f6bead5..e4c5b64 100644 --- a/modules/muuntaja/project.clj +++ b/modules/muuntaja/project.clj @@ -1,4 +1,4 @@ -(defproject metosin/muuntaja "0.6.8" +(defproject metosin/muuntaja "0.6.9" :description "Clojure library for format encoding, decoding and content-negotiation" :url "https://github.com/metosin/muuntaja" :license {:name "Eclipse Public License" diff --git a/project.clj b/project.clj index 2e88105..52641e5 100644 --- a/project.clj +++ b/project.clj @@ -1,9 +1,9 @@ -(defproject metosin/muuntaja "0.6.8" +(defproject metosin/muuntaja "0.6.9" :description "Clojure library for format encoding, decoding and content-negotiation" :url "https://github.com/metosin/muuntaja" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v20.html"} - :managed-dependencies [[metosin/muuntaja "0.6.8"] + :managed-dependencies [[metosin/muuntaja "0.6.9"] [ring/ring-codec "1.1.2"] [metosin/jsonista "0.3.1"] [com.cognitect/transit-clj "1.0.324"] @@ -39,12 +39,12 @@ [ring/ring-json "0.5.0"] ;; modules - [metosin/muuntaja "0.6.8"] - [metosin/muuntaja-form "0.6.8"] -;; [fi.metosin/muuntaja-charred "0.6.8"] ;; not yet released - [metosin/muuntaja-cheshire "0.6.8"] - [metosin/muuntaja-msgpack "0.6.8"] - [metosin/muuntaja-yaml "0.6.8"] + [metosin/muuntaja "0.6.9"] + [metosin/muuntaja-form "0.6.9"] + [fi.metosin/muuntaja-charred "0.6.9"] + [metosin/muuntaja-cheshire "0.6.9"] + [metosin/muuntaja-msgpack "0.6.9"] + [metosin/muuntaja-yaml "0.6.9"] ;; correct jackson [com.fasterxml.jackson.core/jackson-databind "2.12.1"] diff --git a/scripts/lein-modules b/scripts/lein-modules index 373a73c..41dd834 100755 --- a/scripts/lein-modules +++ b/scripts/lein-modules @@ -4,11 +4,11 @@ set -e # Modules for ext in \ + muuntaja \ muuntaja-form \ muuntaja-cheshire \ muuntaja-charred \ muuntaja-msgpack \ - muuntaja-yaml \ - muuntaja; do + muuntaja-yaml; do cd modules/$ext; lein "$@"; cd ../..; done diff --git a/scripts/set-version b/scripts/set-version index a14a089..cb1e91e 100755 --- a/scripts/set-version +++ b/scripts/set-version @@ -2,7 +2,7 @@ ext="sedbak$$" -find . -name project.clj -exec sed -i.$ext "s/\[metosin\/muuntaja\(.*\) \".*\"\]/[metosin\/muuntaja\1 \"$1\"\]/g" '{}' \; -find . -name project.clj -exec sed -i.$ext "s/defproject metosin\/muuntaja\(.*\) \".*\"/defproject metosin\/muuntaja\1 \"$1\"/g" '{}' \; -sed -i.$ext "s/\[metosin\/muuntaja\(.*\) \".*\"\]/[metosin\/muuntaja\1 \"$1\"\]/g" **/*.md +find . -name project.clj -exec sed -i.$ext "s/\[\(\(fi\.\)\?metosin\/muuntaja.*\) \".*\"\]/[\1 \"$1\"\]/g" '{}' \; +find . -name project.clj -exec sed -i.$ext "s/defproject \(\(fi\.\)\?metosin\/muuntaja.*\) \".*\"/defproject \1 \"$1\"/g" '{}' \; +sed -i.$ext "s/\[\(\(fi\.\)\?metosin\/muuntaja.*\) \".*\"\]/[\1 \"$1\"\]/g" **/*.md find . -name "*.$ext" -exec rm '{}' \;