Skip to content

Commit d5eb31e

Browse files
committed
chore: upgrade dependencies
1 parent 597c3f1 commit d5eb31e

Some content is hidden

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

56 files changed

+55524
-37646
lines changed

.changeset/busy-jars-smell.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'renterd': minor
3+
'hostd': minor
4+
'walletd': minor
5+
---
6+
7+
Updated dependencies.

.github/actions/setup/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ inputs:
66
node_version:
77
description: Node.js version
88
required: false
9-
default: '20.10.0'
9+
default: 23.11.0
1010

1111
runs:
1212
using: composite
@@ -20,3 +20,7 @@ runs:
2020
with:
2121
node-version: ${{ inputs.node_version }}
2222
registry-url: https://registry.npmjs.org
23+
- name: Install root dependencies
24+
run: |
25+
npm install --workspaces=false
26+
shell: bash

.github/workflows/pr.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ jobs:
2727
uses: ./.github/actions/daemon-setup
2828
with:
2929
daemon: ${{ matrix.app }}
30-
node_version: 20.10.0
3130
- name: Setup signing
3231
env:
3332
APPLE_CERT_ID: ${{ secrets.APPLE_CERT_ID }}
@@ -74,8 +73,7 @@ jobs:
7473
timeout_minutes: 30
7574
retry_wait_seconds: 30
7675
command: |
77-
cd ${{ matrix.app }}
78-
npm run download:binary -- --goos=darwin --goarch=${{ matrix.arch }}
76+
npm run download:binary -- --daemon=${{ matrix.app }} --goos=darwin --goarch=${{ matrix.arch }}
7977
# Retry because macos notarization is often flakey and fails.
8078
- name: Package executable bundles, sign and notarize, make distributables
8179
uses: nick-fields/retry@v3
@@ -111,7 +109,6 @@ jobs:
111109
uses: ./.github/actions/daemon-setup
112110
with:
113111
daemon: ${{ matrix.app }}
114-
node_version: 20.10.0
115112
- name: Lint
116113
run: npm run lint
117114
shell: bash
@@ -127,8 +124,7 @@ jobs:
127124
timeout_minutes: 30
128125
retry_wait_seconds: 30
129126
command: |
130-
cd ${{ matrix.app }}
131-
npm run download:binary -- --goos=linux --goarch=${{ matrix.arch }}
127+
npm run download:binary -- --daemon=${{ matrix.app }} --goos=linux --goarch=${{ matrix.arch }}
132128
- name: Package executable bundles, make distributables
133129
run: |
134130
APP_ARCH=${{ matrix.arch }}
@@ -153,7 +149,6 @@ jobs:
153149
uses: ./.github/actions/daemon-setup
154150
with:
155151
daemon: ${{ matrix.app }}
156-
node_version: 20.10.0
157152
- name: Setup signing
158153
run: dotnet tool install --global AzureSignTool
159154
- name: Lint
@@ -171,8 +166,7 @@ jobs:
171166
timeout_minutes: 30
172167
retry_wait_seconds: 30
173168
command: |
174-
cd ${{ matrix.app }}
175-
npm run download:binary -- --goos=windows --goarch=amd64
169+
npm run download:binary -- --daemon=${{ matrix.app }} --goos=windows --goarch=amd64
176170
- name: Package executable bundles, sign and notarize, make distributables
177171
run: npm run make -- --arch=x64
178172
shell: bash

.github/workflows/publish.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
uses: ./.github/actions/daemon-setup
2727
with:
2828
daemon: ${{ matrix.app }}
29-
node_version: 20.10.0
3029
- name: Setup signing
3130
env:
3231
APPLE_CERT_ID: ${{ secrets.APPLE_CERT_ID }}
@@ -76,8 +75,7 @@ jobs:
7675
timeout_minutes: 30
7776
retry_wait_seconds: 30
7877
command: |
79-
cd ${{ matrix.app }}
80-
npm run download:binary -- --goos=darwin --goarch=${{ matrix.arch }}
78+
npm run download:binary -- --daemon=${{ matrix.app }} --goos=darwin --goarch=${{ matrix.arch }}
8179
- name: Package executable bundles, sign and notarize, make and publish distributables
8280
uses: nick-fields/retry@v3
8381
env:
@@ -114,7 +112,6 @@ jobs:
114112
uses: ./.github/actions/daemon-setup
115113
with:
116114
daemon: ${{ matrix.app }}
117-
node_version: 20.10.0
118115
- name: Build
119116
uses: nick-fields/retry@v3
120117
with:
@@ -133,8 +130,7 @@ jobs:
133130
timeout_minutes: 30
134131
retry_wait_seconds: 30
135132
command: |
136-
cd ${{ matrix.app }}
137-
npm run download:binary -- --goos=linux --goarch=${{ matrix.arch }}
133+
npm run download:binary -- --daemon=${{ matrix.app }} --goos=linux --goarch=${{ matrix.arch }}
138134
- name: Package executable bundles, make and publish distributables
139135
uses: nick-fields/retry@v3
140136
env:
@@ -167,7 +163,6 @@ jobs:
167163
uses: ./.github/actions/daemon-setup
168164
with:
169165
daemon: ${{ matrix.app }}
170-
node_version: 20.10.0
171166
- name: Setup signing
172167
run: dotnet tool install --global AzureSignTool
173168
- name: Build
@@ -188,8 +183,7 @@ jobs:
188183
timeout_minutes: 30
189184
retry_wait_seconds: 30
190185
command: |
191-
cd ${{ matrix.app }}
192-
npm run download:binary -- --goos=windows --goarch=amd64
186+
npm run download:binary -- --daemon=${{ matrix.app }} --goos=windows --goarch=amd64
193187
- name: Package executable bundles, sign and notarize, make and publish distributables
194188
uses: nick-fields/retry@v3
195189
env:

