Bot releases are hidden (Show)
Published by srajiang about 2 years ago
Published by srajiang about 2 years ago
This beta release contains feature enhancements to Bolt JS for developers participating in the Slack Platform Beta ๐
Create a new app from a Github sample template
$ 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.
$ slack run
Declare a manifest.js
or manifest.ts
file import handly utility functions and define any recomposable units contained such as Functions
, Workflows
and Triggers
.
# 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,
},
});
SlackFunction
.Write a recomposable unit of logic:
Example:
const myFunc = new SlackFunction('fn_callback_id', () => {});
Attach optional handlers for block_action
and view
events related to your function.
Example:
myFunc.action('action_id', () => {})
.view('view_callback_id', () => {});
slack.json
file in their project root are now Slack CLI compatible by @srajiangget-manifest
start
and get-hooks
by @srajiangmanifest.js
authoring by @srajiang @neptunelhttps://github.com/slackapi/bolt-js/compare/@slack/[email protected]...@slack/[email protected]
Published by seratch about 2 years ago
Here is the list of all the issues / pull requests included in the release: https://github.com/slackapi/bolt-js/milestone/28?closed=1
Published by filmaj over 2 years ago
message_metadata_*
event types (via #1508) - thanks @dannyhostetler!isEnterpriseInstall
to Context (via #1511) - thanks @rockingskier!Here is the list of all the issues / pull requests included in the release: https://github.com/slackapi/bolt-js/milestone/21?closed=1
Published by seratch over 2 years ago
Here is the list of all the issues / pull requests included in the release: https://github.com/slackapi/bolt-js/milestone/26?closed=1
Published by filmaj over 2 years ago
say
type incorrectly inferred as never when using pin_added
or reaction_*
events (via #1473 and #1476) - thanks @seratch!ack()
is not accessible in global middleware in TypeScript (via #1482) - thanks @seratch!Here is the list of all the issues / pull requests included in the release: https://github.com/slackapi/bolt-js/milestone/25?closed=1
Published by seratch over 2 years ago
Here is the list of all the issues / pull requests included in the release: https://github.com/slackapi/bolt-js/milestone/24?closed=1
Published by seratch over 2 years ago
Since this version, the default behavior of the OAuth flow has been changed for better security. The changes are:
InstallProvider
(The underlying OAuth module) verifies not only the query string but also its corresponding browser cookie dataStateStore
(ClearStateStore
) makes sure that the state parameter is not too old (the default lifetime is 10 minutes)Refer to #1335 #1391 https://github.com/slackapi/node-slack-sdk/issues/1435 https://github.com/slackapi/node-slack-sdk/pull/1436 for the context. If you encounter behavior changes described at #1412, consider either changing your app code or setting installerOptions.legacyStateVerification: true
for now.
EnvelopedEvent
interface to users - Thanks @martin-cyclehttpServer.close
error only when the server
exists - Thanks @sbcguaHere are all the issues / pull requests included in the release.
Published by srajiang over 2 years ago
๐ ๐ New features / improvements:
deferInitialization
of App - #248 #1303 - Thanks @seratch and @SpencerKaiserHTTPReceiver
responses to /slack/install
route - #1279 #1280 - Thanks @filmajtokens_authorize
/ app_uninstalled
event #674 #1328, - Thanks @seratchSlackEvent
union type to include ChannelIDChangedEvent
- #1302 #1301 Thanks @pmezard and @srajiangUserChangeEvent.user.updated
attribute #1320 #1322 - Thanks @seratch and @pmezard๐ Document updates:
deferInitialization
#1304, #1308 - Thanks @filmaj, @wongjas, @seratch!userScopes
property - #1295 - Thanks @wongjasrespond
argument docs to include views
listener #1313 - Thanks @seratchHere are all the issues / pull requests included in the release.
Published by filmaj over 2 years ago
@slack/web-api
dependency to at least v6.6.0 to address a security vulnerability in axios
(via #1276) - thanks @filmaj!@slack/oauth
dependency to at least v2.4.0 to address major bugs (via #1273) - thanks @seratch!$PORT
fails to bind on Heroku (via #1210) - thanks @filmaj!Channel*MessageEvent
types (via #1254) - thanks @seratch!updateConversation
should accept expiration time (via #1221) - thanks @shubhamjajoo!state
information from the Listening to Modals documentation (via #1236) - thanks @wongjas!logger
instead of console.log
(via #1242) - thanks @wongjas!processBeforeResponse
(via #1229) - thanks @ramblingenzyme!extendedErrorHandler
(via #1227) - thanks @wongjas!view_closed
support (via #1214) - thanks @TheManWhoStaresAtCode!start
method when using socket mode (via #1202) - thanks @filmaj!Here is the list of all the issues / pull requests included in the release: https://github.com/slackapi/bolt-js/milestone/16?closed=1
Published by seratch almost 3 years ago
Here is the list of all the issues / pull requests included in the release: https://github.com/slackapi/bolt-js/milestone/15?closed=1
Published by seratch almost 3 years ago
This version had a package file issue. Please use v3.8.1 or newer instead.
Published by srajiang about 3 years ago
Loads of updates and improvements this go-around with the help of feedback from the community ๐ Many many thanks!
Published by srajiang about 3 years ago
Published by srajiang about 3 years ago
Published by misscoded over 3 years ago
FileInstallationStore
(#941, #1003) - Thanks, @misscoded!Published by stevengill over 3 years ago
axios
options to include proxy:false
to match @slack/web-api package (#979) - thanks @stevengillAwsLambdaReceiver
failing to parse event.body
if isBase64Encoded
is true
(#971, #972) - thanks @TheManWhoStaresAtCodeedited
property to app_mention
event payload (#960, #961) - thanks @seratch and @hi-sePublished by seratch over 3 years ago
Many improvements (thanks to the awesome contributors!) are included in this release ๐
Here is the list of all the issues / pull requests included in the release: https://github.com/slackapi/bolt-js/milestone/8?closed=1
Published by mwbrooks over 3 years ago
SocketModeReceiver
logging sentence (#807) - Thanks @KhushrajRathod!AwsLambdaReceiver
(#784 #785) - Thanks @seratch!app.start()
for Socket Mode by allowing extra arguments to be optional (#823) - Thanks @KhushrajRathodevent.user
to correctly reference user ID (#790) - Thanks @mwbrooks@vendia/serverless-express
(#799 #800 #804 #806) - Thanks @januswel @avery100 @mwbrooksPublished by stevengill over 3 years ago
channel_id_changed
event (#779, #783) - thanks @stevengill