Skip to content

Commit f454b45

Browse files
committed
pkg: update deps and ci.
1 parent c218f13 commit f454b45

File tree

5 files changed

+86
-174
lines changed

5 files changed

+86
-174
lines changed

.eslintrc.json

Lines changed: 0 additions & 153 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212

1313
- name: Setup
14-
uses: actions/setup-node@v3
14+
uses: actions/setup-node@v4
1515
with:
16-
node-version: 20.x
16+
node-version: 24.x
1717

1818
- name: Install tools
1919
run: npm install --location=global bslint
@@ -30,13 +30,13 @@ jobs:
3030
strategy:
3131
matrix:
3232
os: [ubuntu-latest]
33-
node: [16.x, 18.x, 20.x]
33+
node: [16.x, 18.x, 20.x, 22.x, 24.x]
3434

3535
steps:
36-
- uses: actions/checkout@v3
36+
- uses: actions/checkout@v4
3737

3838
- name: Setup Node.js
39-
uses: actions/setup-node@v3
39+
uses: actions/setup-node@v4
4040
with:
4141
node-version: ${{ matrix.node }}
4242

eslint.config.cjs

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
'use strict';
2+
3+
const rc = require('bslintrc');
4+
5+
module.exports = [
6+
rc.configs.recommended,
7+
rc.configs.bcoin,
8+
{
9+
languageOptions: {
10+
globals: {
11+
...rc.globals.node
12+
},
13+
ecmaVersion: 'latest'
14+
}
15+
},
16+
{
17+
files: [
18+
'bin/cli',
19+
'bin/hsd',
20+
'bin/node',
21+
'bin/hs-seeder',
22+
'bin/node',
23+
'bin/_seeder',
24+
'bin/spvnode',
25+
'bin/wallet',
26+
'bin/hsd-cli',
27+
'bin/hsw-cli',
28+
'etc/genesis',
29+
'**/*.js',
30+
'*.js'
31+
],
32+
languageOptions: {
33+
sourceType: 'commonjs'
34+
}
35+
},
36+
{
37+
files: ['test/{,**/}*.{js,cjs,mjs}'],
38+
languageOptions: {
39+
globals: {
40+
...rc.globals.mocha,
41+
register: 'readable'
42+
}
43+
},
44+
rules: {
45+
'max-len': 'off',
46+
'prefer-arrow-callback': 'off',
47+
'no-return-assign': 'off'
48+
}
49+
}
50+
];

package-lock.json

Lines changed: 26 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@
2121
"test": "bmocha -S 'test/*-test.js'"
2222
},
2323
"dependencies": {
24-
"bcrypto": "~5.4.0",
25-
"bsert": "~0.0.12",
24+
"bcrypto": "~5.5.2",
25+
"bsert": "~0.0.13",
2626
"loady": "~0.0.5"
2727
},
2828
"devDependencies": {
29-
"bmocha": "^2.1.8"
29+
"bmocha": "^2.2.1",
30+
"bslintrc": "^0.0.3"
3031
},
3132
"engines": {
3233
"node": ">=8.0.0"

0 commit comments

Comments
 (0)