Skip to content

Commit

Permalink
chore: version packages (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 26, 2022
1 parent c0c494a commit 85c8074
Show file tree
Hide file tree
Showing 7 changed files with 117 additions and 102 deletions.
99 changes: 0 additions & 99 deletions .changeset/shiny-brooms-rush.md

This file was deleted.

7 changes: 7 additions & 0 deletions packages/example/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# example

## 0.0.6

### Patch Changes

- Updated dependencies [c0c494a]
- @rainbow-me/rainbowkit@0.2.0

## 0.0.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "example",
"version": "0.0.5",
"version": "0.0.6",
"description": "",
"private": true,
"main": "index.js",
Expand Down
100 changes: 100 additions & 0 deletions packages/rainbowkit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,105 @@
# @rainbow-me/rainbowkit

## 0.2.0

### Minor Changes

- c0c494a: **Breaking:** Updated the `wagmi` peer dependency to `^0.4` & removed the `configureChains` & `apiProvider` exports.

You now need to use [wagmi's configureChains](https://wagmi.sh/docs/providers/configuring-chains) function and providers.

## Migration guide

### 1. Upgrade `wagmi` to `^0.4.2`

```
npm i wagmi@^0.4.2
```

### 2. Migrate `configureChains`

```diff
import {
apiProvider,
- configureChains
} from '@rainbow-me/rainbowkit';
+import { configureChains } from 'wagmi';
```

### 3. Migrate providers

#### `apiProvider.alchemy` to `alchemyProvider`

```diff
-import {
- apiProvider,
-} from '@rainbow-me/rainbowkit';
import { configureChains } from 'wagmi';
+import { alchemyProvider } from 'wagmi/providers/alchemy';

const { chains, provider } = configureChains(
[chain.mainnet, chain.polygon, chain.optimism, chain.arbitrum],
- [apiProvider.alchemy(process.env.ALCHEMY_ID)]
+ [alchemyProvider({ alchemyId: process.env.ALCHEMY_ID })]
);
```

#### `apiProvider.infura` to `infuraProvider`

```diff
-import {
- apiProvider,
-} from '@rainbow-me/rainbowkit';
import { configureChains } from 'wagmi';
+import { infuraProvider } from 'wagmi/providers/infura';

const { chains, provider } = configureChains(
[chain.mainnet, chain.polygon, chain.optimism, chain.arbitrum],
- [apiProvider.infura(process.env.INFURA_ID)]
+ [infuraProvider({ infuraId: process.env.INFURA_ID })]
);
```

#### `apiProvider.jsonRpc` to `jsonRpcProvider`

```diff
-import {
- apiProvider,
-} from '@rainbow-me/rainbowkit';
import { configureChains } from 'wagmi';
+import { jsonRpcProvider } from 'wagmi/providers/jsonRpc';

const { chains, provider } = configureChains(
[chain.mainnet, chain.polygon],
[
- apiProvider.jsonRpc(chain => ({
- rpcUrl: `https://${chain.id}.example.com`,
- })),
+ jsonRpcProvider({
+ rpc: chain => ({
+ http: `https://${chain.id}.example.com`,
+ }),
+ }),
]
);
```

#### `apiProvider.fallback` to `publicProvider`

```diff
-import {
- apiProvider,
-} from '@rainbow-me/rainbowkit';
import { configureChains } from 'wagmi';
+import { publicProvider } from 'wagmi/providers/public';

const { chains, provider } = configureChains(
[chain.mainnet, chain.polygon],
- [apiProvider.fallback()]
+ [publicProvider()]
);
```

## 0.1.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/rainbowkit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rainbow-me/rainbowkit",
"version": "0.1.2",
"version": "0.2.0",
"description": "The best way to connect a wallet",
"files": [
"dist"
Expand Down
7 changes: 7 additions & 0 deletions site/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# site

## 0.0.6

### Patch Changes

- Updated dependencies [c0c494a]
- @rainbow-me/rainbowkit@0.2.0

## 0.0.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion site/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "site",
"version": "0.0.5",
"version": "0.0.6",
"description": "Site and docs for RainbowKit.",
"private": true,
"dependencies": {
Expand Down

2 comments on commit 85c8074

@vercel
Copy link

@vercel vercel bot commented on 85c8074 May 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 85c8074 May 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.