diff --git a/CHANGELOG.md b/CHANGELOG.md index 022e0f79..95956406 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ [Squint](https://github.com/squint-cljs/squint): ClojureScript syntax to JavaScript compiler +## v0.4.79 (2023-12-09) + +- The `children` function in `tree-seq` may return `nil` + ## v0.4.78 (2023-12-09) - Add `clojure.set/join` diff --git a/package.json b/package.json index 27e83914..564e1527 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "squint-cljs", "type": "module", "sideEffects": false, - "version": "0.4.78", + "version": "0.4.79", "files": [ "core.js", "src/squint/core.js", diff --git a/test/squint/compiler_test.cljs b/test/squint/compiler_test.cljs index 4f2e1ea9..0b554906 100644 --- a/test/squint/compiler_test.cljs +++ b/test/squint/compiler_test.cljs @@ -2104,7 +2104,8 @@ new Foo();") (is (eq [1 1 1 1] (f js-obj))))) (deftest flatten-test - (is (eq [1 2 3 4 3] (jsv! '(vec (flatten '(1 2 (3 (4 (((3)))))))))))) + (is (eq [1 2 3 4 3] (jsv! '(vec (flatten '(1 2 (3 (4 (((3))))))))))) + (is (eq 0 (jsv! '(first (flatten (map range (range)))))))) (deftest counted?-test (is (true? (jsv! '(counted? {})))))