Skip to content

Commit 7d8bba6

Browse files
authored
added the point about base deprecation
1 parent d78a280 commit 7d8bba6

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

docs/migration-guides/modal-v9-to-v10.mdx

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,26 @@ const web3AuthContextConfig: Web3AuthContextConfig = {
231231
232232
---
233233

234+
235+
### 6. `@web3auth/base` is deprecated — use `@web3auth/modal` instead
236+
237+
In v9, imports were often split across `@web3auth/base`, `@web3auth/modal`, and other packages:
238+
239+
```ts title="v9 - Before"
240+
import { Web3Auth } from "@web3auth/modal";
241+
import { WALLET_ADAPTERS, WEB3AUTH_NETWORK } from "@web3auth/base";
242+
```
243+
244+
In v10, everything you need is available directly from `@web3auth/modal`. The `@web3auth/base` package is deprecated and should no longer be used:
245+
246+
```ts title="v10 - After"
247+
import { Web3Auth, WALLET_CONNECTORS, WEB3AUTH_NETWORK, AUTH_CONNECTION } from "@web3auth/modal";
248+
```
249+
250+
> ✅ Cleaner import structure — use `@web3auth/modal` for everything.
251+
252+
---
253+
234254
## Summary of Key Migration Steps
235255

236256
| Feature | v9 | v10 |
@@ -241,7 +261,7 @@ const web3AuthContextConfig: Web3AuthContextConfig = {
241261
| Chain Configuration | Required in code | ✅ Handled via dashboard |
242262
| Private Key Provider | Required | ⛔ No longer needed |
243263
| Modal Config Setup | Inside `initModal()` | ✅ Now in constructor |
244-
| Hook Setup Context | Verbose with adapters/plugins |Minimal with `connectors` only |
264+
| Base Package Usage | `@web3auth/base` + `@web3auth/modal`|Use only `@web3auth/modal` |
245265

246266
---
247267

0 commit comments

Comments
 (0)