Skip to content

Releases: xdevplatform/autohook

v1.7.2

06 Aug 17:42
b872e84
Compare
Choose a tag to compare

This version contains a few improvements:

  • The built-in Ngrok server stops after a while if an auth token is not provided. You can now specify a token to your Ngrok account to keep the built-in server connected indefinitely. This fixed #37 (thank you @sachushaji!)
  • Enforces code style via ESLint.

v1.7.1

01 Jun 21:34
2a71b39
Compare
Choose a tag to compare

This release fixed a bug where an unused import would cause an error if the module is not installed.

Thank you @leocabeza for reporting and fixing.

v1.7.0

13 May 16:41
eac07b9
Compare
Choose a tag to compare

This version contains a few improvements:

  • Fixes a bug where a the CLI wouldn't recognize a webhook URL (fixed by @owlwalks – thank you!)
  • Verifies the x-twitter-webhooks-signature when present in the header of a webhook request

v1.6.0

01 Apr 21:26
5c1ca96
Compare
Choose a tag to compare

Up until now, Autohook would manage all your webhooks at once, which is not always the case for Account Activity API developers with a paid subscription.

This version contains a few new methods to help manage your webhooks individually.

  • removeWebhook will accept a webhook item as defined from the Twitter GET webhooks payload. The webhook will be removed if it exists.
  • setWebhook is equivalent to start when called with a URL argument.
  • getWebhooks returns the list of webhooks as defined in the Twitter GET webhooks payload.

v1.5.0

17 Mar 23:43
f579e1f
Compare
Choose a tag to compare

This versions contains under-the-hood improvements. We replaced the underlying HTTP library (deprecated) with a supported version, and removed a few dependencies.

What's new in this version

  • Removed dependencies on OAuth 1.0a modules. Bearer tokens and OAuth signatures are generated by two first-party modules
  • Wraps the HTTP library in a middleware layer to handle authentication, and to provide convenience methods for GET, POST, PUT, DELETE requests
  • Throws errors from a common handling logic to capture error conditions common to all endpoints
  • Adds test coverage for all the main components

What's fixed

  • Replaces the deprecated request package with needle (Issue #19)
  • When imported as a module, Autohook no loger terminates via process.exit(-1) upon error.

v1.4.2

27 Feb 16:18
6d4bfba
Compare
Choose a tag to compare

This version fixes a few issues.

What's new in this version

  • It fixes an issue where the URL module wasn't correctly imported.
  • It fixes an issue where an unfriendly exception trace was printed out instead of a human readable error message.
  • Expands test coverage to TooManySubscriptionsError.

v1.4.1

22 Jan 01:20
4432937
Compare
Choose a tag to compare

This version adds better ways to get the detail of an error.

What's new in this version

  • TwitterError now exposes a new property named code. This property is filled with the Twitter error code coming from the Account Activity API, if available in the original error response. If no code is available, the property will default to -1 (unknown error).
  • As with any JavaScript Error, TwitterError makes available a message property containing the description of the error as available to stderr, minus the stack trace.

v1.4.0

30 Dec 17:05
0459d22
Compare
Choose a tag to compare

This version adds a way to unsubscribe from a user's account activities.

What's new in this version

  • A new unsubscribe() method that accepts a user ID. When called, unsubscribe() will delete an existing subscription to a user's account activity. It will throw an exception if the user ID is not valid or if the subscription cannot be found.

v1.3.0

16 Nov 00:01
ecbc1aa
Compare
Choose a tag to compare

This version provides an easier way to setup a standalone server. It also fixes a few issues.

What's new in this version

  • validateWebhook() always assumed you had a Node.js HTTP server running, and sent the CRC response directly to that server. Because it may not always be the case, we changed it to just return a CRC signature, which you can then send with your favorite server.

  • Breaking: You don't need to call the standalone setWebhook() if you already have a webhook. Just call Autohook.start(WEBHOOK_URL) instead. As a result, we made setWebhook() private. Check out the standalone server test to see how to change your current implementation.

What's fixed

  • Sometimes Twitter does not return rate limit information in the headers. RateLimitError now accounts for this.

v1.2.2

15 Nov 23:45
Compare
Choose a tag to compare

This version is the same as v1.2.1. It just adds the Github project URL to the package manifest.