All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- The "Client::preEncode" and "Client::postDecode" methods have been added to allow advanced users to inspect and tweak the inner workings of the JSON-RPC library.
- The "Server::rawReply" method has been added to complement the new "Client" methods.
- There are now two types of responses--an "ErrorResponse" and a "ResultResponse"-- which both derive from a base "Response" class. The "Client::decode" method returns a list of these "Response" objects. You can use the "instanceof" type operator to see which type of response you have received.
- The "Client::decode" method now throws an "ErrorException" when the input is not a valid JSON-RPC 2.0 reply string
- The "Client::query" and "Client::notify" methods now return the object handle, so you can chain method calls if you like
- The "Client::decode" method now returns a list of "Response" objects (rather than an associative array of raw JSON-RPC 2.0 keys and values)
- The four exception classes have been moved (e.g. "Datto\JsonRpc\Exception\Application" => "Datto\JsonRpc\Exceptions\ApplicationException")