Releases: PLhery/node-twitter-api-v2
Releases · PLhery/node-twitter-api-v2
1.11.3
- Feat: New spaces features:
topic_ids
andended_at
on space object,/spaces/:id/buyers
endpoint #237 - Feat: New bookmarks API #237
- Feat: New Quoted tweets endpoint #237
- Feat: Allow v2.search to be used without query parameter #252
- Fix: User timeline v1 endpoint .done property value is false #238
- Feat:
sort_order
parameter #246 (@nolbuzanis) - Fix: Better error message for failed media uploads #244 (@nolbuzanis)
1.11.2
1.11.1
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.mimeType
andoptions.longVideo
as argument, in replacement ofoptions.type
- Fix: OAuth2 scope incorrectly encoded #184
BREAKING CHANGES:
settings.disableCompression
(client settings on instantiation) is nowsettings.compression
to allow more precise settingsclient.send
andclient.sendStream
are now private methods. Migrate to HTTP methods.get
/.post
/.getStream
/...
DEPRECATIONS:
-
.v1.uploadMedia()
argumentoptions.type
in 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 changetype
tomimeType
: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
/.getLastRateLimitStatus
are 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_users
andtweets/: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