Rewrite-edn: utility lib on top of rewrite-clj with common operations to update EDN while preserving whitespace and comments.
- Add newline after adding new element to top level map with
assoc-in
- #35: Bump rewrite-clj to 1.1.47
- #33: fix
assoc
on map starting with comment
- 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]}"
- #20: Bump rewrite-clj to v1.1.45 (@lread)
- #19: Repeated
assoc-in
,assoc
no longer throwNullPointerException
(@lread) - Add
keys
andget-in
(@witek)
- Add
get
- Improvements for
assoc
- Change
map-vals
tomap-keys
- Fix NPE in
assoc-in
Initial release