github slack-go/slack v0.17.0

latest releases: v0.17.3, v0.17.2, v0.17.1...
3 months ago

MAJOR BREAKING CHANGES

This release has a few major breaking changes. And a couple require developers to pay a bit of attention, else their programs will break.
I am sorry this is the case but such is life sometimes.

See below for the most important, and trickier breaking changes.

Breaking changes

  • Fix message event struct by @paprikati in #1391 and #1408
    Our MessageEvent has been quite wrong for a while. This should fix it but it does mean folks will have to change their code to cope with this new structure. Please be extra vigilant in areas of your code that uses MessageEvent.
  • Function execution events now correctly accept interfaces not strings by @ProjectBarks in #1357
    FunctionExecutedEvent had Inputs set as map[string]string but that didn't allow enough flexibility - that has been changed to map[string]interface.
  • Allow emoji value in plain text blocks to be null by @calebmckay in #1354
    The Emoji field in TextBlockObject is now a pointer to ensure we can make a distinction between nil and false. Only affects when unmarshalling.
  • Remove Legacy Workflows by @lorenzoaiello in #1350
    Slack has deprecated legacy workflows for a long time, and beginning September 26, 2024, Slack stopped executing workflows containing a "step from app." See more at https://api.slack.com/changelog/2023-08-workflow-steps-from-apps-step-back.
  • Implement PublishViewContext to keep hash optional by @ishitamundhra in #1322
    PublishViewContext() now requires people to pass a PublishViewContextRequest which became a public type. If you call PublishViewContext() in your code, please adjust accordingly.
  • Renamed AltText to AltTxt and SnippetText to SnippetType (in GetUploadURLExternalParameters and UploadFileV2Parameters) by @nlopes in #1422
  • AppHomeOpenedEvent View is now a pointer by @nlopes in #1424
    This provides slightly better ergonomics in the case when there's no view yet.

Features added

Fixes

  • Fix slacktest GetSeenOutboundMessages race condition by @askreet in #1362
  • Return a StatusCodeError when a workspace's message limit is exceeded by @greysteil in #1383
  • Tidy up go.mod, add a linting check to prevent this by @samstarling in #1405
  • Handle nil being passed in to newTextParser by @samstarling in #1403
  • Remove a number of unused functions and parameters by @samstarling in #1402
  • Tidy up arguments to _search function by @samstarling in #1404
  • Make it foolproof for people trying to use emoji with mrkdwn which the Slack API doesn't support by @nlopes in #1418
  • Subteam events in socketmode now have their Count fields as numbers by @nlopes in #1417
  • RichTextSectionLinkElement Text is now omitempty by @bassettb in #1412

Detailed list of all of the changes

New Contributors

Full Changelog: v0.16.0...v0.17.0

Don't miss a new slack release

NewReleases is sending notifications on new releases.