Skip to content

Latest commit

 

History

History
56 lines (35 loc) · 2.05 KB

CHANGELOG.md

File metadata and controls

56 lines (35 loc) · 2.05 KB

Changelog

Rewrite-edn: utility lib on top of rewrite-clj with common operations to update EDN while preserving whitespace and comments.

0.4.9

  • #40: assoc/update now handles map keys that have no indent at all (@lread)
  • #43: bump rewrite-clj to 1.1.49 (@lread)
  • #40: assoc/update now handles map keys that have no indent at all (@lread)
  • #40: assoc/update now aligns indent to comment if that's all that is in the map (@lread)
  • #40: update now indents new entries in same way as assoc (@lread)

0.4.8

  • Add newline after adding new element to top level map with assoc-in

0.4.7

  • #35: Bump rewrite-clj to 1.1.47

0.4.6

  • #33: fix assoc on map starting with comment

0.4.5

  • Add conj: (str (r/update (r/parse-string "{:a [1 2 3]}") :a r/conj 1)) ;;=> "{:a [1 2 3 1]}" (@zerg000000)
  • Add fnil: (str (r/update (r/parse-string "{:a [1 2 3]}") :b (r/fnil r/conj []) 1)) ;;=> "{:a [1 2 3] :b [1]}"

0.3.4

  • #20: Bump rewrite-clj to v1.1.45 (@lread)
  • #19: Repeated assoc-in, assoc no longer throw NullPointerException (@lread)
  • Add keys and get-in (@witek)

0.2.0

  • Add get
  • Improvements for assoc

0.1.0

  • Change map-vals to map-keys

0.0.2

  • Fix NPE in assoc-in

0.0.1

Initial release