Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
build:
strategy:
matrix:
node-version: [18, 20, 22, 23]
node-version: [20, 22, 23]
platform: [ubuntu-latest]

runs-on: ${{ matrix.platform }}
Expand All @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- run: corepack enable
- uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: '22.x'
node-version: 22
registry-url: 'https://registry.npmjs.org'
cache: pnpm
- run: pnpm i -r
Expand Down
2 changes: 0 additions & 2 deletions lib/wsd.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ class WSD {
});

const u = new URL('index.php', root);
// eslint-disable-next-line n/no-unsupported-features/node-builtins
const res = await fetch(u, {
method: 'POST',
body: query,
Expand Down Expand Up @@ -105,7 +104,6 @@ class WSD {
// eslint-disable-next-line max-params
static async diagram(description, style, format, apikey, root) {
const u = await WSD.diagramURL(description, style, format, apikey, root);
// eslint-disable-next-line n/no-unsupported-features/node-builtins
const res = await fetch(u);
const ct = res.headers.get('content-type') ?? 'text/plain';
const buf = await res.arrayBuffer();
Expand Down
31 changes: 10 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,33 +34,22 @@
"release": "npm version patch && git push --follow-tags && npm publish"
},
"devDependencies": {
"@cto.af/eslint-config": "^5.1.1",
"@types/node": "^22.10.2",
"ava": "^6.2.0",
"@cto.af/eslint-config": "^6.0.3",
"@eslint/markdown": "6.4.0",
"@types/node": "^22.15.17",
"ava": "^6.3.0",
"c8": "10.1.3",
"eslint": "^9.16.0",
"eslint-plugin-jsdoc": "^50.6.1",
"eslint-plugin-markdown": "^5.1.0",
"eslint-plugin-node": "^11.1.0",
"nock": "14.0.0-beta.19",
"eslint": "^9.26.0",
"eslint-plugin-jsdoc": "^50.6.11",
"nock": "14.0.4",
"tmp-promise": "^3.0.3",
"typescript": "5.7.2"
"typescript": "5.8.3"
},
"dependencies": {
"yargs": "^17.7.2"
},
"pnpm": {
"overrides": {
"micromatch": "^4.0.8",
"cross-spawn": "^7.0.6"
}
},
"overrides": {
"micromatch": "^4.0.8",
"cross-spawn": "^7.0.6"
},
"packageManager": "pnpm@9.15.0",
"packageManager": "pnpm@10.10.0",
"engines": {
"node": ">=18.8"
"node": ">=20"
}
}
Loading