Breaking changes
- Move to ESM
- Requires Node.js 14 or later
- Move `plain_text`, `entities` to utils. See https://github.com/fanfoujs/fanfou-sdk-node/blob/main/source/utils.ts.
`getEntities` & `getPlainText`
diff
+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
- Add TypeScript definitions
- Map all Fanfou APIs to functions. See https://github.com/fanfoujs/fanfou-sdk-node/blob/main/source/api.ts.
Chore
- Rewrite with TypeScript
- Bump dependencies