From 98e4487330f39b2f5593cbd8eb50f4a1a27727db Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Sun, 26 Jan 2025 21:45:42 +0000 Subject: [PATCH 1/2] node 22 --- .github/workflows/ci.yml | 12 ++++++------ .github/workflows/npm-publish.yml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c18669d3..6d328e20 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,10 +12,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Use Node.js 18.x + - name: Use Node.js 22.x uses: actions/setup-node@v1.4.4 with: - node-version: 18.x + node-version: 22.x - run: npm i && npm run lint PrepareTestedVersions: @@ -25,10 +25,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Use Node.js 18.x + - name: Use Node.js 22.x uses: actions/setup-node@v1.4.4 with: - node-version: 18.x + node-version: 22.x - id: set-matrix run: | node -e " @@ -45,10 +45,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Use Node.js 18.x + - name: Use Node.js 22.x uses: actions/setup-node@v1.4.4 with: - node-version: 18.x + node-version: 22.x - name: Install Dependencies run: npm install - name: Start Tests diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index dad49563..95e11fb8 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -13,7 +13,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@master with: - node-version: 18.0.0 + node-version: 22.0.0 - id: publish uses: JS-DevTools/npm-publish@v1 with: From 3be20ad2d280fe801c89c8928cc7e458adeb17c5 Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Sun, 26 Jan 2025 22:56:58 +0100 Subject: [PATCH 2/2] Update mineflayer.test.js --- test/mineflayer.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mineflayer.test.js b/test/mineflayer.test.js index b6fb2883..459fe032 100644 --- a/test/mineflayer.test.js +++ b/test/mineflayer.test.js @@ -173,7 +173,7 @@ squid.testedVersions.forEach((testedVersion, i) => { const pos = bot.entity.position.offset(0, -1, 0).floored() // Set a dirt block below the bot so we can easily dig bot.chat(`/setblock ${pos.x} ${pos.y} ${pos.z} dirt`) - await once(bot, `blockUpdate:${pos}`, 4000) + await onceWithTimeout(bot, `blockUpdate:${pos}`, 4000) console.log('Block at', pos, bot.blockAt(pos)) const p = onceWithTimeout(bot2, 'blockUpdate', 4000, (old, now) => {