@hubot-friends/hubot-slack 3.0.2 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,14 +15,16 @@ jobs:
15
15
  runs-on: ubuntu-latest
16
16
  strategy:
17
17
  matrix:
18
- node-version: ['lts/*']
18
+ node-version:
19
+ - '20.x'
20
+ - '22.x'
19
21
  steps:
20
22
  - name: Checkout
21
- uses: actions/checkout@v3
23
+ uses: actions/checkout@v4
22
24
  with:
23
25
  fetch-depth: 0
24
26
  - name: Setup Node.js ${{ matrix.node-version }}
25
- uses: actions/setup-node@v3
27
+ uses: actions/setup-node@v4
26
28
  with:
27
29
  node-version: ${{ matrix.node-version }}
28
30
  cache: 'npm'
@@ -38,14 +40,16 @@ jobs:
38
40
  needs: build
39
41
  strategy:
40
42
  matrix:
41
- node-version: ['lts/*']
43
+ node-version:
44
+ - '20.x'
45
+ - '22.x'
42
46
  steps:
43
47
  - name: Checkout
44
- uses: actions/checkout@v3
48
+ uses: actions/checkout@v4
45
49
  with:
46
50
  fetch-depth: 0
47
51
  - name: Setup Node.js ${{ matrix.node-version }}
48
- uses: actions/setup-node@v3
52
+ uses: actions/setup-node@v4
49
53
  with:
50
54
  node-version: ${{ matrix.node-version }}
51
55
  cache: 'npm'
@@ -57,13 +61,15 @@ jobs:
57
61
  runs-on: ubuntu-latest
58
62
  strategy:
59
63
  matrix:
60
- node-version: ['lts/*']
64
+ node-version:
65
+ - '20.x'
66
+ - '22.x'
61
67
  if: github.ref == 'refs/heads/main' && ${{ success() }}
62
68
  steps:
63
69
  - name: Checkout
64
- uses: actions/checkout@v3
70
+ uses: actions/checkout@v4
65
71
  - name: Set up Node.js
66
- uses: actions/setup-node@v3
72
+ uses: actions/setup-node@v4
67
73
  with:
68
74
  node-version: ${{ matrix.node-version }}
69
75
  cache: 'npm'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubot-friends/hubot-slack",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "A new Slack adapter for Hubot",
5
5
  "homepage": "https://github.com/hubot-friends/hubot-slack#readme",
6
6
  "main": "./index.mjs",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@slack/socket-mode": "^1.3.2",
27
- "@slack/web-api": "^6.9.1"
27
+ "@slack/web-api": "^6.11.2"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "hubot": ">= 11"
package/src/Bot.mjs CHANGED
@@ -2,7 +2,7 @@ import { Adapter, EnterMessage, LeaveMessage } from 'hubot'
2
2
  import { SlackTextMessage, ReactionMessage, FileSharedMessage } from './Message.mjs'
3
3
  import { SocketModeClient } from '@slack/socket-mode'
4
4
  import { WebClient } from '@slack/web-api'
5
- import pkg from '../package.json' assert { type: 'json' }
5
+ import pkg from '../package.json' with { type: 'json' }
6
6
 
7
7
  class SlackClient {
8
8
  static CONVERSATION_CACHE_TTL_MS =
@@ -472,7 +472,7 @@ class SlackBot extends Adapter {
472
472
  // Hubot expects all user objects to have a room property that is used in the envelope for the message after it
473
473
  // is received
474
474
  from.room = channel ?? '';
475
- from.name = from?.profile?.display_name ?? null;
475
+ from.name = from?.name ?? null;
476
476
 
477
477
  // add the bot id to the message if it's a direct message
478
478
  message.body.event.text = this.addBotIdToMessage(message.body.event);