Skip to content

Releases: jonludlam/ocaml-rpc

v1.9.11: Open Rpc module in is_string

03 Mar 14:34
Compare
Choose a tag to compare
Pre-release
Signed-off-by: Jon Ludlam <[email protected]>

v1.9.10: Launder the real type through an Rpc.t

03 Mar 14:13
Compare
Choose a tag to compare
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

20 Feb 12:18
Compare
Choose a tag to compare
Pre-release
Signed-off-by: Jon Ludlam <[email protected]>

v1.9.8: Allow combinations of IDL-derived servers

10 Feb 12:03
Compare
Choose a tag to compare
Signed-off-by: Jon Ludlam <[email protected]>

v1.9.7: Add support for JSON-RPC v2

12 Dec 14:36
Compare
Choose a tag to compare
Pre-release
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

23 Nov 15:58
Compare
Choose a tag to compare
Also fix opam uninstall

Signed-off-by: Jon Ludlam <[email protected]>

v1.9.5: Add a functor to help define errors

23 Nov 10:47
Compare
Choose a tag to compare
Signed-off-by: Jon Ludlam <[email protected]>

v1.9.4: (string * t) lists -> Dicts in ppx_deriving_rpc now

11 Nov 23:51
Compare
Choose a tag to compare
Signed-off-by: Jon Ludlam <[email protected]>

v1.9.3: Allow Non-Result returning clients

10 Nov 14:38
Compare
Choose a tag to compare
Signed-off-by: Jon Ludlam <[email protected]>

Remove cow

21 Oct 08:54
Compare
Choose a tag to compare
Remove cow Pre-release
Pre-release
Disable the html backend (in favour of markdown)

Signed-off-by: Jon Ludlam <[email protected]>