Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Aug 13, 2024

This PR contains the following updates:

Package Change Age Confidence
@slack/bolt (source) 3.19.0 -> 3.22.0 age confidence

Release Notes

slackapi/bolt-js (@​slack/bolt)

v3.22.0

Compare Source

What's new

This release adds support for the assistant.threads.* API methods introduced in @slack/[email protected] 🤖 as well as improvements to documentation at the new https://tools.slack.dev/bolt-js site and patches to dependencies 🔒

Example usage

More details about these endpoints can be discovered in the documentation, and listeners can be added to code to respond to incoming events like so:

app.event('assistant_thread_started', async ({ client, event, logger }) => {
  logger.info('A new thread started');
  logger.debug(event);
  const now = new Date();
  const title = await client.assistant.threads.setTitle({
    title: `Chats from ${now.toISOString()}`,
    channel_id: event.assistant_thread.channel_id,
    thread_ts: event.assistant_thread.thread_ts,
  });
  logger.debug(title);
  const suggestions = await client.assistant.threads.setSuggestedPrompts({
    channel_id: event.assistant_thread.channel_id,
    thread_ts: event.assistant_thread.thread_ts,
    title: 'Ask the computer for answers',
    prompts: [
      {
        title: 'Find the time',
        message: `What happens at ${Math.floor(now.getTime() / 1000)}`,
      },
    ],
  });
  logger.debug(suggestions);
});

app.event('assistant_thread_context_changed', async ({ client, event, logger }) => {
  logger.info('The channel of focus changed');
  logger.debug(event);
  const response = client.chat.postMessage({
    thread_ts: event.assistant_thread.thread_ts,
    channel: event.assistant_thread.channel_id,
    text: `Now visiting <#${event.assistant_thread.context.channel_id}>`,
  });
  logger.debug(response);
});

app.message(async ({ client, message, logger }) => {
  logger.info('A new message was received');
  logger.debug(message);
  if (message.subtype === 'message_changed' || message.subtype === 'message_deleted') {
    return;
  }
  const status = await client.assistant.threads.setStatus({
    channel_id: message.channel,
    thread_ts: message.thread_ts,
    status: 'is thinking...',
  });
  logger.debug(status);
  /**
    * Actual response generation could happen here!
    */
  setTimeout(async () => {
    const response = await client.chat.postMessage({
      channel: message.channel,
      thread_ts: message.thread_ts,
      text: 'How insightful!',
    });
    logger.debug(response);
  }, 3000);
});
Changes
📚 Documentation
📦 Dependencies

🎉 New contributors

Full Changelog: https://github.com/slackapi/bolt-js/compare/@slack/[email protected]...@​slack/[email protected]

v3.21.4

Compare Source

What's Changed

Full Changelog: https://github.com/slackapi/bolt-js/compare/@slack/[email protected]...@​slack/[email protected]

v3.21.3

Compare Source

What's Changed

Woops! We (coughfilmajcough) removed the EnvelopedEvent export in a recent change. We are adding it back in in this patch release. Please accept our sincere apologies for this temporary breaking change in bolt 3.21.2.

Changelog

New Contributors

Full Changelog: https://github.com/slackapi/bolt-js/compare/@slack/[email protected]...@​slack/[email protected]

v3.21.2

Compare Source

What's Changed

The main change in this patch release is creating an npm release for the change in #​2223, where exported event payload types were moved from bolt-js to @slack/types. If you see errors compiling your TypeScript-based application that look like:

Module './types' has already exported a member

