v0.7.0
Changes
- Puppeteer will now be used as a fallback on failed requests (if installed).
puppeteer-extra
no longer a dependency, regularpuppeteer
is now an optional dependency.- Massive overhaul to README, including Authentication, Puppeteer and Disclaimer sections.
- Fixed
id
property of TimelineTweet returning undefined. - Outside of Node, requests now return the response instead of
res.body
since Undici can't be used.
Additions
- Package.json now specifies
types
property to include type definitions! - Implement new
TwitterCookies
andPuppeteerConfig
types. - Implement
buildCookieString
method (named export) used to create a string from an object of cookies. - Documented some methods to help use this library effectively.
- It is now possible to pass the following options along with normal puppeteer options to
usePuppeteer()
{ browser?: Browser page?: Page autoClose?: boolean }