Liking cljdoc? Tell your friends :D

Changelog

For a list of breaking changes, check here

Edamame: configurable EDN and Clojure parser with location metadata and more

1.4.27

  • Restrict numeric part of new Clojure 1.12 array notation

1.4.26

  • Support new byte/1 array notation

1.4.25

  • Support new ^[String] metadata notation which desugars into ^{:param-tags [String]}

1.4.24

  • Add :map and :set options to coerce map/set literals into customizable data structures, for example, an ordered collections to preserve key order.
(require '[edamame.core :as e])
(require '[flatland.ordered.map :as m])
(e/parse-string "{:a 1}" {:map m/ordered-map}) ;;=> #ordered/map ([:a 1])
(require '[clojure.data.json :as j])
(j/write-str (e/parse-string "{:a 1 :b 2 :c 3 :d 4 :e 5 :f 6 :g 7 :h 8 :i 9 :j 10 :k 11 :l 12}" {:map m/ordered-map}))
;;=> "{\"a\":1,\"b\":2,\"c\":3,\"d\":4,\"e\":5,\"f\":6,\"g\":7,\"h\":8,\"i\":9,\"j\":10,\"k\":11,\"l\":12}"

1.3.23

  • Fix #103: infinite loop with reader conditional expression

1.3.22

  • Add stricter checks for whitespace in parsing namespaced maps

1.3.21

  • Allow whitespace between : and { when reading namespaced map

1.3.20

  • Add :uneval option to preserve #_ expressions combined with next value
  • Fix transient issue

1.2.19

  • Fall back to :auto-resolve when :auto-resolve-ns can't find alias

1.2.18

  • Add :auto-resolve-ns option. See docs.
  • Add parse-ns-form helper function which returns map of data from ns form.

1.1.17

  • Add parse-next+string for reading next value + the read string (analog to read+string in Clojure)

1.0.16

  • Fix #93: read-cond assumes LineNumberingIndexReader
  • Optimization: reset source logging buffer when reading source

1.0.0

  • Fix #76: nested fn literals not allowed

0.0.19

  • Improve error message when reading invalid symbol

0.0.18

  • Small performance improvement

0.0.17

  • Fix bug introduced in 0.0.16 by change in issue #86

0.0.16

  • Support reading with PushbackReader which is not an indexing reader #86

0.0.15

  • Fix reading of ##Inf with clojure.lang.LineNumberingPushbackReader #85

0.0.14

  • 1@2 should be parsed as 1 (clojure.core/deref 2)

0.0.13

  • foo@bar should be parsed as foo (clojure.core/deref bar) #83

0.0.12

  • Revert #70, instead return cljs.tagged-literals/JSValue object which should be evaluated manually.

0.0.11

  • Expose expected delimiter as public data in exception #81
  • Return array-based map when c <= 16 #78
  • :end-location option #75
  • Auto-resolved map fails for current ns #74
  • location? predicate #72
  • Handle whitespace after reader conditional splice #71
  • Fix parsing of trailing uneval in reader conditional #65
  • Return JS array when using #js [1 2 3] #70
  • Expose iobj? fn
  • Upgrade to tools.reader 1.3.4
  • Support capturing source string #67
  • Expose parse-next #5
  • Allow value for :readers to be a map or a function
  • Throw EOF while reading with single quote #61
  • Fix issue with stack depth and comment parsing
  • preserve metadata by allowing postprocess function #52
  • Support parsing Clojure code in tagged literals #50
  • Preserve metadata on anonymous function body
  • allow function in :read-cond #47
  • fully qualify unquote
  • fix line numbers when using shebang #48

Breaking changes

0.0.12

  • Revert #70, instead return cljs.tagged-literals/JSValue object which should be evaluated manually.

0.0.10

  • Function literals now expand into a call to fn* instead of fn

0.0.8

  • Options to tools.reader, like :readers for passing reader tag functions, now have to be passed as :tools.reader/opts in the options.
  • The :dispatch option has been deprecated. It still works in 0.0.8 but is now undocumented and planned to be removed in a future version.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close