Skip to content

Releases: fanfoujs/fanfou-sdk-node

v5.0.0

11 Sep 21:16
b75bbc5
Compare
Choose a tag to compare

Breaking changes

getEntities & getPlainText

+import {getEntities, getPlainText} from 'fanfou-sdk';

const status = ff.get('/statues/show', id: 'status-id');
-const plainText = status.plain_text;
+const plainText = getPlainText(getEntities(status.text);

Features

Chore

  • Rewrite with TypeScript
  • Bump dependencies

v4.2.0

10 Aug 08:14
72f74b5
Compare
Choose a tag to compare

Built-in

Chore

  • 0916f57 Add engines flag to package.json.
  • 8a80c9a Use named capture group in RegExp.
  • d1678c8 Update declarations.

v4.1.0

21 Dec 11:45
576b516
Compare
Choose a tag to compare

Features

  • ee1ea93 Add support OAuth process.

v4.0.5

21 May 12:27
085771d
Compare
Choose a tag to compare

Bug Fix

v4.0.4

21 Feb 05:10
aae8afd
Compare
Choose a tag to compare

Bug Fix

v4.0.3

16 Feb 10:01
af3ee9a
Compare
Choose a tag to compare

BugFix

v4.0.2

30 Jan 21:01
8328f91
Compare
Choose a tag to compare

Bug Fix

v4.0.1

25 Jan 12:32
edd0610
Compare
Choose a tag to compare

Bug Fix

  • 9777e8a Fix source-name in Status.

v4.0.0

09 Jan 08:21
f297dcc
Compare
Choose a tag to compare

FANFOU-SDK 4.0 🎉

Here are the changes of fanfou-sdk 4:

  • Remove fakeHttps option
  • Drop support for Node.js 4
  • Remove built-in sign name module
  • Use got instead of request
  • Use oauth-1.0a instead of oauth
  • Completely async/await
  • Throw error on non-200 HTTP status code cases
  • Merge ff.upload() to ff.post()
  • Update tests

v3.2.0

17 Dec 12:42
6024e82
Compare
Choose a tag to compare

New Feature

  • 4bd3ddb Add support for OAuth baseString hooks.

Use baseString hook

const ff = new Fanfou({
  consumerKey: '',
  consumerSecret: '',
  oauthToken: '',
  oauthTokenSecret: '',
  apiDomain: 'api.example.com',
  oauthDomain: 'example.com',
  hooks: {
    baseString: str => {
      return str.replace('example.com', 'fanfou.com');
    }
  }
});