Releases: clj-commons/rewrite-clj
Clojars Release 0.4.1
Breaking Changes
None.
Bugfixes
This fixes an infinite loop the parser could run into when attempting to read an EDN character.
Artifact Coordinates
[rewrite-clj "0.4.1"]
Clojars Release 0.4.0
Breaking Changes
- this release introduces a type/protocol based node structure, meaning that the parser no longer produces nested vectors.
- the namespace
rewrite-clj.zip.indent
(whilst never part of any public API) is no longer usable. - node creation/edit has stronger preconditions (for example, exactly two non-whitespace forms are now required in
meta nodes).
These changes mean that direct manipulation of tree nodes is no longer possible, as well as that the order of certain edit operations has to be adjusted (e.g. to splice a reader macro form without the macro part you now have to first splice, then remove; before, you could first remove, then splice because the :reader-macro
node did not care about its contents).
Features
- adds
rewrite-clj.node/child-sexprs
. - adds node constructor functions.
edit
/replace
allow for pre-constructed nodes to be inserted.
Bugfixes
- certain forms now allow for spaces between prefix and value, e.g.
#' x
equals#'x
. (see #7) - radix support is now working, i.e.
0x1
no longer gets replaced by1
. (see #13)
Artifact Coordinates
[rewrite-clj "0.4.0"]
Clojars Release 0.3.12
Breaking Changes
None.
Bugfixes
- fix
assoc
on empty map. (see #16)
Artifact Coordinates
[rewrite-clj "0.3.12"]
Clojars Release 0.3.11
Breaking Changes
- drops tests against Clojure 1.4.0.
Bugfixes
- fixes
leftmost
behaviour (see #15).
Artifact Coordinates
[rewrite-clj "0.3.11"]
Clojars Release 0.3.10
Bugfixes
- fixes behaviour of
end?
andnext
.
Features
- adds
:row
/:col
to node metadata.
Artifact Coordinates
[rewrite-clj "0.3.10"]
Clojars Release 0.3.9
Bugfixes
- access to children of quoted forms wasn't possible. (see #6)
rewrite-clj.zip/next
while at an empty vector moved to the non-existent first child of the vector. (see #5)rewrite-clj.zip/next
should return itself if no next element available.
Features
rewrite-clj.zip/end?
to decide whether the zipper has reached the last non-whitespace node.
Coordinates
[rewrite-clj "0.3.9"]
Clojars Release 0.3.8
This release adds handling of the "do not evaluate" reader macro #_
. The nodes have the :uneval
node type.
[rewrite-clj "0.3.8"]
Clojars Release 0.3.6
This release upgrades rewrite-clj
's dependencies and fixes issues with parsing files containing UTF-8 characters (see xsc/lein-ancient#24).
Clojars Release 0.3.5
This release cleans up the dependency chain and upgrades org.clojure/tools.reader
.
Clojars Release 0.3.4
This release updates rewrite-clj's dependencies, most importantly tools.reader. The combinations \return \newline
and \return \formfeed
are now read as a single newline character.