chia-agent 12.0.0 → 12.0.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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [12.0.1]
4
+ ### Changed
5
+ - Replace the npm module `json-bigint` to `@chiamine/json-bigint`.
6
+ ### Fixed
7
+ - Fixed the type of `int64`, `uint64`, `uint128`, `uint512` to `number | bigint`.
8
+
3
9
  ## [12.0.0]
4
10
  ### Breaking change
5
11
  Now the types of `int64`, `uint64`, `uint128`, `uint512` are `number | BigInt` (Originally it was `number`).
@@ -1011,6 +1017,7 @@ daemon.sendMessage(destination, get_block_record_by_height_command, data);
1011
1017
  Initial release.
1012
1018
 
1013
1019
  <!-- [Unreleased]: https://github.com/Chia-Mine/chia-agent/compare/v0.0.1...v0.0.2 -->
1020
+ [12.0.1]: https://github.com/Chia-Mine/chia-agent/compare/v12.0.0...v12.0.1
1014
1021
  [12.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v11.1.1...v12.0.0
1015
1022
  [11.1.1]: https://github.com/Chia-Mine/chia-agent/compare/v11.1.0...v11.1.1
1016
1023
  [11.1.0]: https://github.com/Chia-Mine/chia-agent/compare/v11.0.0...v11.1.0
@@ -9,10 +9,10 @@ export declare type int16 = number;
9
9
  export declare type uint16 = number;
10
10
  export declare type int32 = number;
11
11
  export declare type uint32 = number;
12
- export declare type int64 = number | BigInt;
13
- export declare type uint64 = number | BigInt;
14
- export declare type uint128 = number | BigInt;
15
- export declare type int512 = number | BigInt;
12
+ export declare type int64 = number | bigint;
13
+ export declare type uint64 = number | bigint;
14
+ export declare type uint128 = number | bigint;
15
+ export declare type int512 = number | bigint;
16
16
  export declare type float = number;
17
17
  export declare type str = string;
18
18
  export declare type bool = boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chia-agent",
3
- "version": "12.0.0",
3
+ "version": "12.0.1",
4
4
  "author": "ChiaMineJP <admin@chiamine.jp>",
5
5
  "description": "chia rpc/websocket client library",
6
6
  "license": "MIT",
@@ -26,7 +26,7 @@
26
26
  "node": ">=12.13.0"
27
27
  },
28
28
  "dependencies": {
29
- "json-bigint": "Chia-Mine/json-bigint#v1.0.1",
29
+ "@chiamine/json-bigint": "^1.0.3",
30
30
  "ws": "^8.5.0",
31
31
  "yaml": "^2.2.2"
32
32
  }
package/rpc/index.js CHANGED
@@ -13,7 +13,7 @@ exports.RPCAgent = exports.getConnectionInfoFromConfig = void 0;
13
13
  const https_1 = require("https");
14
14
  const http_1 = require("http");
15
15
  const fs_1 = require("fs");
16
- const JSONbigBuilder = require("json-bigint");
16
+ const JSONbigBuilder = require("@chiamine/json-bigint");
17
17
  const logger_1 = require("../logger");
18
18
  const index_1 = require("../config/index");
19
19
  const JSONbig = JSONbigBuilder({