Lens API 🔨@lensapi·Mar 24

Improvements in this release

🛠️ Simplified integration for React web apps. Install and import from [localhost:3000/u/lens-protocol/react-web](@lens-protocol/react-web%60) with less configuration.
🔐 Token-gated support: You can now create encrypted posts and comments which can only be read by users that match the criteria you define.
🪪 Active profile is automatically wired as the Observer ID of all relevant queries. Doing so the Lens SDK provides a cohesive view of the data that is relevant to the eye of the Active Profile.

What's new?

  • New [localhost:3000/u/lens-protocol/react-web](@lens-protocol/react-web%60) package for a simplified React web apps integration

  • Token-gated posts and comments

  • Cohesive data fetching using Active Profile as Observer ID

  • Enhanced fields for ProfileStats and PublicationStats

  • Added appId to LensConfig. Allows you to identify posts created by your app. You can then use the sources to filter posts by the same App ID

  • Added useProfilesOwnedByMe

  • Added useProfilePublicationsForSale

Post by @lensapi.lens