Skip to content

Releases: slack-rs/slack-rs-api

v0.23.0

29 Jun 20:13
aa000e3
Compare
Choose a tag to compare
  • slack_api now provides async functions (enabled with "async" feature, on by default)
  • slack_api::sync provides the original functions (enabled with "sync" feature)
  • Timestamp type replaces all uses of string / u64 / f64 as timestamps

v0.22.0

29 Jun 20:12
374e10f
Compare
Choose a tag to compare
  • Updates to API
    • #68 Bot icons are sometimes an array
  • request 0.10.0 using blocking client
    • if you passed a reqwest::Client before you will need to pass reqwest::blocking::Client
  • reqwest native-tls feature
  • 2018 edition code

v0.21.0

02 Oct 15:22
ed41145
Compare
Choose a tag to compare

0.21.0

  • Updates to API
    • Missing fields from bot messages
    • Bot messages can have attachments
  • Optional Reqwest updated to 0.9.0

v0.18.0

01 Oct 02:31
Compare
Choose a tag to compare

0.18.0

  • Serde 1.0.0 breaking change, your serde must also be ~1.0.0
  • Updates to API to include fields for "Threading messages" and a couple of other missing fields in messages

v0.17.0

09 May 00:17
Compare
Choose a tag to compare

0.17.0

  • Updates generated API definitions for the Slack API as of April 29

API Changes

  • Several additional error types were added across many API functions
  • Several documentation fixes and updates

channels

  • create, join and rename had a new validate field added
  • list had a new exclude_members field added

chat

files_comments

  • add had the channel parameter removed

groups

  • create and rename had a new validate field added

ims

  • open had its return_im field change from Option<&str> to Option<bool>

reactions

  • list had its full field change from Option<&str> to Option<bool>

rtm

v0.16.2

08 May 23:59
Compare
Choose a tag to compare

0.16.2

  • This release adds a new top-level function: default_client()
    • This function can be used by users to get a default client that implements SlackWebRequestSender so they don't have to pull in reqwest and version match in order to send requests.
    • Thanks to @bwasty for adding this in #42!

v0.16.1

04 May 03:29
Compare
Choose a tag to compare

0.16.1

  • This release works around a Slack API bug causing deserialization issues
    • Thanks to @dten for implementing the fix in #39!

v0.16.0

11 Mar 17:13
Compare
Choose a tag to compare

0.16.0

  • This release contains several breaking changes
    • hyper has been replaced with reqwest, but is still an optional dependency
    • All response fields are now considered optional to prevent this library from breaking if Slack removes them
    • All methods now take in a request object (e.g. PostMessageRequest) instead of each parameter separately
      • This allows better clarity when calling the API as it simulates named params
      • All request objects implement Default, so you can fill in the request with a ..PostMessageRequest::default() (or equivalent) to elide fields that are not being set
    • All error types have been reworked to obtain better information from the Slack API about the issue
  • Support added for most other Slack APIs, including dnd, usergroups, mpim, and files.comments

v0.15.0

19 May 03:04
Compare
Choose a tag to compare

0.15.0

  • hyper is now an optional (but default) feature that can be disabled to use a different HTTP client
    • The only change this requires for users is in error handling. Error::Internal and Error::Http are gone, and Error::HttpRequest has been added. Error also no longer allows exhaustive checking to allow for future flexibility, though this limitation will be lifted before 1.0.
    • See the pull request for more information
  • hyper dependency also bumped to version 0.9.4, if it's being used (thanks to @jgulotta)
  • Fixed several changes in the schema from the Slack API that would cause erroneous deserialization errors (thanks to @kiyoto)

v0.14.0

24 Mar 22:30
Compare
Choose a tag to compare
  • Removed events module. Now returned to slack crate.
  • Add missing pub fields on some returned response objects
  • Fix api.test method to not require a token to call