Releases: plhery/node-twitter-api-v2
Releases · plhery/node-twitter-api-v2
1.11.0 - Plugins
- Feat: Support plugins (more features coming soon as plugins!)
- Feat: Compression level can now be specified explicitly
- Refactor:
.v1.uploadMedia()now acceptoptions.mimeTypeandoptions.longVideoas argument, in replacement ofoptions.type - Fix: OAuth2 scope incorrectly encoded #184
BREAKING CHANGES:
settings.disableCompression(client settings on instantiation) is nowsettings.compressionto allow more precise settingsclient.sendandclient.sendStreamare now private methods. Migrate to HTTP methods.get/.post/.getStream/...
DEPRECATIONS:
-
.v1.uploadMedia()argumentoptions.typein now deprecated. Migration details available in v1 endpoint documentation of.uploadMedia.
Migrate:await client.v1.uploadMedia(fs.openSync(jpgImg, 'r'), { type: 'jpg' }) // - becomes - import { EUploadMimeType } from 'twitter-api-v2' await client.v1.uploadMedia(fs.openSync(jpgImg, 'r'), { mimeType: EUploadMimeType.Jpeg })
if you're already using real MIME type in
type, just changetypetomimeType:await client.v1.uploadMedia(fs.openSync(jpgImg, 'r'), { type: 'image/jpeg' }) // - becomes - await client.v1.uploadMedia(fs.openSync(jpgImg, 'r'), { mimeType: 'image/jpeg' })
-
Rate limit client methods
.hasHitRateLimit/.isRateLimitStatusObsolete/.getLastRateLimitStatusare now deprecated. Migrate to plugin@twitter-api-v2/plugin-rate-limit
1.10.3
Extends the 1.10.2 release to brotli compression (for regular endpoints) and gzip compression (for streaming endpoints).
- Feat: Native support of gzip compression for streaming endpoints
- Feat: Native support of brotli (25% more compressed than gzip) compression for non-streaming endpoints, when available
1.10.2
1.10.1
1.10.0
- Feat: Pagination support for
tweets/:id/liking_usersandtweets/:id/retweeted_by#165 - Feat: Support custom Node HTTP agents #149
- Doc: Better example for
.v2.me()and fix typos #160 #164 (thanks to @rbochenek and @ShubhamKushwah)
1.9.1
1.9.0 - v2 includes helpers
- Feat: Helpers for v2 includes
- Feat: Support for custom debug loggers
- Fix: Errors accessor to get API errors in paginators #145
- Fix: Correctly update .includes/.meta/.errors in paginators when using async iterator #142
- Fix: Incorrect HTTP method for GET lists #147 #148
- Doc: Better doc & examples for OAuth 2.0 user-context
1.8.1 - GET lists v2
- Feat: Add every GET lists v2 endpoints
1.8.0 - OAuth2 user-context
- Feat: Add OAuth2 user-context support
- Feat: Add users/me v2 endpoint wrapper
1.7.2 - Fix paginators for-await-of
- Fix: Paginator can return multiple times the same results in some conditions
- Feat: .done property for paginators, to know when a next page is fetchable