.github/workflows/release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ jobs:
1515
- name: Setup
1616
uses: ./.github/actions/setup
1717
with:
18-
node_version: 20.10.0
19-
- name: Install root for @changesets/cli
20-
shell: bash
21-
run: npm install --workspaces=false
18+
node_version: 23.11.0
2219
- name: Update release pull request or publish
2320
id: changesets
2421
uses: changesets/action@v1

.npmrc

Whitespace-only changes.

hostd/eslint.config.mjs

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,40 @@
11
import globals from 'globals'
22
import eslint from '@eslint/js'
33
import tseslint from 'typescript-eslint'
4+
import { FlatCompat } from '@eslint/eslintrc'
45

5-
export default [
6+
const compat = new FlatCompat({
7+
baseDirectory: import.meta.dirname,
8+
})
9+
10+
const eslintConfig = [
11+
{
12+
ignores: ['dist', 'renderer/.next', 'renderer/out'],
13+
},
614
{
715
languageOptions: { globals: globals.browser },
816
},
17+
...compat.config({
18+
extends: ['next', 'next/typescript'],
19+
settings: {
20+
next: {
21+
rootDir: 'renderer/',
22+
},
23+
},
24+
}),
925
eslint.configs.recommended,
1026
...tseslint.configs.recommended,
27+
{
28+
files: [
29+
'forge.config.js',
30+
'renderer/tailwind.config.js',
31+
'renderer/postcss.config.js',
32+
'renderer/next.config.js',
33+
],
34+
rules: {
35+
'@typescript-eslint/no-require-imports': 'off',
36+
},
37+
},
1138
]
39+
40+
export default eslintConfig

hostd/forge.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-var-requires */
2-
/* eslint-disable no-undef */
31
const { default: MakerDeb } = require('@electron-forge/maker-deb')
42
const { default: MakerDMG } = require('@electron-forge/maker-dmg')
53
const { default: MakerRpm } = require('@electron-forge/maker-rpm')
@@ -65,7 +63,6 @@ const makerRPM = new MakerRpm(
6563
// > createPackage method of the RedhatInstaller class to add this argument. This is a dirty hack
6664
// > and will most likely break in the future... Does anyone have a better solution?
6765
if (makerRPM.isSupportedOnCurrentPlatform()) {
68-
// eslint-disable-next-line @typescript-eslint/naming-convention
6966
const { Installer: RedhatInstaller } = require('electron-installer-redhat')
7067
const { spawn } = require('@malept/cross-spawn-promise')
7168
RedhatInstaller.prototype.createPackage = async function () {

hostd/main/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function getIsConfigured(): boolean {
6060
cfg.directory !== '' &&
6161
cfg.http.password !== ''
6262
)
63-
} catch (err) {
63+
} catch {
6464
return false
6565
}
6666
}
@@ -108,7 +108,7 @@ export function getConfig(): Config {
108108
try {
109109
const fileContents = fs.readFileSync(configFilePath, 'utf8')
110110
return yaml.load(fileContents) as Config
111-
} catch (e) {
111+
} catch {
112112
return defaultConfig
113113
}
114114
}

hostd/main/daemon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export async function getInstalledVersion(): Promise<string> {
125125
try {
126126
const version = await fs.promises.readFile(versionFilePath, 'utf8')
127127
return version
128-
} catch (e) {
128+
} catch {
129129
return 'error: no daemon'
130130
}
131131
}

0 commit comments

Comments
 (0)