packages feed

servant-js 0.9.2 → 0.9.3

raw patch · 3 files changed

+8/−2 lines, 3 filesdep ~aesondep ~servantPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: aeson, servant

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,3 +1,9 @@+0.9.3+-------++* Remove check of responseType in vanilla backend+  ([#13](https://github.com/haskell-servant/servant-js/pull/13), [#14](https://github.com/haskell-servant/servant-js/issues/14))+ 0.9.2 ----- 
servant-js.cabal view
@@ -1,5 +1,5 @@ name:                servant-js-version:             0.9.2+version:             0.9.3 synopsis:            Automatically derive javascript functions to query servant webservices. description:   Automatically derive javascript functions to query servant webservices.
src/Servant/JS/Vanilla.hs view
@@ -40,7 +40,7 @@  <> "    if (xhr.readyState === 4) {\n"  <> "      if (xhr.status === 204 || xhr.status === 205) {\n"  <> "        " <> onSuccess <> "();\n"- <> "      } else if (xhr.status >= 200 && xhr.status < 300 && xhr.responseType === 'json') {\n"+ <> "      } else if (xhr.status >= 200 && xhr.status < 300) {\n"  <> "        try { res = JSON.parse(xhr.responseText); } catch (e) { " <> onError <> "(e); }\n"  <> "        if (res) " <> onSuccess <> "(res);\n"  <> "      } else {\n"