Skip to content

Commit 6b6c2a5

Browse files
authored
Merge pull request #605 from bitfinexcom/staging
Release version 4.42.0
2 parents 078e535 + 8ba76c2 commit 6b6c2a5

50 files changed

Lines changed: 991 additions & 511 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-electron-app.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ jobs:
162162
fi
163163
- uses: actions/setup-node@v4
164164
with:
165-
node-version: 22.19.0
165+
node-version: 24.14.0
166166
- name: Cache Electron binaries
167167
id: electron-cache
168168
uses: actions/cache@v4
@@ -234,7 +234,7 @@ jobs:
234234
uses: actions/checkout@v4
235235
- uses: actions/setup-node@v4
236236
with:
237-
node-version: 22.19.0
237+
node-version: 24.14.0
238238
- name: Install main dev deps
239239
run: npm i --development --no-audit --progress=false --force
240240
- name: Download Linux Unpacked build
@@ -266,7 +266,7 @@ jobs:
266266
uses: actions/checkout@v4
267267
- uses: actions/setup-node@v4
268268
with:
269-
node-version: 22.19.0
269+
node-version: 24.14.0
270270
- name: Install main dev deps
271271
run: npm i --development --no-audit --progress=false --force
272272
- name: Download Linux Unpacked build
@@ -300,7 +300,7 @@ jobs:
300300
uses: ./.github/actions/prepare-mac-runner
301301
- uses: actions/setup-node@v4
302302
with:
303-
node-version: 22.19.0
303+
node-version: 24.14.0
304304
- name: Install main dev deps
305305
run: npm i --development --no-audit --progress=false --force
306306
- name: Download Mac Unpacked build

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
submodules: recursive
2121
- uses: actions/setup-node@v4
2222
with:
23-
node-version: 22.19.0
23+
node-version: 24.14.0
2424
- name: Setup configs and install deps
2525
run: ./scripts/setup.sh -u
2626
- name: Run tests

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [4.42.0] - 2026-03-18
11+
12+
### Changed
13+
14+
- Updated the `config` dep up to `v4` to support nodejs `v24` for electronjs update to `v40`. PR: [bfx-report-express#57](https://github.com/bitfinexcom/bfx-report-express/pull/57)
15+
- Updated `better-sqlite3` dep up to `v12.4.1` to have the last prebuilt binaries and be able to launch the driver under electron `v40` with nodejs `v24`. PR: [bfx-facs-db-better-sqlite#15](https://github.com/bitfinexcom/bfx-facs-db-better-sqlite/pull/15)
16+
- Moved platform and env identifiers into a separate module for unification. PR: [bfx-report-electron#600](https://github.com/bitfinexcom/bfx-report-electron/pull/600)
17+
18+
### Fixed
19+
20+
- Updated `electronjs` version up to `v40.8.0` as support for `v38` was dropped on Mar 10th. Fixed some issues related to new Chromium updates and specific features of working in the Wayland env on Linux. PR: [bfx-report-electron#602](https://github.com/bitfinexcom/bfx-report-electron/pull/602)
21+
22+
### Security
23+
24+
- Updated dependencies and fixed vulnerabilities. PR: [bfx-report-ui#1044](https://github.com/bitfinexcom/bfx-report-ui/pull/1044)
25+
- Migrated the BFX deps to the new `@bitfinex` namespace and fixed dep vulnerabilities. PR: [bfx-report-express#58](https://github.com/bitfinexcom/bfx-report-express/pull/58)
26+
1027
## [4.41.1] - 2026-02-25
1128

1229
### Changed

Dockerfile.linux-builder

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM electronuserland/builder:22
1+
FROM electronuserland/builder:base-03.25
22

3-
ARG NODE_VERSION="22.19.0"
3+
ARG NODE_VERSION="24.14.0"
44

55
ENV IS_BFX_API_STAGING=${IS_BFX_API_STAGING:-0}
66
ENV IS_DEV_ENV=${IS_DEV_ENV:-0}

Dockerfile.mac-builder

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM electronuserland/builder:22
1+
FROM electronuserland/builder:base-03.25
22

3-
ARG NODE_VERSION="22.19.0"
3+
ARG NODE_VERSION="24.14.0"
44

55
ENV IS_BFX_API_STAGING=${IS_BFX_API_STAGING:-0}
66
ENV IS_DEV_ENV=${IS_DEV_ENV:-0}

Dockerfile.ui-builder

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM electronuserland/builder:22
1+
FROM electronuserland/builder:base-03.25
22

3-
ARG NODE_VERSION="22.19.0"
3+
ARG NODE_VERSION="24.14.0"
44

55
ENV IS_BFX_API_STAGING=${IS_BFX_API_STAGING:-0}
66
ENV IS_DEV_ENV=${IS_DEV_ENV:-0}

Dockerfile.win-builder

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM electronuserland/builder:22-wine
1+
FROM electronuserland/builder:22-wine-03.25
22

3-
ARG NODE_VERSION="22.19.0"
3+
ARG NODE_VERSION="24.14.0"
44

55
ENV IS_BFX_API_STAGING=${IS_BFX_API_STAGING:-0}
66
ENV IS_DEV_ENV=${IS_DEV_ENV:-0}

electron-builder-config.js

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ const exec = promisify(require('child_process').exec)
1414
const parseEnvValToBool = require(
1515
'./src/helpers/parse-env-val-to-bool'
1616
)
17+
const {
18+
IS_MAC
19+
} = require('./src/helpers/platform-identifiers')
1720

1821
const electronEnvVars = {
1922
REPO_OWNER: 'bitfinexcom'
@@ -76,7 +79,7 @@ const isNotarize = parseEnvValToBool(process.env.NOTARIZE)
7679
const arch = process.env.ARCH ?? 'x64'
7780

7881
// DMG can be built only on MacOS
79-
const macSpecificTargets = process.platform === 'darwin'
82+
const macSpecificTargets = IS_MAC
8083
? ['dmg', 'zip']
8184
: []
8285

@@ -126,7 +129,13 @@ module.exports = {
126129
generateUpdatesFilesForAllChannels: true,
127130
npmRebuild: false,
128131
extends: null,
129-
asar: false,
132+
asar: true,
133+
asarUnpack: [
134+
'**/bfx-reports-framework/node_modules/better-sqlite3/**/*',
135+
'bfx-reports-framework/worker.js',
136+
'server.js',
137+
'src/helpers/root-path.js'
138+
],
130139
productName: 'Bitfinex Report',
131140
artifactName: 'BitfinexReport-${version}-' + arch + '-${os}.${ext}',
132141
appId: 'com.bitfinex.report',
@@ -150,6 +159,10 @@ module.exports = {
150159
'dir',
151160
'AppImage',
152161
'deb'
162+
],
163+
executableArgs: [
164+
'--ozone-platform=x11',
165+
'--disable-features=WaylandWindowDecorations'
153166
]
154167
},
155168
win: {
@@ -169,7 +182,7 @@ module.exports = {
169182
minimumSystemVersion: '11',
170183
darkModeSupport: true,
171184
notarize: !!(
172-
process.platform === 'darwin' &&
185+
IS_MAC &&
173186
isNotarize
174187
),
175188
target: [
@@ -299,7 +312,7 @@ module.exports = {
299312

300313
if (
301314
// Outside darwin zip release can't be built successfully
302-
process.platform !== 'darwin' &&
315+
!IS_MAC &&
303316
targetPlatform === 'mac' &&
304317
targetName === 'zip'
305318
) {

0 commit comments

Comments
 (0)