Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@lens-protocol/react
Advanced tools
@lens-protocol/react
The official Lens Protocol bindings for React applications.
This package enables you to build applications on top of the Lens Protocol using React.
Note
This is a low-level package, if you are building a web application you might want to look into
@lens-protocol/react-web
package.You can use this package to build a React Native app, see the
example/react-native
example in this repo. In the future we are considering to provide a battery-included@lens-protocol/react-native
package for RN apps.
These are some common issues you may run into while using @lens-protocol/react
. If you encounter something not listed here try searching for GitHub issues.
You might see your Next.js failing with an error like this:
Error: Directory import '[...]/node_modules/@apollo/client/link/context' is not supported resolving ES modules imported from [...]/node_modules/@lens-protocol/api-bindings/dist/index.js
Did you mean to import @apollo/client/link/context/context.cjs?
The root cause is the lack of ESM support from Apollo Client which manifests itself when imported as sub-dependency of @lens-protocol/api-bindings
(which in turn is imported by @lens-protocol/react
). See open Apollo Client issue.
To fix it you need to edit you next.config.js
so to make sure the Lens SDK and its sub-dependencies a transpiled by Next.js build pipeline.
const nextConfig = {
transpilePackages: ['@lens-protocol'],
};
For further details on how to integrate Lens SDK with a Next.js app, there is a working Next.js example in this monorepo: https://github.com/lens-protocol/lens-sdk/tree/main/examples/nextjs
FAQs
Interacting with the Lens Protocol API using React.
The npm package @lens-protocol/react receives a total of 776 weekly downloads. As such, @lens-protocol/react popularity was classified as not popular.
We found that @lens-protocol/react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.