Skip to content

Commit 141f004

Browse files
authored
Merge pull request #28 from hildjj/update-dependencies
Update dependencies. BREAKING: now requires node v20+.
2 parents f2876fa + 4bc16c6 commit 141f004

File tree

5 files changed

+1560
-740
lines changed

5 files changed

+1560
-740
lines changed

.github/workflows/node.js.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
build:
1212
strategy:
1313
matrix:
14-
node-version: [18, 20, 22, 23]
14+
node-version: [20, 22, 23]
1515
platform: [ubuntu-latest]
1616

1717
runs-on: ${{ matrix.platform }}
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/checkout@v4
2121
with:
2222
submodules: true
23-
- run: corepack enable
23+
- uses: pnpm/action-setup@v4
2424
- name: Use Node.js ${{ matrix.node-version }}
2525
uses: actions/setup-node@v4
2626
with:

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
id-token: write
1616
steps:
1717
- uses: actions/checkout@v4
18-
- run: corepack enable
18+
- uses: pnpm/action-setup@v4
1919
- uses: actions/setup-node@v4
2020
with:
21-
node-version: '22.x'
21+
node-version: 22
2222
registry-url: 'https://registry.npmjs.org'
2323
cache: pnpm
2424
- run: pnpm i -r

lib/wsd.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ class WSD {
6666
});
6767

6868
const u = new URL('index.php', root);
69-
// eslint-disable-next-line n/no-unsupported-features/node-builtins
7069
const res = await fetch(u, {
7170
method: 'POST',
7271
body: query,
@@ -105,7 +104,6 @@ class WSD {
105104
// eslint-disable-next-line max-params
106105
static async diagram(description, style, format, apikey, root) {
107106
const u = await WSD.diagramURL(description, style, format, apikey, root);
108-
// eslint-disable-next-line n/no-unsupported-features/node-builtins
109107
const res = await fetch(u);
110108
const ct = res.headers.get('content-type') ?? 'text/plain';
111109
const buf = await res.arrayBuffer();

package.json

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -34,33 +34,22 @@
3434
"release": "npm version patch && git push --follow-tags && npm publish"
3535
},
3636
"devDependencies": {
37-
"@cto.af/eslint-config": "^5.1.1",
38-
"@types/node": "^22.10.2",
39-
"ava": "^6.2.0",
37+
"@cto.af/eslint-config": "^6.0.3",
38+
"@eslint/markdown": "6.4.0",
39+
"@types/node": "^22.15.17",
40+
"ava": "^6.3.0",
4041
"c8": "10.1.3",
41-
"eslint": "^9.16.0",
42-
"eslint-plugin-jsdoc": "^50.6.1",
43-
"eslint-plugin-markdown": "^5.1.0",
44-
"eslint-plugin-node": "^11.1.0",
45-
"nock": "14.0.0-beta.19",
42+
"eslint": "^9.26.0",
43+
"eslint-plugin-jsdoc": "^50.6.11",
44+
"nock": "14.0.4",
4645
"tmp-promise": "^3.0.3",
47-
"typescript": "5.7.2"
46+
"typescript": "5.8.3"
4847
},
4948
"dependencies": {
5049
"yargs": "^17.7.2"
5150
},
52-
"pnpm": {
53-
"overrides": {
54-
"micromatch": "^4.0.8",
55-
"cross-spawn": "^7.0.6"
56-
}
57-
},
58-
"overrides": {
59-
"micromatch": "^4.0.8",
60-
"cross-spawn": "^7.0.6"
61-
},
62-
"packageManager": "[email protected]",
51+
"packageManager": "[email protected]",
6352
"engines": {
64-
"node": ">=18.8"
53+
"node": ">=20"
6554
}
6655
}

0 commit comments

Comments
 (0)