Skip to content

Commit

Permalink
release 0.6.9
Browse files Browse the repository at this point in the history
including new module muuntaja-charred

including some fixes for automated releases
  • Loading branch information
opqdonut committed Mar 15, 2024
1 parent 363a53f commit c1170aa
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 35 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
12 changes: 7 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:

Expand All @@ -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)

Expand Down
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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+
Expand Down Expand Up @@ -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]
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion modules/muuntaja-charred/project.clj
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion modules/muuntaja-cheshire/project.clj
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion modules/muuntaja-form/project.clj
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion modules/muuntaja-msgpack/project.clj
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion modules/muuntaja-yaml/project.clj
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion modules/muuntaja/project.clj
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
16 changes: 8 additions & 8 deletions project.clj
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down Expand Up @@ -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"]
Expand Down
4 changes: 2 additions & 2 deletions scripts/lein-modules
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions scripts/set-version
Original file line number Diff line number Diff line change
Expand Up @@ -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 '{}' \;

0 comments on commit c1170aa

Please sign in to comment.