Releases: jonludlam/ocaml-rpc
Releases · jonludlam/ocaml-rpc
v1.9.11: Open Rpc module in is_string
Signed-off-by: Jon Ludlam <[email protected]>
v1.9.10: Launder the real type through an Rpc.t
This fixes a compilation error when encountering non-string types Signed-off-by: Jon Ludlam <[email protected]>
v1.9.9: Eta expand the other one too
Signed-off-by: Jon Ludlam <[email protected]>
v1.9.8: Allow combinations of IDL-derived servers
Signed-off-by: Jon Ludlam <[email protected]>
v1.9.7: Add support for JSON-RPC v2
This adds a `version` argument to `Jsonrpc.string_of_{call;response}`, and updates the `of_string` functions accordingly. The main changes compared to JSON-RPC v1 are: 1. And added version field: `{jsonrpc: "2.0"}`. 2. Support for named parameters in requests: `params: {"name1": "value2", "name2", "value2"}`. 3. Responses have a `result` OR an `error`, but not both. Regarding (2), since the `RPC.call` type defines its `params` as a `t list`, it does not have support for named parameters in the type itself. Positional params are still treated as in V1, by putting them in an array (`params: [value1, value2]`). To overcome this, we assume that if the first parameter in this list has an `Rpc.Dict` type, and this is the only parameter, that the dictionary contains named parameters. Fixes #32 Signed-off-by: Rob Hoes <[email protected]>
v1.9.6: ppx_deriving_rpc - t produces rpc_of_t not rpc_of now
Also fix opam uninstall Signed-off-by: Jon Ludlam <[email protected]>
v1.9.5: Add a functor to help define errors
Signed-off-by: Jon Ludlam <[email protected]>
v1.9.4: (string * t) lists -> Dicts in ppx_deriving_rpc now
Signed-off-by: Jon Ludlam <[email protected]>
v1.9.3: Allow Non-Result returning clients
Signed-off-by: Jon Ludlam <[email protected]>
Remove cow
Disable the html backend (in favour of markdown) Signed-off-by: Jon Ludlam <[email protected]>