From 86d4727d469ec2d425666d3b1e983ac8b0adacd3 Mon Sep 17 00:00:00 2001 From: Ankur Oberoi Date: Fri, 10 Aug 2018 17:44:56 -0700 Subject: [PATCH] v4.4.0 --- docs/_posts/2018-08-10-v4.4.0.md | 24 ++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 docs/_posts/2018-08-10-v4.4.0.md diff --git a/docs/_posts/2018-08-10-v4.4.0.md b/docs/_posts/2018-08-10-v4.4.0.md new file mode 100644 index 000000000..538675412 --- /dev/null +++ b/docs/_posts/2018-08-10-v4.4.0.md @@ -0,0 +1,24 @@ +--- +layout: changelog +--- + +## New Features + +- Workspace apps can now call methods on behalf of users for methods which require the `X-Slack-User` header. When + calling one of these methods, specify the user ID in the new `on_behalf_of` option. - thanks @aoberoi (#609) +- The new `rejectRateLimitedCalls` option in the `WebClient` constructor allows you to customize how you'd like to handle + rate limiting. If you set it to `true`, the `WebClient` will not attempt to retry an API call for you, and will instead + return an error with a `code` property set to the value `ErrorCode.RateLimitedError`. - thanks @aoberoi (#599) +- Automatic pagination for cursor-based pagination enabled methods: It's always recommended to perform + pagination using the `cursor` and `limit` options directly, but if you don't pass either when calling a method, the + `WebClient` will automatically iterate through all the pages and returned a merged result. - thanks @aoberoi (#596) +- The `WebClient` will warn when calling deprecated methods (`files.comments.add` and `files.comments.edit`) - thanks @aoberoi (#604) + +## Bug fixes and more + +- Fixes the crash when `RTMClient#disconnect()` was called from the `connecting` state - thanks @aoberoi (#603) +- Fixes an issue where uploading a file without a token fails in `WebClient` with an unrelated error - thanks @aoberoi (#587) +- Resolves an issue where your app requires a newer version of `@types/node` than this package specifies - thanks @aoberoi (#605) +- Fixes the `Dialog.selected_options` type definition - thanks @harveyr (#588) +- Adds information, fixes syntax issues, and corrects typos in the documentation - thanks @chris-peterson, @jd0920 (#584, #600, #601) +- Tests against node v10 in Travis - thanks @aoberoi (#606) diff --git a/package.json b/package.json index 2c0b45827..537f6ed1c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@slack/client", - "version": "4.3.1", + "version": "4.4.0", "description": "Slack Developer Kit - official clients for the Web API, RTM API, and Incoming Webhooks", "author": "Slack Technologies, Inc.", "license": "MIT",