Bolt: @slack/[email protected] Release

Release date:
September 8, 2022
Previous version:
@slack/[email protected] (released November 11, 2022)
Magnitude:
1,370 Diff Delta
Contributors:
5 total committers
Data confidence:
Commits:

Top Contributors in @slack/[email protected]

srajiang
jimray
filmaj
hello-ashleyintech
akmhmgc

Directory Browser for @slack/[email protected]

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

What's Changed (beta)

This beta release contains feature enhancements to Bolt JS for developers participating in the Slack Platform Beta πŸš€

Compatible with the Slack CLI tool

Create a new app from a Github sample template bash $ slack create my-app -t slack-samples/bolt-js-starter-template -b future Run your app for local development from the CLI. We take care of installation, tokens and starting the app in development mode. bash $ slack run

Configure your app in code

Declare a manifest.js or manifest.ts file import handly utility functions and define any recomposable units contained such as Functions, Workflows and Triggers. ```bash

my-app/manifest.js

const { Manifest } = require('@slack/bolt'); module.exports = Manifest({ runOnSlack: false, name: '', displayName: '', description: '', botScopes: ['chat:write'], socketModeEnabled: true, workflows: [TimeOffWorkflow], features: { appHome: { messagesTabEnabled: true, messagesTabReadOnlyEnabled: true, }, }, settings: { interactivity: { is_enabled: true, }, org_deploy_enabled: false, }, });


### **Compose Custom Function handling logic via a `SlackFunction`**. 
Write a recomposable unit of logic: 

   Example:
  ```javascript
      const myFunc = new SlackFunction('fn_callback_id', () => {});

Attach optional handlers for block_action and view events related to your function.

Example: js myFunc.action('action_id', () => {}) .view('view_callback_id', () => {});

Enhancements

  • Bolt-JS projects containing a valid slack.json file in their project root are now Slack CLI compatible by @srajiang
  • Adds CLI hook implementations get-manifest start and get-hooks by @srajiang
  • Exports utility types and functions intended for manifest.js authoring by @srajiang @neptunel
  • Adds SlackFunction and Function Localized Interactivity handling by @srajiang in https://github.com/slackapi/bolt-js/pull/1567

Full Changelog

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