Skip to content

Releases: slack-go/slack

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

v0.16.0

09 Feb 17:46
209ec09
Compare
Choose a tag to compare

Warning

This release may mean a breaking change! Read below for more although for most folks this should all be fine.

πŸ‘‹ Hi folks,

I've tried my best to keep this version to just non-breaking changes but there are a couple of changes that might introduce breaking changes in rare circumstances.

If you're upgrading, please pay special attention to:

If you were using only what we provide in the library, this is a non-breaking change, but if not, it may be considered a breaking change.

Next release will likely bring a few required breaking changes (hard deprecations for example).

Thank you to everyone that contributed to this release πŸ₯³

What's Changed

New Contributors

Full Changelog: v0.15.0...v0.16.0

v0.15.0

14 Oct 17:37
203cdb2
Compare
Choose a tag to compare

Warning

This release includes a breaking change since the last release.

What's Changed

v0.15.0 is now available. It does contain minor breaking changes to two Block Kit elements along with a lot of new functionality.

Breaking Changes

Block Kit - Rich Text Section Date Element

If you are using the RichTextSectionDateElement block kit element, there is a new field Format which is now required. It previously did not exist, but was marked as required in the Block Kit Documentation. Similarly, the function NewRichTextSectionDateElement function signature has been updated to require the new parameter. While this may not have previously worked, the non-backwards compatible signature change prompts it to be identified as breaking change.

Block Kit - Rich Text input Block Element

If you are using the RichTextInputBlockElement block kit element, the InitialValue field type has been changed from string to *RichTextBlock to provide a more strongly typed experience. If you were previously passing a pre-formatted JSON object you will need to update your input to use the RichTextBlock struct instead.

Enhancements

  • Added support for publishing a message to a specific thread by @Nikolo in #1309
  • Added support for unicode parameter in emoji type of rich text blocks by @YutoKashiwagi in #1319
  • Added endpoints for calls.* apis and Type: call in blockkit by @winston-stripe in #1190
  • Added Convenience Methods to Block Elements by @obed-sj in #1279
  • Added functions.completeError and functions.completeSuccess by @gideonw in #1328
  • Added support for external_limited option of inviteShared by @bamo in #1330
  • Added support for Canvas API methods by @jarospisak-unity in #1334

Bug Fixes

  • Added required format field to rich text date blocks by @luke-josh in #1317
  • Updated RichTextInputBlockElement InitialValue data type by @Manjish in #1320

Chores

New Contributors

Full Changelog: v0.14.0...v0.15.0

v0.14.0

15 Aug 17:22
242df46
Compare
Choose a tag to compare

What's Changed

v0.14.0 is now available. It contains no breaking changes but does include several pieces of new functionality and long-standing bug fixes.

Enhancements

  • Added Support for receiving metadata when receiving a MessageEvent over WebSocket by @rfratto in #1307
  • Added a new field to expose file data when receiving a File event from a Slack Connect Channel by @zFlabmonsta in #1312
  • Added support for the slack_file in the image block by @rhysm in #1311
  • Added 35 missing Websocket event types by @Aryakoste in #1306
  • Added support for parsing AppRateLimited events in the ParseEvent function by @nemuvski in #1308
  • Added newly documented Channel Canvas properties to the conversations.info Web API method by @ku in #1228

Bug Fixes

  • Fixed an edge case when using UpdateRemoteFileContext and UpdateRemoteFile and Image Previews would return an invalid_auth error by @EkeMinusYou in #1117

Chores / Code Cleanup

New Contributors

Full Changelog: v0.13.1...v0.14.0

v0.13.1

16 Jul 15:14
1dfd1df
Compare
Choose a tag to compare

What's Changed

v0.13.1 is now available. It contains no breaking changes but does expose some new fields previously unavailable.

Enhancements

  • Added UnfurlLinks and UnfurlMedia to WebhookMessage by @lheiskan in #1208
  • Added isReadOnly property to Conversation struct by @GGonryun in #1232

Bug Fixes

Chores / Code Cleanup

Documentation Updates

New Contributors

Full Changelog: v0.13.0...v0.13.1

v0.13.0

16 May 04:57
41fa1e5
Compare
Choose a tag to compare

Warning

This release includes a breaking change since the last release

What's Changed

Breaking changes

  • Expose team_id parameter for use with org-wide app by @candiduslynx in #1283:
    Changed interface:
    Old New
    Client.GetBotInfo(bot string) (*Bot, error) Client.GetBotInfo(parameters GetBotInfoParameters) (*Bot, error)
    Client.GetBotInfoContext(ctx context.Context, bot string) Client.GetBotInfoContext(ctx context.Context, parameters GetBotInfoParameters)
    Client.GetTeamProfile() (*TeamProfile, error) GetTeamProfile(teamID ...string) (*TeamProfile, error)
    GetTeamProfileContext(ctx context.Context) (*TeamProfile, error) GetTeamProfileContext(ctx context.Context, teamID ...string) (*TeamProfile, error)
    Client.GetBillableInfo(user string) (map[string]BillingActive, error) Client.GetBillableInfo(params GetBillableInfoParams) (map[string]BillingActive, error)
    Client.GetBillableInfoContext(ctx context.Context, user string) (map[string]BillingActive, error) Client.GetBillableInfoContext(ctx context.Context, params GetBillableInfoParams) (map[string]BillingActive, error)
    Client.GetBillableInfoForTeam() (map[string]BillingActive, error) dropped, use Client.GetBillableInfo with empty params
    Client.GetBillableInfoForTeamContext(ctx context.Context) (map[string]BillingActive, error) dropped, use Client.GetBillableInfoContext with empty params

Bug fixes

Enhancements

New Contributors

Full Changelog: v0.12.5...v0.13.0

v0.12.5

26 Feb 12:36
af783b3
Compare
Choose a tag to compare

What's Changed

BUGFIX - deal with "true", true, "false", false.

  • Parse string or boolean for SlashCommand.IsEnterpriseInstall by @kpaulisse in #1266

Full Changelog: v0.12.4...v0.12.5

Non-breaking updates roll-up

16 Feb 11:50
2a9c35c
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.12.3...v0.12.4