From ce3ead135e10d931003dfd50df8c6538ccf53fd4 Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Tue, 26 Sep 2023 08:52:22 +0300 Subject: [PATCH 1/5] Remove lodash.isObject usage as redundant --- src/helpers/__test__/ports.spec.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/helpers/__test__/ports.spec.js b/src/helpers/__test__/ports.spec.js index 167da8b0..26b33841 100644 --- a/src/helpers/__test__/ports.spec.js +++ b/src/helpers/__test__/ports.spec.js @@ -1,6 +1,5 @@ 'use strict' -const { isObject } = require('lodash') const assert = require('assert').strict const { Server } = require('net') const DHT = require('bittorrent-dht') @@ -15,7 +14,10 @@ const { const { getServerPromise } = require('../utils') const checkAssertions = (res) => { - assert.ok(isObject(res)) + assert.ok( + res && + typeof res === 'object' + ) assert.ok( [ 'grape1DhtPort', From e076803eca6d88a6dcdc481dbb886e373816441d Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Tue, 26 Sep 2023 08:53:48 +0300 Subject: [PATCH 2/5] Uses lib-js-util-base lib instead of lodash --- package.json | 2 +- server.js | 2 +- src/configs-keeper.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 40375c48..8e3d1541 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "github-markdown-css": "5.1.0", "grenache-grape": "git+https://github.com/bitfinexcom/grenache-grape.git", "js-yaml": "4.1.0", - "lodash": "4.17.21", + "lib-js-util-base": "git+https://github.com/bitfinexcom/lib-js-util-base.git", "new-github-issue-url": "0.2.1", "showdown": "2.0.3", "truncate-utf8-bytes": "1.0.2", diff --git a/server.js b/server.js index 658b3826..2b1641f3 100644 --- a/server.js +++ b/server.js @@ -1,6 +1,6 @@ 'use strict' -const { pick } = require('lodash') +const { pick } = require('lib-js-util-base') const { fork } = require('child_process') const path = require('path') const EventEmitter = require('events') diff --git a/src/configs-keeper.js b/src/configs-keeper.js index 37570d61..ce41c134 100644 --- a/src/configs-keeper.js +++ b/src/configs-keeper.js @@ -3,7 +3,7 @@ const { promisify } = require('util') const path = require('path') const fs = require('fs') -const { cloneDeep } = require('lodash') +const { cloneDeep } = require('lib-js-util-base') const { writeFileSync, From 2906e023a3de506562f7b037fe06782ca137916c Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Wed, 4 Oct 2023 10:47:55 +0300 Subject: [PATCH 3/5] Bump version up to v4.12.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8e3d1541..8405fad3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bfx-report-electron", - "version": "4.11.0", + "version": "4.12.0", "repository": "https://github.com/bitfinexcom/bfx-report-electron", "description": "Reporting tool", "author": "bitfinex.com", From ace15aba0d494dca1f6351abe93a4510133aa6aa Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Wed, 4 Oct 2023 10:48:30 +0300 Subject: [PATCH 4/5] Add changelog for v4.12.0 --- CHANGELOG.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 64ba671a..f2e18645 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [4.12.0] - 2023-10-04 + +### Added + +- Added ability to inform user that the `platform` is marked in the `maintenance` mode by `WebSocket`. PRs: [bfx-report#331](https://github.com/bitfinexcom/bfx-report/pull/331), [bfx-reports-framework#321](https://github.com/bitfinexcom/bfx-reports-framework/pull/321), [bfx-api-mock-srv#56](https://github.com/bitfinexcom/bfx-api-mock-srv/pull/56) +- Added `Vietnamese` language. PRs: [bfx-report-ui#711](https://github.com/bitfinexcom/bfx-report-ui/pull/711), [bfx-report-ui#712](https://github.com/bitfinexcom/bfx-report-ui/pull/712) + +### Changed + +- Actualized synchronization progress handling flow according to the latest backend updates. PR: [bfx-report-ui#710](https://github.com/bitfinexcom/bfx-report-ui/pull/710) + +### Fixed + +- Fixed `MaxListenersExceededWarning` for complicated csv reports using the `transform` csv stream waiting for writing to complete `one by one` instead of pipelining all csv streams `simultaneously`. And it also fixed `MaxListenersExceededWarning` for the `process message manager`. PRs: [bfx-report#333](https://github.com/bitfinexcom/bfx-report/pull/333), [bfx-reports-framework#322](https://github.com/bitfinexcom/bfx-reports-framework/pull/322) +- Fixed `Movements` extra info representation for fiat transfers. PR: [bfx-report-ui#707](https://github.com/bitfinexcom/bfx-report-ui/pull/707) + +### Security + +- Removed `lodash` lib usage. PRs: [bfx-report#332](https://github.com/bitfinexcom/bfx-report/pull/332), [bfx-facs-deflate#4](https://github.com/bitfinexcom/bfx-facs-deflate/pull/4), [bfx-report-express#34](https://github.com/bitfinexcom/bfx-report-express/pull/34), [bfx-report-electron#255](https://github.com/bitfinexcom/bfx-report-electron/pull/255) + ## [4.11.0] - 2023-09-20 ### Added From e228d32adba0a4c9eddf00b6fa6f95917c6a4aa0 Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Wed, 4 Oct 2023 11:10:09 +0300 Subject: [PATCH 5/5] Update sub-modules --- bfx-report-ui | 2 +- bfx-reports-framework | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bfx-report-ui b/bfx-report-ui index 25b2e1c2..f2615af4 160000 --- a/bfx-report-ui +++ b/bfx-report-ui @@ -1 +1 @@ -Subproject commit 25b2e1c20e283327a8f0964b2a3fb234c1fc0782 +Subproject commit f2615af4d3deb5fa0761b5ad072e9afe28a650ae diff --git a/bfx-reports-framework b/bfx-reports-framework index 063024a3..5411e01d 160000 --- a/bfx-reports-framework +++ b/bfx-reports-framework @@ -1 +1 @@ -Subproject commit 063024a3eda672956490bd3fc7a3f271f397523f +Subproject commit 5411e01d7f4b367aa88006b1e5a6836ead429147