Skip to content

Releases: Owen3H/twittxr

v0.7.2

22 Jun 14:38
Compare
Choose a tag to compare
  • Move from PNPM to Bun.
  • Project QoL (use type imports, new eslint rules & test fixes).
  • Moved util folder out of the classes directory.
  • Changed Tweet link domain from twitter.com to x.com.
  • Fixed issue where passing replies: true to Timeline.get would return an empty array.

v0.7.1

22 Jun 14:32
Compare
Choose a tag to compare
  • Reference error now thrown if Puppeteer wasn't found when trying to use it.
  • CI script now runs before publishing to NPM.
  • Included src in the build.
  • Made some edits upon reading TypeScript performance wiki.
  • Implemented RawTimelineResponse type.
  • TimelineUser class properties now readonly.
  • vite.config.ts renamed to vitest.config.ts (more appropriate since we aren't using Vite)

v0.7.0

19 Sep 06:51
f798145
Compare
Choose a tag to compare

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
    }
    

v0.6.2

17 Aug 12:00
Compare
Choose a tag to compare
  • Fixed "default of undefined" error when using the CJS build.
  • Fetch errors are now propagated to the user, requiring them to .catch()
  • Improved types file and added new properties to TimelineTweet. 87e6489

v0.6.1

17 Aug 11:51
Compare
Choose a tag to compare
  • Implemented puppeteer-extra to bypass "403 Forbidden". Browser support has been dropped.
  • Fix import/require paths in package.json being mixed up.
  • Requests are no longer made through a proxy by default, improving response times.

v0.6.0

12 Aug 15:50
Compare
Choose a tag to compare
  • Requests now always sent with showReplies=true, with options.replies only used to filter.
  • Fixed some rollup issues and rely on exports instead of main/module.
  • Remove tests folder from dist (oops).

v0.5.4

11 Aug 07:36
Compare
Choose a tag to compare
  • Fixed timeline filter includeReplies and includeRts being mixed up.
  • Removed rollup-plugin-dts in favour of emitDeclarationOnly.
  • Relative imports now used instead of 'src' alias so dist builds correctly.
  • Minimum node version lowered. 12 -> 10.

v0.5.0

08 Aug 07:45
Compare
Choose a tag to compare

0.5.0 - Cookie Support

  • Timeline.get now supports passing the cookie parameter. (To include sensitive tweets in the result)
  • Implement new sensitive property on TimelineTweet.
  • Specify that the API should return new RawTimelineEntry type.
  • Improvements to tests that further ensure correct results.
  • Edit ESLint to force no colons and enable no-unexpected-multiline.