Skip to content

Commit 3763af9

Browse files
committed
feat: Support Node 22, drop Node < 18, pin dev-dependencies
1 parent 3dddab9 commit 3763af9

File tree

4 files changed

+25
-25
lines changed

4 files changed

+25
-25
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
node-version: ['14', '16', '18', '20']
14+
node-version: ['18', '20', '22']
1515
steps:
1616
- uses: actions/checkout@v4
1717
- name: Use Node.js ${{ matrix.node-version }}

.github/workflows/prettier.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
node-version: ['20']
14+
node-version: ['22']
1515
steps:
1616
- uses: actions/checkout@v4
1717
- name: Use Node.js ${{ matrix.node-version }}

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
"url": "https://github.com/buffcode/ntp-packet-parser.git"
2424
},
2525
"devDependencies": {
26-
"@types/mocha": "^10.0.0",
27-
"@types/node": "^14 || ^16 || ^18 || ^20",
28-
"mocha": "^11.1.0",
29-
"prettier": "^3.0.2",
30-
"ts-mocha": "^11.1.0",
31-
"ts-node": "^10.4.0",
32-
"typescript": "^5.1.6"
26+
"@types/mocha": "10.0.10",
27+
"@types/node": "^18 || ^20 || ^22",
28+
"mocha": "11.1.0",
29+
"prettier": "3.5.3",
30+
"ts-mocha": "11.1.0",
31+
"ts-node": "10.9.2",
32+
"typescript": "5.8.3"
3333
},
3434
"files": [
3535
"dist",
@@ -43,6 +43,6 @@
4343
"trailingComma": "es5"
4444
},
4545
"engines": {
46-
"node": "^14 || ^16 || ^18 || ^20"
46+
"node": "^18 || ^20 || ^22"
4747
}
4848
}

yarn.lock

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,17 @@
6464
resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.2.tgz#423c77877d0569db20e1fc80885ac4118314010e"
6565
integrity sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==
6666

67-
"@types/mocha@^10.0.0":
67+
"@types/mocha@10.0.10":
6868
version "10.0.10"
6969
resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-10.0.10.tgz#91f62905e8d23cbd66225312f239454a23bebfa0"
7070
integrity sha512-xPyYSz1cMPnJQhl0CLMH68j3gprKZaTjG3s5Vi+fDgx+uhG9NOXwbVt52eFS8ECyXhyKcjDLCBEqBExKuiZb7Q==
7171

72-
"@types/node@^14 || ^16 || ^18 || ^20":
73-
version "20.11.16"
74-
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.16.tgz#4411f79411514eb8e2926f036c86c9f0e4ec6708"
75-
integrity sha512-gKb0enTmRCzXSSUJDq6/sPcqrfCv2mkkG6Jt/clpn5eiCbKTY+SgZUxo+p8ZKMof5dCp9vHQUAB7wOUTod22wQ==
72+
"@types/node@^18 || ^20 || ^22":
73+
version "22.14.0"
74+
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.14.0.tgz#d3bfa3936fef0dbacd79ea3eb17d521c628bb47e"
75+
integrity sha512-Kmpl+z84ILoG+3T/zQFyAJsU6EPTmOCj8/2+83fSN6djd6I4o7uOuGIH6vq3PrjY5BGitSbFuMN18j3iknubbA==
7676
dependencies:
77-
undici-types "~5.26.4"
77+
undici-types "~6.21.0"
7878

7979
acorn-walk@^8.1.1:
8080
version "8.2.0"
@@ -441,7 +441,7 @@ minimatch@^9.0.4:
441441
resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.1.2.tgz#93a9626ce5e5e66bd4db86849e7515e92340a707"
442442
integrity sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==
443443

444-
mocha@^11.1.0:
444+
mocha@11.1.0:
445445
version "11.1.0"
446446
resolved "https://registry.yarnpkg.com/mocha/-/mocha-11.1.0.tgz#20d7c6ac4d6d6bcb60a8aa47971fca74c65c3c66"
447447
integrity sha512-8uJR5RTC2NgpY3GrYcgpZrsEd9zKbPDpob1RezyR2upGHRQtHWofmzTMzTMSV6dru3tj5Ukt0+Vnq1qhFEEwAg==
@@ -524,7 +524,7 @@ picomatch@^2.0.4, picomatch@^2.2.1:
524524
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
525525
integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
526526

527-
prettier@^3.0.2:
527+
prettier@3.5.3:
528528
version "3.5.3"
529529
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.5.3.tgz#4fc2ce0d657e7a02e602549f053b239cb7dfe1b5"
530530
integrity sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==
@@ -651,12 +651,12 @@ to-regex-range@^5.0.1:
651651
dependencies:
652652
is-number "^7.0.0"
653653

654-
ts-mocha@^11.1.0:
654+
ts-mocha@11.1.0:
655655
version "11.1.0"
656656
resolved "https://registry.yarnpkg.com/ts-mocha/-/ts-mocha-11.1.0.tgz#d8336ec0146bd6f36cca2555f4cfc7df85bd1586"
657657
integrity sha512-yT7FfzNRCu8ZKkYvAOiH01xNma/vLq6Vit7yINKYFNVP8e5UyrYXSOMIipERTpzVKJQ4Qcos5bQo1tNERNZevQ==
658658

659-
ts-node@^10.4.0:
659+
ts-node@10.9.2:
660660
version "10.9.2"
661661
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.2.tgz#70f021c9e185bccdca820e26dc413805c101c71f"
662662
integrity sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==
@@ -675,15 +675,15 @@ ts-node@^10.4.0:
675675
v8-compile-cache-lib "^3.0.1"
676676
yn "3.1.1"
677677

678-
typescript@^5.1.6:
678+
typescript@5.8.3:
679679
version "5.8.3"
680680
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.8.3.tgz#92f8a3e5e3cf497356f4178c34cd65a7f5e8440e"
681681
integrity sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==
682682

683-
undici-types@~5.26.4:
684-
version "5.26.5"
685-
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
686-
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
683+
undici-types@~6.21.0:
684+
version "6.21.0"
685+
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.21.0.tgz#691d00af3909be93a7faa13be61b3a5b50ef12cb"
686+
integrity sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==
687687

688688
v8-compile-cache-lib@^3.0.1:
689689
version "3.0.1"

0 commit comments

Comments
 (0)