Skip to content

Commit

Permalink
Merge pull request #841 from lens-protocol/release/20240213
Browse files Browse the repository at this point in the history
Release/20240213
  • Loading branch information
cesarenaldi authored Feb 14, 2024
2 parents 3bdb2a3 + 614e804 commit a998169
Show file tree
Hide file tree
Showing 690 changed files with 5,891 additions and 59,266 deletions.
5 changes: 5 additions & 0 deletions .changeset/fifty-singers-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lens-protocol/wagmi": major
---

**feat:** Wagmi v2 support
7 changes: 7 additions & 0 deletions .changeset/gentle-glasses-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@lens-protocol/react": minor
"@lens-protocol/react-native": minor
"@lens-protocol/react-web": minor
---

**feat:** Added `useLazyProfilesManaged` hook
8 changes: 8 additions & 0 deletions .changeset/metal-bikes-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@lens-protocol/api-bindings": patch
"@lens-protocol/react-native": patch
"@lens-protocol/react-web": patch
"@lens-protocol/react": patch
---

**fixed:** make `useAccessToken` reactive
4 changes: 4 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"eighty-timers-mix",
"eleven-numbers-wave",
"empty-apricots-cross",
"fifty-singers-dance",
"five-seals-tap",
"flat-boxes-work",
"fluffy-apricots-provide",
Expand All @@ -71,6 +72,7 @@
"fuzzy-balloons-check",
"fuzzy-dodos-greet",
"fuzzy-pillows-unite",
"gentle-glasses-jam",
"giant-games-type",
"gold-dolphins-pump",
"gold-radios-hunt",
Expand Down Expand Up @@ -107,6 +109,7 @@
"loud-weeks-bake",
"many-jeans-cough",
"mean-ducks-tan",
"metal-bikes-applaud",
"metal-cougars-train",
"mighty-planets-retire",
"modern-spies-confess",
Expand Down Expand Up @@ -175,6 +178,7 @@
"ten-insects-cover",
"thin-falcons-tap",
"thin-news-pull",
"thirty-eyes-act",
"three-cougars-pay",
"tidy-kangaroos-bake",
"tidy-pants-punch",
Expand Down
10 changes: 10 additions & 0 deletions .changeset/thirty-eyes-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@lens-protocol/react-web": minor
"@lens-protocol/react": minor
"@lens-protocol/react-native": minor
"@lens-protocol/blockchain-bindings": patch
"@lens-protocol/api-bindings": patch
"@lens-protocol/domain": patch
---

**feat:** `useCreateProfile` hook
5 changes: 3 additions & 2 deletions examples/next-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
"dependencies": {
"@lens-protocol/react-web": "workspace:*",
"@lens-protocol/wagmi": "workspace:*",
"@tanstack/react-query": "^5.18.1",
"next": "^14.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"viem": "^1.19.7",
"wagmi": "^1.4.12"
"viem": "^2.7.6",
"wagmi": "^2.5.6"
},
"devDependencies": {
"@types/node": "^18.18.12",
Expand Down
3 changes: 2 additions & 1 deletion examples/next-js/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";

import { Providers } from "../components/Providers";
import "./globals.css";
import { Providers } from "../components/providers";

const inter = Inter({ subsets: ["latin"] });

Expand Down
32 changes: 32 additions & 0 deletions examples/next-js/src/components/Providers.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
"use client";

import { LensConfig, LensProvider, development } from "@lens-protocol/react-web";
import { bindings } from "@lens-protocol/wagmi";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { WagmiProvider, createConfig, http } from "wagmi";
import { polygon, polygonMumbai } from "wagmi/chains";

const queryClient = new QueryClient();

const wagmiConfig = createConfig({
chains: [polygonMumbai, polygon],
transports: {
[polygonMumbai.id]: http(),
[polygon.id]: http(),
},
});

const lensConfig: LensConfig = {
environment: development,
bindings: bindings(wagmiConfig),
};

export function Providers({ children }: { children: React.ReactNode }) {
return (
<WagmiProvider config={wagmiConfig}>
<QueryClientProvider client={queryClient}>
<LensProvider config={lensConfig}>{children}</LensProvider>
</QueryClientProvider>
</WagmiProvider>
);
}
40 changes: 0 additions & 40 deletions examples/next-js/src/components/providers.tsx

This file was deleted.

Loading

0 comments on commit a998169

Please sign in to comment.