From 902c6f4ca7699d00d2d0439fe87e8dd4fb19d2d2 Mon Sep 17 00:00:00 2001 From: Santiago Traversa Date: Mon, 23 Dec 2024 11:17:20 -0300 Subject: [PATCH] fix: make it work with NodeJS v22.x --- .github/workflows/ci-build.yml | 3 +++ src/Bot.mjs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index fe9b2731..a0cae892 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -17,6 +17,7 @@ jobs: matrix: node-version: - '20.x' + - '22.x' steps: - name: Checkout uses: actions/checkout@v4 @@ -41,6 +42,7 @@ jobs: matrix: node-version: - '20.x' + - '22.x' steps: - name: Checkout uses: actions/checkout@v4 @@ -61,6 +63,7 @@ jobs: matrix: node-version: - '20.x' + - '22.x' if: github.ref == 'refs/heads/main' && ${{ success() }} steps: - name: Checkout diff --git a/src/Bot.mjs b/src/Bot.mjs index 9f7c571c..d917e260 100644 --- a/src/Bot.mjs +++ b/src/Bot.mjs @@ -2,7 +2,7 @@ import { Adapter, EnterMessage, LeaveMessage } from 'hubot' import { SlackTextMessage, ReactionMessage, FileSharedMessage } from './Message.mjs' import { SocketModeClient } from '@slack/socket-mode' import { WebClient } from '@slack/web-api' -import pkg from '../package.json' assert { type: 'json' } +import pkg from '../package.json' with { type: 'json' } class SlackClient { static CONVERSATION_CACHE_TTL_MS =