Skip to content

Releases: slack-go/slack

v0.17.3

04 Jul 16:54
e29b7e3
Compare
Choose a tag to compare

What's New

Fixes

  • Parse simple string based errors as part of the response by @nlopes in #1452
    In the previous version we introduced the ability to parse specific errors (more complex ones) but Slack can still send us a string. string is now the fallback type.

Other

  • Examples are now using environment variables and command line arguments consistently by @nlopes in #1456
    Also added a ./examples/README.md explaining the patterns that should be used.

Full Changelog: v0.17.2...v0.17.3

v0.17.2

29 Jun 13:13
ca99739
Compare
Choose a tag to compare

Features added

New Contributors

Full Changelog: v0.17.1...v0.17.2

v0.17.1

08 Jun 19:16
965251a
Compare
Choose a tag to compare

This has the potential to be a breaking change if and only if you have been building SlackResponse by hand, which you shouldn't 😬. If you are, my apologies for adding this in a minor version, I thought the likelihood of this to be very very low. See #1443 for more details.

Features added

  • Add channel_unshared event by @nlopes in #1437
  • Add missing Blocks to UploadFileContextV2 by @dalyndalton in #1435
    This adds the missing optional dependency for Blocks to the upload file method, allowing users to use rich blocks and buttons during the file upload process.
  • Return Errors field in SlackErrorResponse by @nlopes in #1443

Detailed list of all of the changes

  • chore: add CI test status badge to README by @nlopes in #1431
  • feat: add channel_unshared event by @nlopes in #1437
  • chore: add test for section block expand option by @nlopes in #1440
  • chore: order inner events vars alphabetically by @nlopes in #1442
  • chore: better events example code by @nlopes in #1441
  • feat: Add missing Blocks to UploadFileContextV2 by @dalyndalton in #1435
  • feat: return Errors field in SlackErrorResponse by @nlopes in #1443
  • doc: add README.md to examples/eventsapi by @nlopes in #1445

New Contributors

Full Changelog: v0.17.0...v0.17.1

v0.17.0

25 May 16:25
6ed4ea4
Compare
Choose a tag to compare

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

Read more

v0.17.0-rc7

24 May 20:24
c8a51e0
Compare
Choose a tag to compare
v0.17.0-rc7 Pre-release
Pre-release

What's Changed

Breaking Changes

  • AppHomeOpenedEvent View is now a pointer - this provides slightly better ergonomics in the case when there's no view yet.

Full Changelog: v0.17.0-rc6...v0.17.0-rc7

v0.17.0-rc6

24 May 11:28
v0.17.0-rc6
61734c3
Compare
Choose a tag to compare
v0.17.0-rc6 Pre-release
Pre-release

What's Changed

  • feat!: expose UploadToURL (from uploadToURL) by @nlopes in #1422

I've also added an example on how to do this. You can find it in ./examples/files/multiple_files.

BREAKING CHANGES

  • renamed AltText to AltTxt and SnippetText to SnippetType.

Full Changelog: v0.17.0-rc5...v0.17.0-rc6

v0.17.0-rc5

10 May 18:37
d0ef804
Compare
Choose a tag to compare
v0.17.0-rc5 Pre-release
Pre-release

Features Added

Fixes / cleanup

  • 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
  • We now only test for the last 3 versions of Go by @nlopes in #1416

New Contributors

Full Changelog: v0.17.0-rc4...v0.17.0-rc5

v0.17.0-rc4

26 Mar 20:50
3353adb
Compare
Choose a tag to compare
v0.17.0-rc4 Pre-release
Pre-release

What's Changed

  • chore(deps): bump golangci/golangci-lint-action from 6.5.1 to 6.5.2 by @dependabot in #1407
  • Unmarshal messages correctly for all subtypes by @paprikati in #1408
    This fixes a major bug introduced when we changed shapes of messages in rc2 (I think).

New Contributors

Full Changelog: v0.17.0-rc3...v0.17.0-rc4

v0.17.0-rc3

23 Mar 21:48
e952369
Compare
Choose a tag to compare
v0.17.0-rc3 Pre-release
Pre-release

A few more changes but most shouldn't cause big issues, i.e: they won't feel as the previous breaking changes.

Features added

  • Add include_icon to auth.teams.list by @nlopes in #1394
  • Add a few missing fields to conversation by @nlopes in #1395
  • Add missing icons image_132 and image_230 to Team Icons by @nlopes in #1396
  • Add ForceInviteUsersToConversation by @nlopes in #1397
  • Add a bunch of missing params to usergroups.* calls by @nlopes in #1398
  • Add FocusOnLoad to DateTimePickerBlockElement by @nlopes in #1399
  • Add Border and Offset to RichTextList by @nlopes in #1400
  • Add some missing admin.conversations endpoints by @samstarling in #1401

Fixes / cleanup

Full Changelog: v0.17.0-rc2...v0.17.0-rc3

v0.17.0-rc2

22 Mar 16:03
v0.17.0-rc2
c647c91
Compare
Choose a tag to compare
v0.17.0-rc2 Pre-release
Pre-release

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.

In order to give people a bit of a heads up here, and to make sure people do pay attention, I'm releasing a release candidate (-rc) version and give it some time, before I do a final v0.17.0.

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

Breaking changes

  • Fix message event struct by @paprikati in #1391
    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.

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

Other changes

New Contributors

Full Changelog: v0.16.0...v0.17.0-rc2