Skip to content

Commit

Permalink
Merge pull request #59 from Chia-Mine/v14.2.2
Browse files Browse the repository at this point in the history
V14.2.2
  • Loading branch information
ChiaMineJP authored Aug 19, 2024
2 parents c328aa6 + aa8317b commit 735ece0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Changelog

## [14.2.2]
### Changed
- For the log which is output when `success` property in API response is `false`, the log level is now `INFO` instead of `ERROR`.

## [14.2.1]
### Changed
- [`daemon.connect()`](./src/daemon/README.md#daemonconnecturl-string-timeoutms-number) now returns a rejected promise on failure to connect instead of throwing an uncaught exception
- [`daemon.connect()`](./src/daemon/README.md#daemonconnecturl-string-timeoutms-number) now returns a rejected promise on failure instead of throwing an uncaught exception
- [`daemon.connect()`](./src/daemon/README.md#daemonconnecturl-string-timeoutms-number) now accepts connection timeout in milliseconds.

## [14.2.0]
Expand Down Expand Up @@ -1638,6 +1642,8 @@ daemon.sendMessage(destination, get_block_record_by_height_command, data);
Initial release.
<!-- [Unreleased]: https://github.com/Chia-Mine/chia-agent/compare/v0.0.1...v0.0.2 -->
[14.2.2]: https://github.com/Chia-Mine/chia-agent/compare/v14.2.1...v14.2.2
[14.2.1]: https://github.com/Chia-Mine/chia-agent/compare/v14.2.0...v14.2.1
[14.2.0]: https://github.com/Chia-Mine/chia-agent/compare/v14.1.0...v14.2.0
[14.1.0]: https://github.com/Chia-Mine/chia-agent/compare/v14.0.0...v14.1.0
[14.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v13.2.0...v14.0.0
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chia-agent",
"version": "14.2.1",
"version": "14.2.2",
"author": "ChiaMineJP <[email protected]>",
"description": "chia rpc/websocket client library",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/rpc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export class RPCAgent implements APIAgent {
return reject(new Error(`Response has no 'success' property: ${serializedData}`));
}
if(!d.success){
getLogger().error(`API failure: ${d.error}`);
getLogger().info(`API failure: ${d.error}`);
return reject(d);
}
return resolve(d);
Expand Down

0 comments on commit 735ece0

Please sign in to comment.