.. then upgrading to this release should address the issue (see #​2233 and #​2234 for issue details).

Full Changelog: https://github.com/slackapi/bolt-js/compare/@slack/[email protected]...@​slack/[email protected]

v3.21.1

Compare Source

What's Changed

This patch release brings improvements to documentation and sureness in our CI, as well as security updates to certain @slack packages - see CVE-2024-39338 and [email protected] for more details!

Changes

📚 Documentation
🔒 Security
🧰 Maintenance
  • ci: add bolt-ts-custom-function-template to list of test samples - Thanks @​filmaj! #​2205

Full Changelog: https://github.com/slackapi/bolt-js/compare/@slack/[email protected]...@​slack/[email protected]

v3.21.0

Compare Source

What's Changed

Bolt-JS now supports Custom Steps! That's right, your trusty Bolt app now let's you expose Custom Steps in Bolt, allowing you to provide steps for use in Workflow Builder.

You can now use the new function() method to register handlers for the function_executed event. Check out our API docs on the topic to get started.

Changelog

New Contributors

Full Changelog: https://github.com/slackapi/bolt-js/compare/@slack/[email protected]...@​slack/[email protected]

v3.20.0

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/slackapi/bolt-js/compare/@slack/[email protected]...@​slack/[email protected]


Configuration

📅 Schedule: Branch creation - "after 7am and before 11am every weekday" in timezone Europe/London, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from a team as a code owner August 13, 2024 07:32
@hmcts-platform-operations

Plan Result (cft_ptl)

Plan: 0 to add, 1 to change, 0 to destroy.
  • Update
    • azurerm_user_assigned_identity.this
Change Result (Click me)
  # azurerm_user_assigned_identity.this will be updated in-place
  ~ resource "azurerm_user_assigned_identity" "this" {
        id                  = "/subscriptions/1baf5470-1c3e-40d3-a6f7-74bfbce4b348/resourceGroups/cft-alerts-slack-ptl/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cft-alerts-slack-ptl"
        name                = "cft-alerts-slack-ptl"
      ~ tags                = {
          - "application"  = "core" -> null
          - "builtFrom"    = "hmcts/azure-alert-to-slack-function" -> null
          - "businessArea" = "CFT" -> null
          - "environment"  = "production" -> null
        }
        # (5 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

@hmcts-platform-operations

Plan Result (sds_ptl)

Plan: 0 to add, 1 to change, 0 to destroy.
  • Update
    • azurerm_user_assigned_identity.this
Change Result (Click me)
  # azurerm_user_assigned_identity.this will be updated in-place
  ~ resource "azurerm_user_assigned_identity" "this" {
        id                  = "/subscriptions/6c4d2513-a873-41b4-afdd-b05a33206631/resourceGroups/sds-alerts-slack-ptl/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sds-alerts-slack-ptl"
        name                = "sds-alerts-slack-ptl"
      ~ tags                = {
          - "application"  = "core" -> null
          - "builtFrom"    = "hmcts/azure-alert-to-slack-function" -> null
          - "businessArea" = "Cross-Cutting" -> null
          - "environment"  = "production" -> null
        }
        # (5 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

@renovate renovate bot changed the title Update dependency @slack/bolt to v3.20.0 Update dependency @slack/bolt to v3.21.0 Aug 14, 2024
@renovate renovate bot force-pushed the renovate/slack-bolt-3.x-lockfile branch from 4ad9cbd to 77b2435 Compare August 14, 2024 19:15
@renovate renovate bot changed the title Update dependency @slack/bolt to v3.21.0 Update dependency @slack/bolt to v3.21.1 Aug 16, 2024
@renovate renovate bot force-pushed the renovate/slack-bolt-3.x-lockfile branch from 77b2435 to b1a53d1 Compare August 16, 2024 04:56
@renovate renovate bot force-pushed the renovate/slack-bolt-3.x-lockfile branch from b1a53d1 to d32e8a9 Compare August 28, 2024 07:54
@renovate renovate bot changed the title Update dependency @slack/bolt to v3.21.1 Update dependency @slack/bolt to v3.21.2 Sep 5, 2024
@renovate renovate bot force-pushed the renovate/slack-bolt-3.x-lockfile branch from d32e8a9 to 3f0abfa Compare September 5, 2024 17:08
@renovate renovate bot changed the title Update dependency @slack/bolt to v3.21.2 Update dependency @slack/bolt to v3.21.3 Sep 11, 2024
@renovate renovate bot force-pushed the renovate/slack-bolt-3.x-lockfile branch from 3f0abfa to 56aac4e Compare September 11, 2024 13:36
@renovate renovate bot changed the title Update dependency @slack/bolt to v3.21.3 Update dependency @slack/bolt to v3.21.4 Sep 12, 2024
@renovate renovate bot force-pushed the renovate/slack-bolt-3.x-lockfile branch from 56aac4e to 919c3e2 Compare September 12, 2024 01:43
@renovate renovate bot changed the title Update dependency @slack/bolt to v3.21.4 Update dependency @slack/bolt to v3.22.0 Sep 27, 2024
@renovate renovate bot force-pushed the renovate/slack-bolt-3.x-lockfile branch from 919c3e2 to 7c24bbd Compare September 27, 2024 22:28
@renovate renovate bot force-pushed the renovate/slack-bolt-3.x-lockfile branch from 7c24bbd to 6d6f724 Compare October 9, 2024 11:30
@renovate renovate bot force-pushed the renovate/slack-bolt-3.x-lockfile branch from 6d6f724 to 91b98f1 Compare December 2, 2024 03:25
@renovate renovate bot force-pushed the renovate/slack-bolt-3.x-lockfile branch from 91b98f1 to 2e3be12 Compare January 23, 2025 19:50
@renovate renovate bot force-pushed the renovate/slack-bolt-3.x-lockfile branch from 2e3be12 to 5e2a8d2 Compare February 9, 2025 15:07
@renovate renovate bot force-pushed the renovate/slack-bolt-3.x-lockfile branch from 5e2a8d2 to 30082d2 Compare March 3, 2025 13:24
@renovate renovate bot force-pushed the renovate/slack-bolt-3.x-lockfile branch from 30082d2 to b8a067f Compare March 11, 2025 09:51
@renovate renovate bot force-pushed the renovate/slack-bolt-3.x-lockfile branch from b8a067f to e821bf2 Compare March 13, 2025 17:29
@renovate renovate bot force-pushed the renovate/slack-bolt-3.x-lockfile branch from e821bf2 to bbd1a40 Compare April 5, 2025 20:19
@renovate renovate bot force-pushed the renovate/slack-bolt-3.x-lockfile branch from bbd1a40 to 6296759 Compare April 22, 2025 09:19
@hmcts-platform-operations
Copy link

hmcts-platform-operations commented Apr 22, 2025

Plan Result (cft_ptl - TerraformPlanApply)

Plan: 0 to add, 1 to change, 0 to destroy.
  • Update
    • azurerm_user_assigned_identity.this
Change Result (Click me)
  # azurerm_user_assigned_identity.this will be updated in-place
  ~ resource "azurerm_user_assigned_identity" "this" {
        id                  = "/subscriptions/1baf5470-1c3e-40d3-a6f7-74bfbce4b348/resourceGroups/cft-alerts-slack-ptl/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cft-alerts-slack-ptl"
        name                = "cft-alerts-slack-ptl"
      ~ tags                = {
          - "application"  = "core" -> null
          - "builtFrom"    = "hmcts/azure-alert-to-slack-function" -> null
          - "businessArea" = "CFT" -> null
          - "environment"  = "production" -> null
        }
        # (5 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

@hmcts-platform-operations
Copy link

hmcts-platform-operations commented Apr 22, 2025

Plan Result (sds_ptl - TerraformPlanApply)

Plan: 0 to add, 1 to change, 0 to destroy.
  • Update
    • azurerm_user_assigned_identity.this
Change Result (Click me)
  # azurerm_user_assigned_identity.this will be updated in-place
  ~ resource "azurerm_user_assigned_identity" "this" {
        id                  = "/subscriptions/6c4d2513-a873-41b4-afdd-b05a33206631/resourceGroups/sds-alerts-slack-ptl/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sds-alerts-slack-ptl"
        name                = "sds-alerts-slack-ptl"
      ~ tags                = {
          - "application"  = "core" -> null
          - "builtFrom"    = "hmcts/azure-alert-to-slack-function" -> null
          - "businessArea" = "Cross-Cutting" -> null
          - "environment"  = "production" -> null
        }
        # (5 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

@renovate renovate bot force-pushed the renovate/slack-bolt-3.x-lockfile branch 2 times, most recently from c3f56af to 71e3498 Compare April 22, 2025 11:03
@renovate renovate bot force-pushed the renovate/slack-bolt-3.x-lockfile branch from 71e3498 to 7fb0e7c Compare May 19, 2025 15:45
@renovate renovate bot force-pushed the renovate/slack-bolt-3.x-lockfile branch from 7fb0e7c to 604777b Compare June 22, 2025 10:56
@hmcts-platform-operations
Copy link

hmcts-platform-operations commented Jun 22, 2025

Plan Result (924: sds_ptl - TerraformPlanApply)

⚠️ Resource Deletion will happen

This plan contains resource delete operation. Please check the plan result very carefully!

Plan: 1 to add, 3 to change, 1 to destroy.
  • Update
    • azurerm_monitor_action_group.action_group
    • azurerm_user_assigned_identity.this
    • azurerm_windows_function_app.this
  • Replace
    • module.application_insights.azurerm_monitor_activity_log_alert.main[0]
Change Result (Click me)
  # data.azurerm_function_app_host_keys.host_keys will be read during apply
  # (depends on a resource or a module with changes pending)
 <= data "azurerm_function_app_host_keys" "host_keys" {
      + blobs_extension_key             = (sensitive value)
      + default_function_key            = (sensitive value)
      + durabletask_extension_key       = (sensitive value)
      + event_grid_extension_config_key = (sensitive value)
      + event_grid_extension_key        = (sensitive value)
      + id                              = (known after apply)
      + name                            = "sds-alerts-slack-ptl"
      + primary_key                     = (sensitive value)
      + resource_group_name             = "sds-alerts-slack-ptl"
      + signalr_extension_key           = (sensitive value)
      + webpubsub_extension_key         = (sensitive value)
    }

  # azurerm_monitor_action_group.action_group will be updated in-place
  ~ resource "azurerm_monitor_action_group" "action_group" {
        id                  = "/subscriptions/6c4d2513-a873-41b4-afdd-b05a33206631/resourceGroups/sds-alerts-slack-ptl/providers/Microsoft.Insights/actionGroups/sds-alerts-slack-warning-alerts"
        name                = "sds-alerts-slack-warning-alerts"
        tags                = {
            "application"  = "core"
            "builtFrom"    = "hmcts/azure-alert-to-slack-function"
            "businessArea" = "Cross-Cutting"
            "criticality"  = "High"
            "environment"  = "production"
        }
        # (4 unchanged attributes hidden)

      ~ azure_function_receiver {
          ~ http_trigger_url         = (sensitive value)
            name                     = "slack-alerts"
            # (3 unchanged attributes hidden)
        }
    }

  # azurerm_user_assigned_identity.this will be updated in-place
  ~ resource "azurerm_user_assigned_identity" "this" {
        id                  = "/subscriptions/6c4d2513-a873-41b4-afdd-b05a33206631/resourceGroups/sds-alerts-slack-ptl/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sds-alerts-slack-ptl"
        name                = "sds-alerts-slack-ptl"
      ~ tags                = {
          - "application"  = "core" -> null
          - "builtFrom"    = "hmcts/azure-alert-to-slack-function" -> null
          - "businessArea" = "Cross-Cutting" -> null
          - "environment"  = "production" -> null
        }
        # (5 unchanged attributes hidden)
    }

  # azurerm_windows_function_app.this will be updated in-place
  ~ resource "azurerm_windows_function_app" "this" {
      # Warning: this attribute value will no longer be marked as sensitive
      # after applying this change. The value is unchanged.
      ~ app_settings                                   = (sensitive value)
        id                                             = "/subscriptions/6c4d2513-a873-41b4-afdd-b05a33206631/resourceGroups/sds-alerts-slack-ptl/providers/Microsoft.Web/sites/sds-alerts-slack-ptl"
        name                                           = "sds-alerts-slack-ptl"
        tags                                           = {
            "application"  = "core"
            "builtFrom"    = "hmcts/azure-alert-to-slack-function"
            "businessArea" = "Cross-Cutting"
            "criticality"  = "High"
            "environment"  = "production"
        }
        # (33 unchanged attributes hidden)

        # (3 unchanged blocks hidden)
    }

  # module.application_insights.azurerm_monitor_activity_log_alert.main[0] must be replaced
-/+ resource "azurerm_monitor_activity_log_alert" "main" {
      ~ id                  = "/subscriptions/6c4d2513-a873-41b4-afdd-b05a33206631/resourceGroups/sds-alerts-slack-ptl/providers/Microsoft.Insights/activityLogAlerts/Application Insights daily cap reached - sds-alerts-ptl" -> (known after apply)
      ~ name                = "Application Insights daily cap reached - sds-alerts-ptl" -> "Application-Insights-daily-cap-reached-sds-alerts-ptl" # forces replacement
        tags                = {
            "application"  = "core"
            "builtFrom"    = "hmcts/azure-alert-to-slack-function"
            "businessArea" = "Cross-Cutting"
            "criticality"  = "High"
            "environment"  = "production"
        }
        # (5 unchanged attributes hidden)

      ~ criteria {
          - levels                  = [] -> null
          - resource_groups         = [] -> null
          - resource_ids            = [] -> null
          - resource_providers      = [] -> null
          - resource_types          = [] -> null
          - statuses                = [] -> null
          - sub_statuses            = [] -> null
            # (13 unchanged attributes hidden)

          ~ resource_health (known after apply)

          ~ service_health (known after apply)
        }

        # (1 unchanged block hidden)
    }

Plan: 1 to add, 3 to change, 1 to destroy.

@hmcts-platform-operations
Copy link

hmcts-platform-operations commented Jun 22, 2025

Plan Result (924: cft_ptl - TerraformPlanApply)

⚠️ Resource Deletion will happen

This plan contains resource delete operation. Please check the plan result very carefully!

Plan: 1 to add, 3 to change, 1 to destroy.
  • Update
    • azurerm_monitor_action_group.action_group
    • azurerm_user_assigned_identity.this
    • azurerm_windows_function_app.this
  • Replace
    • module.application_insights.azurerm_monitor_activity_log_alert.main[0]
Change Result (Click me)
  # data.azurerm_function_app_host_keys.host_keys will be read during apply
  # (depends on a resource or a module with changes pending)
 <= data "azurerm_function_app_host_keys" "host_keys" {
      + blobs_extension_key             = (sensitive value)
      + default_function_key            = (sensitive value)
      + durabletask_extension_key       = (sensitive value)
      + event_grid_extension_config_key = (sensitive value)
      + event_grid_extension_key        = (sensitive value)
      + id                              = (known after apply)
      + name                            = "cft-alerts-slack-ptl"
      + primary_key                     = (sensitive value)
      + resource_group_name             = "cft-alerts-slack-ptl"
      + signalr_extension_key           = (sensitive value)
      + webpubsub_extension_key         = (sensitive value)
    }

  # azurerm_monitor_action_group.action_group will be updated in-place
  ~ resource "azurerm_monitor_action_group" "action_group" {
        id                  = "/subscriptions/1baf5470-1c3e-40d3-a6f7-74bfbce4b348/resourceGroups/cft-alerts-slack-ptl/providers/Microsoft.Insights/actionGroups/cft-alerts-slack-warning-alerts"
        name                = "cft-alerts-slack-warning-alerts"
        tags                = {
            "application"  = "core"
            "builtFrom"    = "hmcts/azure-alert-to-slack-function"
            "businessArea" = "CFT"
            "criticality"  = "High"
            "environment"  = "production"
        }
        # (4 unchanged attributes hidden)

      ~ azure_function_receiver {
          ~ http_trigger_url         = (sensitive value)
            name                     = "slack-alerts"
            # (3 unchanged attributes hidden)
        }
    }

  # azurerm_user_assigned_identity.this will be updated in-place
  ~ resource "azurerm_user_assigned_identity" "this" {
        id                  = "/subscriptions/1baf5470-1c3e-40d3-a6f7-74bfbce4b348/resourceGroups/cft-alerts-slack-ptl/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cft-alerts-slack-ptl"
        name                = "cft-alerts-slack-ptl"
      ~ tags                = {
          - "application"  = "core" -> null
          - "builtFrom"    = "hmcts/azure-alert-to-slack-function" -> null
          - "businessArea" = "CFT" -> null
          - "environment"  = "production" -> null
        }
        # (5 unchanged attributes hidden)
    }

  # azurerm_windows_function_app.this will be updated in-place
  ~ resource "azurerm_windows_function_app" "this" {
      # Warning: this attribute value will no longer be marked as sensitive
      # after applying this change. The value is unchanged.
      ~ app_settings                                   = (sensitive value)
        id                                             = "/subscriptions/1baf5470-1c3e-40d3-a6f7-74bfbce4b348/resourceGroups/cft-alerts-slack-ptl/providers/Microsoft.Web/sites/cft-alerts-slack-ptl"
        name                                           = "cft-alerts-slack-ptl"
        tags                                           = {
            "application"  = "core"
            "builtFrom"    = "hmcts/azure-alert-to-slack-function"
            "businessArea" = "CFT"
            "criticality"  = "High"
            "environment"  = "production"
        }
        # (33 unchanged attributes hidden)

        # (3 unchanged blocks hidden)
    }

  # module.application_insights.azurerm_monitor_activity_log_alert.main[0] must be replaced
-/+ resource "azurerm_monitor_activity_log_alert" "main" {
      ~ id                  = "/subscriptions/1baf5470-1c3e-40d3-a6f7-74bfbce4b348/resourceGroups/cft-alerts-slack-ptl/providers/Microsoft.Insights/activityLogAlerts/Application Insights daily cap reached - cft-alerts-ptl" -> (known after apply)
      ~ name                = "Application Insights daily cap reached - cft-alerts-ptl" -> "Application-Insights-daily-cap-reached-cft-alerts-ptl" # forces replacement
        tags                = {
            "application"  = "core"
            "builtFrom"    = "hmcts/azure-alert-to-slack-function"
            "businessArea" = "CFT"
            "criticality"  = "High"
            "environment"  = "production"
        }
        # (5 unchanged attributes hidden)

      ~ criteria {
          - levels                  = [] -> null
          - resource_groups         = [] -> null
          - resource_ids            = [] -> null
          - resource_providers      = [] -> null
          - resource_types          = [] -> null
          - statuses                = [] -> null
          - sub_statuses            = [] -> null
            # (13 unchanged attributes hidden)

          ~ resource_health (known after apply)

          ~ service_health (known after apply)
        }

        # (1 unchanged block hidden)
    }

Plan: 1 to add, 3 to change, 1 to destroy.

@renovate renovate bot force-pushed the renovate/slack-bolt-3.x-lockfile branch from 05efdd3 to 7308129 Compare December 3, 2025 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant