Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

v1.5.0 (✨ Threads with Sidecar (Multiple Images))

Compare
Choose a tag to compare
@junhoyeo junhoyeo released this 18 Jul 05:40
· 90 commits to main since this release

Threads API - Unofficial, Reverse-Engineered Node.js/TypeScript client for Meta's Threads.

Summary

await threadsAPI.publish({
  text: '🤖 Threads with Sidecar',
  attachment: {
    sidecar: [
      'https://raw.githubusercontent.com/junhoyeo/threads-api/main/threads-web-ui/app/opengraph-image.jpg?v=2',
      'https://github.com/junhoyeo/threads-api/raw/main/.github/cover.jpg',
    ],
  },
});
  • ✨ We now support Sidecar Attachments! This means you can now upload multiple images, which is shown as a carousel in your threads.
  • The publish method's interface has been changed once again! url and image options have been deprecated and replaced with a single attachment option which can be { url }, { image }, or { sidecar }. This is more restrictive as Threads only permit a single rich attachment in the first place.
    • 🛠️ Also, upload IDs will never collide in uploadImage. 🎉
  • ThreadAPI related types had been refactored into namespace ThreadsAPI. (See #198)
  • 📌 Note: we still have full backward compatibility with the previous version!

What's Changed

  • [web-ui] Workaround for overflow: hidden + border-radius bug in Safari by @junhoyeo in #193
  • [root] Fix .prettierrc to work inside VSCode by @junhoyeo in #194
  • web-ui(landing): Revalidate stargazers count every 60 seconds, Add missing link by @junhoyeo in #195
  • web-ui(apps): Initialize App Registry by @junhoyeo in #196
  • [web-ui] Add favicons by @junhoyeo in #197
  • web-ui(apps): Show community-made apps in App Registry by @junhoyeo in #199
  • web-ui(landing): Add opengraph image by @junhoyeo in #200
  • feat: add attachment.sidecar publish option by @aleclarson in #198
  • docs: Update README.md by @junhoyeo in #202

Full Changelog: v1.4.7...v1.5.0