From 02945c4bd45e59054e3e32f169a509fbaf4f4085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurens=20St=C3=B6tzel?= Date: Tue, 8 Apr 2025 08:19:14 +0200 Subject: [PATCH 1/2] feat: Drop Node <18, support v22, pin dev-dependencies Fixes https://github.com/buffcode/ntp-time-sync/issues/87 --- package.json | 12 ++++++------ yarn.lock | 32 ++++++++++++++++---------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/package.json b/package.json index 2fa2056..24fee0b 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,13 @@ "description": "Fetches the current time from NTP servers and returns offset information", "main": "dist/index.js", "dependencies": { - "ntp-packet-parser": "^0.4.0" + "ntp-packet-parser": "^0.5.0" }, "devDependencies": { - "@types/node": "^14 || ^16 || ^18 || ^20", - "prettier": "^3.0.2", - "ts-node": "^10.4.0", - "typescript": "^5.0.2" + "@types/node": "^18 || ^20 || ^22", + "prettier": "3.5.3", + "ts-node": "10.9.2", + "typescript": "5.8.3" }, "scripts": { "prepublishOnly": "yarn prettier:lint && yarn build", @@ -43,6 +43,6 @@ "trailingComma": "es5" }, "engines": { - "node": "^14 || ^16 || ^18 || ^20" + "node": "^18 || ^20 || ^22" } } diff --git a/yarn.lock b/yarn.lock index 45174ee..69c799e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -47,12 +47,12 @@ resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.2.tgz#423c77877d0569db20e1fc80885ac4118314010e" integrity sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA== -"@types/node@^14 || ^16 || ^18 || ^20": - version "20.11.6" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.6.tgz#6adf4241460e28be53836529c033a41985f85b6e" - integrity sha512-+EOokTnksGVgip2PbYbr3xnR7kZigh4LbybAfBAw5BpnQ+FqBYUsvCEjYd70IXKlbohQ64mzEYmMtlWUY8q//Q== +"@types/node@^18 || ^20 || ^22": + version "22.14.0" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.14.0.tgz#d3bfa3936fef0dbacd79ea3eb17d521c628bb47e" + integrity sha512-Kmpl+z84ILoG+3T/zQFyAJsU6EPTmOCj8/2+83fSN6djd6I4o7uOuGIH6vq3PrjY5BGitSbFuMN18j3iknubbA== dependencies: - undici-types "~5.26.4" + undici-types "~6.21.0" acorn-walk@^8.1.1: version "8.2.0" @@ -84,17 +84,17 @@ make-error@^1.1.1: resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== -ntp-packet-parser@^0.4.0: - version "0.4.1" - resolved "https://registry.yarnpkg.com/ntp-packet-parser/-/ntp-packet-parser-0.4.1.tgz#5fe25943ce771375ca07980b3f895002ac965b7b" - integrity sha512-RT1bKDr0VMg+BmyTo/aKctSHGPyLRa0ITIwMabJiatZQydkcwjYPO13OqUDeyyAWV4khwjxZ4WC1XdaQD7Zpxg== +ntp-packet-parser@^0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/ntp-packet-parser/-/ntp-packet-parser-0.5.0.tgz#2eb098ec3a3a9f8d5388b066d2fa0d87ddc3a2e1" + integrity sha512-W18iLyaV17jH4inpvSu2gPep2f1Gs3oABra5NXXzG7MXhLcdHqJrJBO23bTMLkRf4HP9SWHL7FEwwtUf6R1q+g== -prettier@^3.0.2: +prettier@3.5.3: version "3.5.3" resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.5.3.tgz#4fc2ce0d657e7a02e602549f053b239cb7dfe1b5" integrity sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw== -ts-node@^10.4.0: +ts-node@10.9.2: version "10.9.2" resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.2.tgz#70f021c9e185bccdca820e26dc413805c101c71f" integrity sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ== @@ -113,15 +113,15 @@ ts-node@^10.4.0: v8-compile-cache-lib "^3.0.1" yn "3.1.1" -typescript@^5.0.2: +typescript@5.8.3: version "5.8.3" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.8.3.tgz#92f8a3e5e3cf497356f4178c34cd65a7f5e8440e" integrity sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ== -undici-types@~5.26.4: - version "5.26.5" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" - integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== +undici-types@~6.21.0: + version "6.21.0" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.21.0.tgz#691d00af3909be93a7faa13be61b3a5b50ef12cb" + integrity sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ== v8-compile-cache-lib@^3.0.1: version "3.0.1" From a5c8d383f08f8645b4ca38ed7bb3c91987297827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurens=20St=C3=B6tzel?= Date: Tue, 8 Apr 2025 08:20:17 +0200 Subject: [PATCH 2/2] ci: Update workflow NodeJS versions --- .github/workflows/nodejs.yml | 2 +- .github/workflows/prettier.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index de0e2b8..bd1b5d8 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: ['14', '16', '18', '20'] + node-version: ['18', '20', '22'] steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 489c5f9..5c5b6a6 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: ['20'] + node-version: ['22'] steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }}