Skip to content

v1.3.0

Compare
Choose a tag to compare
@iamdaniele iamdaniele released this 16 Nov 00:01
· 39 commits to master since this release
ecbc1aa

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.