Skip to content

Releases: clj-commons/rewrite-clj

Clojars Release 0.4.1

13 Jan 11:26
@xsc xsc
Compare
Choose a tag to compare

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

13 Jan 11:07
@xsc xsc
Compare
Choose a tag to compare

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 by 1. (see #13)

Artifact Coordinates

[rewrite-clj "0.4.0"]

Clojars Release 0.3.12

14 Dec 14:44
@xsc xsc
Compare
Choose a tag to compare

Breaking Changes

None.

Bugfixes

  • fix assoc on empty map. (see #16)

Artifact Coordinates

[rewrite-clj "0.3.12"]

Clojars Release 0.3.11

23 Nov 12:51
@xsc xsc
Compare
Choose a tag to compare

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

21 Nov 21:37
@xsc xsc
Compare
Choose a tag to compare

Bugfixes

  • fixes behaviour of end? and next.

Features

  • adds :row/:col to node metadata.

Artifact Coordinates

[rewrite-clj "0.3.10"]

Clojars Release 0.3.9

29 Mar 11:33
@xsc xsc
Compare
Choose a tag to compare

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

16 Mar 10:08
@xsc xsc
Compare
Choose a tag to compare

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

08 Feb 14:17
@xsc xsc
Compare
Choose a tag to compare

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

14 Dec 12:13
@xsc xsc
Compare
Choose a tag to compare

This release cleans up the dependency chain and upgrades org.clojure/tools.reader.

Clojars Release 0.3.4

02 Nov 12:13
@xsc xsc
Compare
Choose a tag to compare

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.