servant-js v0.5 Release Notes
-
- Extract javascript-obvlious types and helpers to servant-foreign
- 📦 Use
text
package instead ofString
- Provide new targets for code generation along with the old jQuery one: vanilla Javascript and Angular.js
- Greatly simplify usage of this library by reducing down the API to just 2 functions:
jsForAPI
andwriteJSForAPI
+ the choice of a code generator - 👌 Support for the
HttpVersion
,IsSecure
,RemoteHost
andVault
combinators - ✂ Remove matrix params.
0.4
Delete
now is likeGet
,Post
,Put
, andPatch
and returns a response body- 👍 Extend
HeaderArg
to support more advanced HTTP header handling (https://github.com/haskell-servant/servant-jquery/pull/6) - 👌 Support content-type aware combinators (but require that endpoints support JSON)
- ➕ Add support for Matrix params (https://github.com/haskell-servant/servant-jquery/pull/11)
- ➕ Add functions that directly generate the Javascript code from the API type without having to manually pattern match on the result.