Releases: slack-go/slack
v0.15.0
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 andType: 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
- Added go v1.23 to test matrix (test.yml) by @nemuvski in #1315
- Bumped GitHub Actions to Latest Versions by @shogo82148 in #1314
- Updated deprecated comment for UploadFile and UploadFileContext by @shogo82148 in #1316
New Contributors
- @shogo82148 made their first contribution in #1314
- @Nikolo made their first contribution in #1309
- @luke-josh made their first contribution in #1317
- @Manjish made their first contribution in #1320
- @YutoKashiwagi made their first contribution in #1319
- @obed-sj made their first contribution in #1279
- @gideonw made their first contribution in #1328
- @bamo made their first contribution in #1330
- @jarospisak-unity made their first contribution in #1334
Full Changelog: v0.14.0...v0.15.0
v0.14.0
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 aMessageEvent
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 theParseEvent
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
andUpdateRemoteFile
and Image Previews would return aninvalid_auth
error by @EkeMinusYou in #1117
Chores / Code Cleanup
- Replaced deprecated
ioutil
withio
andos
packages by @nakamasato in #1310
New Contributors
- @rfratto made their first contribution in #1307
- @nakamasato made their first contribution in #1310
- @rhysm made their first contribution in #1311
- @Aryakoste made their first contribution in #1306
- @nemuvski made their first contribution in #1308
- @ku made their first contribution in #1228
- @EkeMinusYou made their first contribution in #1117
- @jjjjeeffff was instrumental in the successful resolution of #1117
Full Changelog: v0.13.1...v0.14.0
v0.13.1
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
andUnfurlMedia
toWebhookMessage
by @lheiskan in #1208 - Added
isReadOnly
property toConversation
struct by @GGonryun in #1232
Bug Fixes
- Fixed
UploadFileV2
when using text content by @calebmckay in #1291 - Made
Channel
optional onUploadFileV2
by @0xdeafcafe in #1293
Chores / Code Cleanup
- Replace a Loop with Slice by @testwill in #1211
- Added Deprecation Notice for
files.upload
by @lorenzoaiello in #1300 - Added Go Test Coverage for 1.21 and 1.22 by @lorenzoaiello in #1298
Documentation Updates
- Updated Inline Docs and API References by @lorenzoaiello in #1299
- Added an example for
Pagination
by @adamrothman in #1201 - Added an example for
ConversationHistory
by @lorenzoaiello in #1302 - Added an example for
AddRemoteFile
andDeleteFile
by @lorenzoaiello in #1303
New Contributors
- @calebmckay made their first contribution in #1291
- @lheiskan made their first contribution in #1208
- @GGonryun made their first contribution in #1232
- @0xdeafcafe made their first contribution in #1293
- @lorenzoaiello made their first contribution in #1300
- @adamrothman made their first contribution in #1201
Full Changelog: v0.13.0...v0.13.1
v0.13.0
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 paramsClient.GetBillableInfoForTeamContext(ctx context.Context) (map[string]BillingActive, error)
dropped, use Client.GetBillableInfoContext
with empty params
Bug fixes
- Block Object: Validate text min and max length by @Chagui- in #1273
- fix some typos by @yutasb in #1281
Enhancements
- Add missing message option for link_names by @robbydyer in #1278
- Expose
team_id
parameter for use with org-wide app by @candiduslynx in #1283
New Contributors
- @Chagui- made their first contribution in #1273
- @robbydyer made their first contribution in #1278
- @yutasb made their first contribution in #1281
- @candiduslynx made their first contribution in #1283
Full Changelog: v0.12.5...v0.13.0
v0.12.5
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
What's Changed
- chore: unnecessary use of fmt.Sprintf by @testwill in #1212
- Add Video Block by @walkure in #1210
- Add connected_team_ids optional field to Conversation by @zFlabmonsta in #1253
- Add blocks in slackevents.MessageEvent by @invzhi in #1227
- Add support for Rich Text Lists by @daniel-pieper-personio in #1155
- Add support for Rich Text Input by @peimanja in #1240
- Fix: always add context to errors during block serde by @yunginnanet in #1259
- Edited field in the app mention event by @IbirbyZh in #1256
- Expose is_enterprise_install field by @7ail in #1255
- feat: Add the ability to set
URL
onNewButtonBlockElement
via.WithURL()
by @joshbranham in #1250 - Add block element type FileInput by @elct9620 in #1249
- Openid connect by @danielmichaels in #1242
- Add is_enterprise_install flag for org wide installation support by @hussachai in #1225
- Add an example of updating modal by @KouWakai in #1142
- add deleted timestamp for deleted msg events by @zFlabmonsta in #1261
- Add slack connect events & tests by @Birtato in #1262
- Add rich_text_quote and rich_text_preformatted by @rusq in #1260
New Contributors
- @testwill made their first contribution in #1212
- @walkure made their first contribution in #1210
- @zFlabmonsta made their first contribution in #1253
- @invzhi made their first contribution in #1227
- @daniel-pieper-personio made their first contribution in #1155
- @peimanja made their first contribution in #1240
- @yunginnanet made their first contribution in #1259
- @IbirbyZh made their first contribution in #1256
- @joshbranham made their first contribution in #1250
- @elct9620 made their first contribution in #1249
- @danielmichaels made their first contribution in #1242
- @KouWakai made their first contribution in #1142
- @Birtato made their first contribution in #1262
Full Changelog: v0.12.3...v0.12.4
v0.12.3
What's Changed
Bug fixes
- Safer socketmode by @iaburton in #1150
- add
omitempty
to ConfirmationBlockObject.Deny by @kamil-gwozdz in #1224
Security
Enhancements / Improvements
- socketmode example: use embedded api client in socketmode client by @kittydoor in #1164
- Sends an invitation to a Slack Connect channel by @nopcoder in #1216
- Add support for manifests and config tokens by @stijndcl in #1220
New Contributors
- @daabr made their first contribution in #1215
- @kamil-gwozdz made their first contribution in #1224
- @nopcoder made their first contribution in #1216
- @stijndcl made their first contribution in #1220
- @iaburton made their first contribution in #1150
Full Changelog: v0.12.2...v0.12.3
v0.12.2
What's Changed
Bug fixes
- fix: change period to comma by @yokishava in #1147
Enhancements / Improvements
- add datetimepicker component by @hussachai in #1145
- add 2FA type to slack user by @imilchev in #1183
- add support for user_profile_changed callback event by @verygoodsoftwarenotvirus in #1182
- Export the Binder type in slacktest by @kpaulisse in #1177
- socketmode remove duplicate debug logging by @kittydoor in #1165
- Implement context-aware RunEventLoop by @lololozhkin in #1169
- Add ReplyUsers to Msg Struct by @aleksa11010 in #1180
Misc
- Test with Go 1.18~1.20 by @kanata2 in #1186
- Update README for slacktest by @kanata2 in #1187
- Add actions/stale action by @kanata2 in #1188
- Increase operations-per-run by @kanata2 in #1189
- Bump up golangci-lint and its action to latest by @kanata2 in #1193
- gofmt by @kanata2 in #1194
New Contributors
- @hussachai made their first contribution in #1145
- @imilchev made their first contribution in #1183
- @verygoodsoftwarenotvirus made their first contribution in #1182
- @kpaulisse made their first contribution in #1177
- @kittydoor made their first contribution in #1165
- @lololozhkin made their first contribution in #1169
- @aleksa11010 made their first contribution in #1180
Full Changelog: v0.12.1...v0.12.2
v0.12.1
What's Changed
Enhancements
- Add FileUploadV2 function to avoid server side file timeouts by @kanata2 in #1148
- Added new FileUploadV2 function to avoid server side file timeouts by @sarthakkothari in #1130
New Contributors
- @sarthakkothari made their first contribution in #1130
Full Changelog: v0.12.0...v0.12.1
v0.12.0
Thank you for all the contributions!
What's Changed
This release contains several backward incompatible changes.
Fixes
- Fix WorkflowStepCompletedRequest options handling by @CedricFinance in #1129
- fix: change type of timestamp by @yokishava in #1131
Enhancements
- add include_all_metadata to conversations.replies API by @ebkn in #1139
- Add team_id as a parameter to the users.conversations API method by @ctennis in #1134
- feat: add number input block element by @snpkx in #1132
- add GetOtherTeam method by @johanmcos in #1118
- add block elements for email_text_input and url_text_input by @ameliagapin in #1140
- Expose reactionItem and reactionEvent by @grimmy in #1095
- Support team.profile.get method by @MattDavisRV in #1097
- add GetOtherTeamInfoContext method by @johanmcos in #1143
- Add include_num_members support to conversation.info request by @Yohan460 in #989
- Add ListTeams and TeamAccess{Granted,Revoked}Events and fix missing enterprise ID by @stephenwan-opal in #1119
New Contributors
- @CedricFinance made their first contribution in #1129
- @ebkn made their first contribution in #1139
- @ctennis made their first contribution in #1134
- @snpkx made their first contribution in #1132
- @johanmcos made their first contribution in #1118
- @grimmy made their first contribution in #1095
- @Yohan460 made their first contribution in #989
- @stephenwan-opal made their first contribution in #1119
Full Changelog: v0.11.4...v0.12.0