Releases: soxtoby/SlackNet
v0.16.2
- Fewer dependencies on .NET 8 and above.
- Added
AuthApi.TeamsListmethod. - Fixed an
InvalidOperationExceptionerror that occurred when a web socket connection was closed after another error.
Thankyou to @Hawxy and @ynaftali-island for their contributions to this release 🥳
v0.16.1
v0.16.0
This release replaces the web socket implementation, which should fix socket mode in .NET Framework.
Breaking changes
- Replaced WebSocket4Net dependency with System.Net.WebSockets.
WebSocketWrapperconstructor now takes in a System.Net.WebSocketsClientWebSocketanduristring.IWebSocket.Sendnow returns aTask.ICoreSocketModeClient.Sendnow returns aTask.
v0.15.5
v0.15.4
v0.15.3
v0.15.2
- Fixing the name of
OpenIdApi.Token'sredirect_uriparameter. - Assistants API support.
- Added
AssistantThreadStartedandAssistantThreadContextChangedevents. - Added
AssistantThreadsApiwithSetStatus,SetSuggestedPrompts, andSetTitlemethods. - Added
AssistantAppThreadmessage event, which appears inMessageChangedevents.
- Added
- Added missing
PreviousMessageproperty toMessageChangedevent.
Thankyou to @brb3 for his help with this release 🛠️
v0.15.1
v0.15.0
Breaking changes
CancellationToken parameters are no longer nullable. They're still optional, so this should only affect code that was explicitly using CancellationToken?.
If you were previously passing in a nullable CancellationToken, I'd recommend null-coalescing to either default or CancellationToken.None.
If you were specifying the type in testing mocks, e.g. with Arg.Any<CancellationToken?>() or It.IsAny<CancellationToken?>(), simply remove the ?. If you were passing in null in tests, replace it with default or CancellationToken.None. If you were asserting that null was passed in as the cancellation token, it should be fine to assert on CancellationToken.None instead.
v0.14.0
- Socket mode client (and RTM client) retry initial connection unless Slack returns an error response.
- Improved logging around web socket connections.
UseSocketModeproperly disconnects the socket mode client when app is shut down.- Rate-limited API request retries are cancelled immediately when cancellation is requested.
Breaking changes
- SlackNet.AspNetCore now depends on Microsoft.Extensions.Hosting.Abstractions.
- Deprecated
Utils.RetryWithDelay- this was never meant to be public. - Simplified
IWebSocketinterface and madeOpenasync. - Deprecated
SlackEndpointConfiguration.SocketModeConnectionOptionssetter - the options should be passed intoUseSocketModeinstead.