Skip to content

v0.7.0

Compare
Choose a tag to compare
@Owen3H Owen3H released this 19 Sep 06:51
· 19 commits to main since this release
f798145

Changes

  • Puppeteer will now be used as a fallback on failed requests (if installed).
  • puppeteer-extra no longer a dependency, regular puppeteer 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 and PuppeteerConfig 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
    }