@asyncswap/jsonrpc 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @asyncswap/jsonrpc
2
2
 
3
+ ## 0.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 7e8300c: changes api for jsonrpc contruction
8
+
9
+ ### Patch Changes
10
+
11
+ - 43de065: update docs
12
+ - 7126afa: add `otherHeaders` to inializedClient calls
13
+
3
14
  ## 0.3.1
4
15
 
5
16
  ### Patch Changes
package/README.md CHANGED
@@ -41,12 +41,10 @@ console.log("JSON-RPC running on http://localhost:4444")
41
41
  ### RPC Client
42
42
 
43
43
  ```ts
44
- import { initializeRpcClient } from "@asyncswap/jsonrpc";
44
+
45
+ import { JsonRpcClient } from "@asyncswap/jsonrpc";
45
46
  const url = "http://localhost:4444";
46
- const client = initializeRpcClient(url);
47
- const result = await client.call(
48
- "ping",
49
- []
50
- );
51
- console.log(result)
47
+ const client = new JsonRpcClient(url);
48
+ const result = await client.call("ping", []);
49
+ console.log(result);
52
50
  ```
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@asyncswap/jsonrpc",
3
3
  "description": "A minimal jsonrpc spec implementation.",
4
4
  "author": "Meek Msaki",
5
- "version": "0.4.0",
5
+ "version": "0.4.1",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.mjs",