Breaking Changes
The criteria for a response to be considered successful has changed.
GET with :params {:a [10 20]} used to produce ?a=10&a=20 in 0.3, it now does so again. I'd like to apologise to everyone for this particular breakage, and for the long time it's taken to fix. I know a lot of people have had to work around this issue.?a[]=10&a[]=20 instead, add :vec-strategy :rails to your map.default-formats is now an atom.+ under url encoding got fixed. This was a breaking change, but too important not to fix.cljs-ajax never had a stable 0.4.0 release, so there's no breaking changes.
ajax.edn:edn keyword no longer works.AjaxImpl protocol has changed.GET with :params {:a [10 20]} used to produce ?a=10&a=20. It now produces ?a[0]=10&a[1]=20.js/FormData and js/ArrayBuffer &c are now submitted using a :body tag, not the :params tag(str my-keyword) instead of (name my-keyword) causing leading colons to be preserved.:transit.:transit.ajax-request. See formats.md. It remains the default with GET and POST. This means that code using ajax-request will be smaller with advanced optimizations.:is-parse-error, :timeout? and :aborted? have been removed, in favour of :failureajax-request now has :format and :response-format parameters, same as POSTajax-request's API has significantly changed. It used to be pretty equivalent to GET and POST.:keywordize-keys is now :keywords?:format used to be the response format. The request format used to always to be :urlCan you improve this documentation? These fine people already did:
Julian Birch, Ryan Neufeld, Khalid Jebbari & dmitri.sotnikov@gmail.comEdit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |