Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/breezy-tigers-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rainbow-me/rainbowkit": patch
---

Improved support for the Binance Wallet dApp browser
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on: [pull_request, push]

env:
pnpm: 9.12.0
pnpm: 9.15.0
RAINBOW_PROVIDER_API_KEY: ${{ secrets.RAINBOW_PROVIDER_API_KEY }}
WALLETCONNECT_PROJECT_ID: ${{ secrets.WALLETCONNECT_PROJECT_ID }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main

env:
pnpm: 9.12.0
pnpm: 9.15.0
RAINBOW_PROVIDER_API_KEY: RAINBOW_PROVIDER_API_KEY

concurrency: ${{ github.workflow }}-${{ github.ref }}
Expand Down
15 changes: 15 additions & 0 deletions examples/with-create-react-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# with-create-react-app

## 0.1.99

### Patch Changes

- Updated dependencies [b5a7878]
- @rainbow-me/rainbowkit@2.2.3

## 0.1.98

### Patch Changes

- f533ac2: Upgraded to Next 15 at `15.1.4` and resolved [breaking changes](https://nextjs.org/docs/app/building-your-application/upgrading/version-15). Upgraded to React 19 at `19.0.0` and resolved [breaking changes](https://react.dev/blog/2024/04/25/react-19-upgrade-guide). Upgraded `wagmi` to `^2.14.7`.
- Updated dependencies [f533ac2]
- @rainbow-me/rainbowkit@2.2.2

## 0.1.97

### Patch Changes
Expand Down
14 changes: 7 additions & 7 deletions examples/with-create-react-app/package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"name": "with-create-react-app",
"version": "0.1.97",
"version": "0.1.99",
"private": true,
"dependencies": {
"@rainbow-me/rainbowkit": "workspace:*",
"@testing-library/jest-dom": "^6.2.0",
"@testing-library/react": "^16.0.1",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.12",
"@types/node": "^20.14.8",
"@types/react": "^18.3.5",
"react-dom": "^18.3.1",
"@types/react": "^19.0.6",
"react-dom": "^19.0.0",
"react-scripts": "5.0.1",
"react": "^18.3.1",
"react": "^19.0.0",
"typescript": "5.5.2",
"util": "0.12.5",
"viem": "2.21.55",
"wagmi": "^2.14.3",
"wagmi": "^2.14.9",
"@tanstack/react-query": "^5.55.3"
},
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions examples/with-create-react-app/src/wagmi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import {

export const config = getDefaultConfig({
appName: 'RainbowKit demo',
appUrl: 'https://rainbow.me',
appIcon: 'https://framerusercontent.com/images/Hml6PtJwt03gwFtTRYmbpo7EarY.png',
projectId: 'YOUR_PROJECT_ID',
chains: [
mainnet,
Expand Down
21 changes: 21 additions & 0 deletions examples/with-next-app-i18n/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# with-next-app-i18n

## 0.1.1

### Patch Changes

- Updated dependencies [b5a7878]
- @rainbow-me/rainbowkit@2.2.3

## 0.1.0

### Minor Changes

- f533ac2: Upgraded `next-intl` to `3.26.3` and resolved [breaking changes](https://next-intl.dev/blog/next-intl-3-22) introduced in `3.22` in anticipation of v4 and Next 15.

Migrated to `/i18n/request.ts` and `/i18n/routing.ts` architecture. Refactored middleware. Adopted async `params` prop in `generateMetadata` and `getRequestConfig` to support Next v15. Adopted `setRequestLocale` over `unstable_setRequestLocale`.

### Patch Changes

- f533ac2: Upgraded to Next 15 at `15.1.4` and resolved [breaking changes](https://nextjs.org/docs/app/building-your-application/upgrading/version-15). Upgraded to React 19 at `19.0.0` and resolved [breaking changes](https://react.dev/blog/2024/04/25/react-19-upgrade-guide). Upgraded `wagmi` to `^2.14.7`.
- Updated dependencies [f533ac2]
- @rainbow-me/rainbowkit@2.2.2

## 0.0.46

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/with-next-app-i18n/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
15 changes: 7 additions & 8 deletions examples/with-next-app-i18n/package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
{
"name": "with-next-app-i18n",
"private": true,
"version": "0.0.46",
"version": "0.1.1",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"dependencies": {
"@rainbow-me/rainbowkit": "workspace:*",
"next": "^14.2.10",
"next-intl": "^3.19.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"next": "^15.1.4",
"next-intl": "^3.26.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"viem": "2.21.55",
"wagmi": "^2.14.3",
"wagmi": "^2.14.9",
"@tanstack/react-query": "^5.55.3"
},
"devDependencies": {
"@types/node": "^20.14.8",
"@types/react": "^18.3.5",
"next": "^14.2.10",
"@types/react": "^19.0.6",
"typescript": "5.5.2"
},
"engines": {
Expand Down
28 changes: 16 additions & 12 deletions examples/with-next-app-i18n/src/app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getTranslations, unstable_setRequestLocale } from 'next-intl/server';
import { getTranslations, setRequestLocale } from 'next-intl/server';
import type { Locale } from '@rainbow-me/rainbowkit';
import { Providers } from './providers';

Expand All @@ -7,23 +7,27 @@ export function generateStaticParams() {
}

// Dynamic metadata with locale
export async function generateMetadata(
{ params: { locale } }: { params: { locale: Locale } }
) {
export async function generateMetadata(props: { params: Promise<{ locale: Locale }> }) {
const params = await props.params;
const { locale } = params;

const t = await getTranslations({ locale, namespace: 'Metadata' });
return {
title: t('title')
};
}

export default function LocaleLayout({
children,
params: { locale },
}: {
children: React.ReactNode;
params: { locale: Locale };
}) {
unstable_setRequestLocale(locale);
export default async function LocaleLayout(
props: {
children: React.ReactNode;
params: Promise<{ locale: Locale }>;
}
) {
const { children } = props;
const params = await props.params;
const { locale } = params;

setRequestLocale(locale);

return (
<html lang={locale}>
Expand Down
13 changes: 0 additions & 13 deletions examples/with-next-app-i18n/src/i18n.ts

This file was deleted.

17 changes: 17 additions & 0 deletions examples/with-next-app-i18n/src/i18n/request.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { getRequestConfig } from 'next-intl/server';
import { routing } from './routing';

export default getRequestConfig(async ({ requestLocale }) => {
// This typically corresponds to the `[locale]` segment
let locale = await requestLocale;

// Ensure that the incoming locale is valid
if (!locale || !routing.locales.includes(locale as any)) {
locale = routing.defaultLocale;
}

return {
locale,
messages: (await import(`../../messages/${locale}.json`)).default
};
});
8 changes: 8 additions & 0 deletions examples/with-next-app-i18n/src/i18n/routing.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineRouting } from 'next-intl/routing';

export const routing = defineRouting({
// A list of all locales that are supported
locales: ['en-US', 'zh-CN'],
// Used when no locale matches
defaultLocale: 'en-US',
});
12 changes: 4 additions & 8 deletions examples/with-next-app-i18n/src/middleware.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import createMiddleware from 'next-intl/middleware';

export default createMiddleware({
// A list of all locales that are supported
locales: ['en-US', 'zh-CN'],
// Used when no locale matches
defaultLocale: 'en-US'
});

import { routing } from './i18n/routing';

export const config = {
// Match only internationalized pathnames
matcher: ['/', '/(de|en)/:path*']
};

export default createMiddleware(routing);
2 changes: 2 additions & 0 deletions examples/with-next-app-i18n/src/wagmi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import {

export const config = getDefaultConfig({
appName: 'RainbowKit demo',
appUrl: 'https://rainbow.me',
appIcon: 'https://framerusercontent.com/images/Hml6PtJwt03gwFtTRYmbpo7EarY.png',
projectId: 'YOUR_PROJECT_ID',
chains: [
mainnet,
Expand Down
15 changes: 15 additions & 0 deletions examples/with-next-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# with-next-app

## 0.0.48

### Patch Changes

- Updated dependencies [b5a7878]
- @rainbow-me/rainbowkit@2.2.3

## 0.0.47

### Patch Changes

- f533ac2: Upgraded to Next 15 at `15.1.4` and resolved [breaking changes](https://nextjs.org/docs/app/building-your-application/upgrading/version-15). Upgraded to React 19 at `19.0.0` and resolved [breaking changes](https://react.dev/blog/2024/04/25/react-19-upgrade-guide). Upgraded `wagmi` to `^2.14.7`.
- Updated dependencies [f533ac2]
- @rainbow-me/rainbowkit@2.2.2

## 0.0.46

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/with-next-app/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
12 changes: 6 additions & 6 deletions examples/with-next-app/package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{
"name": "with-next-app",
"private": true,
"version": "0.0.46",
"version": "0.0.48",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"dependencies": {
"@rainbow-me/rainbowkit": "workspace:*",
"next": "^14.2.10",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"next": "^15.1.4",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"viem": "2.21.55",
"wagmi": "^2.14.3",
"wagmi": "^2.14.9",
"@tanstack/react-query": "^5.55.3"
},
"devDependencies": {
"@types/node": "^20.14.8",
"@types/react": "^18.3.5",
"@types/react": "^19.0.6",
"typescript": "5.5.2"
},
"engines": {
Expand Down
2 changes: 2 additions & 0 deletions examples/with-next-app/src/wagmi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import {

export const config = getDefaultConfig({
appName: 'RainbowKit demo',
appUrl: 'https://rainbow.me',
appIcon: 'https://framerusercontent.com/images/Hml6PtJwt03gwFtTRYmbpo7EarY.png',
projectId: 'YOUR_PROJECT_ID',
chains: [
mainnet,
Expand Down
15 changes: 15 additions & 0 deletions examples/with-next-custom-button/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# with-next-custom-button

## 0.0.100

### Patch Changes

- Updated dependencies [b5a7878]
- @rainbow-me/rainbowkit@2.2.3

## 0.0.99

### Patch Changes

- f533ac2: Upgraded to Next 15 at `15.1.4` and resolved [breaking changes](https://nextjs.org/docs/app/building-your-application/upgrading/version-15). Upgraded to React 19 at `19.0.0` and resolved [breaking changes](https://react.dev/blog/2024/04/25/react-19-upgrade-guide). Upgraded `wagmi` to `^2.14.7`.
- Updated dependencies [f533ac2]
- @rainbow-me/rainbowkit@2.2.2

## 0.0.98

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/with-next-custom-button/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
12 changes: 6 additions & 6 deletions examples/with-next-custom-button/package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{
"name": "with-next-custom-button",
"private": true,
"version": "0.0.98",
"version": "0.0.100",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"dependencies": {
"@rainbow-me/rainbowkit": "workspace:*",
"next": "^14.2.10",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"next": "^15.1.4",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"viem": "2.21.55",
"wagmi": "^2.14.3",
"wagmi": "^2.14.9",
"@tanstack/react-query": "^5.55.3"
},
"devDependencies": {
"@types/node": "^20.14.8",
"@types/react": "^18.3.5",
"@types/react": "^19.0.6",
"typescript": "5.5.2"
}
}
2 changes: 2 additions & 0 deletions examples/with-next-custom-button/src/wagmi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import {

export const config = getDefaultConfig({
appName: 'RainbowKit demo',
appUrl: 'https://rainbow.me',
appIcon: 'https://framerusercontent.com/images/Hml6PtJwt03gwFtTRYmbpo7EarY.png',
projectId: 'YOUR_PROJECT_ID',
chains: [
mainnet,
Expand Down
Loading
Loading