Commit ac4cd76
authored
## Explanation
Remove `network-controller` dependency for `chain-agnostic-permission`
as it brings in a massive amount of dependencies and is only used for a
single type union that contains `string` anyway.
The additional dependencies becomes hard to manage when using
`chain-agnostic-permission` outside a MetaMask client (e.g. in Snaps).
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Removes the `@metamask/network-controller` dependency and eliminates
its type usage.
>
> - Drops `@metamask/network-controller` from `package.json` and
`yarn.lock`
> - Updates `caip25Permission.ts` to remove the import and change
`findNetworkClientIdByChainId` return type from `NetworkClientId` to
`string`
> - Notes the change in `CHANGELOG.md`
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
36a8356. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
1 parent 9493bbc commit ac4cd76
File tree
4 files changed
+2
-4
lines changed- packages/chain-agnostic-permission
- src
4 files changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
85 | 84 | | |
86 | 85 | | |
87 | 86 | | |
88 | | - | |
| 87 | + | |
89 | 88 | | |
90 | 89 | | |
91 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2888 | 2888 | | |
2889 | 2889 | | |
2890 | 2890 | | |
2891 | | - | |
2892 | 2891 | | |
2893 | 2892 | | |
2894 | 2893 | | |
| |||
0 commit comments